/* ============================================================
   ai45.xyz — My Working (assets/workings.js): every question you worked out and every test you made, on the IB page
   (notes.html #work) and the SAT page (sat.html #working). Moved out of notes.css on 2026-10-29 so both pages share it.
   ============================================================ */
.wk { margin-top: 22px; }
.wk h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 19px; }
.wk h2 small { padding: 2px 9px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); font-size: 12px; color: var(--muted); }
.wk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wk__c { position: relative; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1), box-shadow .25s; }
.wk__c:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0, 0, 0, .35); }
.wk__c > a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.wk__pic { display: grid; place-items: center; height: 150px; margin: 8px 8px 0; border-radius: 14px; background: #fff; overflow: hidden; }
.wk__pic svg { width: 100%; height: 100%; padding: 10px; }
.wk__pic svg image { opacity: .9; }
.wk__none .ic { width: 28px; height: 28px; color: #9AA0A6; }
.wk__t { display: grid; gap: 2px; padding: 12px 14px 14px; }
.wk__t b { font-size: 15px; } .wk__t small { font-size: 12.5px; color: var(--muted); }
.wk__t small { display: flex; align-items: center; gap: 8px; } /* one orange pencil per attempt, then the date (owner, 2026-10-30) */
.wk__pens { display: inline-flex; gap: 1px; color: var(--orange); } .wk__pens .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wk__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wk__sub { overflow: hidden; font-size: 13.5px; font-weight: 600; color: var(--paper); white-space: nowrap; text-overflow: ellipsis; opacity: .8; }
.wk__x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.wk__c:hover .wk__x, .wk__x:focus-visible { opacity: 1; }
@media (hover: none) { .wk__x { opacity: 1; } }
.wk-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; padding: 48px 24px; border-radius: 26px; background: var(--card); text-align: center; }
.wk-empty .ic { width: 30px; height: 30px; color: var(--faint); }
.wk-empty span { max-width: 420px; color: var(--muted); }
.wk-empty .btn { margin-top: 8px; }
/* My Working: search, a subject filter, Questions / Tests; a test is one orange card with pages behind it (owner, 2026-10-29) */
.wk-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 4px; }
.wk-f__q { flex: 0 1 340px; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.wk-f__q .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.wk-f__q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--paper); }
.wk-f select { height: 42px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14px; font-weight: 700; color: var(--paper); }
.wk-f__k { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); }
.wk-f__k button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.wk-f__k button.is-on { background: var(--card); color: var(--paper); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .3); }
.wk__c--test { background: linear-gradient(180deg, color-mix(in srgb, var(--orange, #E37239) 9%, var(--card)), var(--card)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--orange, #E37239) 50%, transparent); }
.wk__c--test .wk__pic { margin: 8px 20px 12px 8px; box-shadow: 6px 6px 0 -1px #fff, 6px 6px 0 0 color-mix(in srgb, var(--orange, #E37239) 40%, transparent), 12px 12px 0 -1px #fff, 12px 12px 0 0 color-mix(in srgb, var(--orange, #E37239) 22%, transparent); overflow: visible; }
.wk__badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--orange, #E37239); color: var(--on-accent, #fff); font-size: 12px; font-weight: 800; }
/* rename a test (owner, 2026-10-29): a pencil beside the × */
.wk__ren { position: absolute; top: auto; bottom: 12px; right: 12px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.wk__ren svg { width: 14px; height: 14px; }
.wk__c:hover .wk__ren, .wk__ren:focus-visible { opacity: 1; }
@media (hover: none) { .wk__ren { opacity: 1; } }
/* History: delete recent working (owner, 2026-10-29), at the right end of the filter bar */
.wk-h { position: relative; margin-left: auto; }
.wk-h__b { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); cursor: pointer; }
.wk-h__b svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wk-h__b[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--orange, #E37239); }
.wk-h__m { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; width: 250px; padding: 8px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .4); }
.wk-h__m[hidden] { display: none; }
.wk-h__m > b { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wk-h__m button { height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--paper); text-align: left; cursor: pointer; }
.wk-h__m button:hover, .wk-h__m button:focus-visible { background: rgba(var(--fg-rgb), .07); }
.wk-h__m button[data-wkh="0"] { color: #D93B3B; }
.wk-h__m small { padding: 6px 10px 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (max-width: 600px) { .wk-f__q { flex: 1 1 100%; } }
.wk__c--test .wk__t { padding-right: 48px; }
/* an SAT question has no picture: its text in a 680 px box scaled like the question bank's, with the working on it */
.wk__pic .wk-satfo { box-sizing: border-box; width: 100%; padding: 23.5px 26.5px; font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 25px; line-height: 1.6; color: #1C1C1E; }
