/* CodeLess web: "Ink glass" (picked 19 Nov 2026 from dev/design/web-directions.html#ink).
   The desktop app's Prism look (glass panels over soft colour fields) on GR Solutions' ink and blue, with the GR site's
   fonts (Secular One headings, Assistant text, IBM Plex Mono numbers) and its yellow marker under one word.
   Rules as in dev/design/README.md: text contrast 4.5:1, blur only on big static panels, solid when the system asks
   for less transparency. */
@import url('/fonts/fonts.css');

:root {
  --scene: #0e1620;
  --panel: rgba(23, 33, 43, 0.62); --panel-line: rgba(160, 196, 255, 0.16); --panel-top: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.05); --card-hi: rgba(255, 255, 255, 0.08); --card-line: rgba(160, 196, 255, 0.14);
  --field: rgba(4, 10, 18, 0.45);
  --blur: blur(22px) saturate(140%);
  --text: #eef3f6; --muted: #b6c2cb; --dim: #8d9ba6;
  --accent: #6fa2f1; --btn: linear-gradient(135deg, #3f86f0, #1d5fc4); --on-btn: #fff;
  --hivis: #f1be2c; --ok: #7fe0a8; --bad: #f58d78; --work: #8cc0ff;
  --r-lg: 18px; --r-md: 12px; --r-btn: 10px;
  --display: "Secular One", "Assistant", "Segoe UI", sans-serif;
  --body: "Assistant", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 17px/1.55 var(--body); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 600px at 85% -15%, rgba(29, 95, 196, 0.55), transparent 62%),
    radial-gradient(800px 520px at -5% 105%, rgba(111, 162, 241, 0.30), transparent 60%),
    radial-gradient(500px 340px at 55% 120%, rgba(241, 190, 44, 0.10), transparent 70%), var(--scene);
  background-attachment: fixed;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: 22px; }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
/* the yellow marker from the GR site, as a thin line on the dark */
em.m { font-style: normal; background: linear-gradient(transparent 84%, var(--hivis) 84%, var(--hivis) 94%, transparent 94%); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* glass: big static surfaces only */
.glass { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 var(--panel-top), 0 24px 50px -30px rgba(0, 0, 0, 0.7); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* top bar */
.top { display: flex; align-items: center; gap: 14px; padding: 16px 24px; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 24px; }
.mark { width: 12px; height: 12px; border-radius: 3px; background: var(--btn); transform: rotate(45deg); }
.motto { color: var(--muted); font-size: 15px; }
.by { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.by img { height: 26px; width: auto; border-radius: 3px; display: block; }
.by:hover { color: var(--text); }

.wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding: 4px 24px 32px; max-width: 1280px; margin: 0 auto; }

/* side */
.side { padding: 16px; align-self: start; display: grid; gap: 12px; }
.side .pill { width: 100%; justify-content: center; }
.side h3 { margin: 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.projects { display: grid; gap: 8px; }
.proj { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); color: var(--text); font: 700 15.5px/1.35 var(--body); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.proj:hover { background: var(--card-hi); }
.proj small { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.proj small i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.proj small i.s-live, .proj small i.s-built { background: var(--ok); }
.proj small i.s-building, .proj small i.s-new { background: var(--work); }
.proj small i.s-stuck { background: var(--bad); }
.proj.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

/* buttons */
.pill, .ghost { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r-btn); font: 700 16px var(--body); cursor: pointer; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease; }
.pill { border: none; color: var(--on-btn); background: var(--btn); box-shadow: 0 10px 28px -10px rgba(63, 134, 240, 0.7); }
.pill:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.ghost { border: 1.5px solid var(--card-line); background: transparent; color: var(--text); }
.ghost:hover:not(:disabled) { background: var(--card); }
.pill:disabled, .ghost:disabled { opacity: 0.45; cursor: default; }

main { min-width: 0; display: grid; gap: 20px; align-content: start; }
.card { padding: 26px 28px; }
.lede { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
p { margin: 10px 0 0; }
label { display: block; margin: 18px 0 6px; font-weight: 700; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--card-line); background: var(--field); color: var(--text); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { outline: 3px solid var(--hivis); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--muted); font: 600 14px var(--body); cursor: pointer; }
.chip:hover { color: var(--text); background: var(--card-hi); }

/* the plan */
.steps { margin: 12px 0 0; padding-left: 24px; display: grid; gap: 12px; }
.steps li::marker { font-family: var(--mono); color: var(--accent); }
.steps b { display: block; }
.steps .muted { font-size: 15.5px; }
.sec { margin-top: 24px; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font: 500 12.5px var(--mono); border: 1px solid var(--card-line); color: var(--muted); margin-left: 6px; vertical-align: 2px; }

/* the project */
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); margin-top: 8px; font-size: 15px; }
.meta b { color: var(--text); font-weight: 700; }
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; padding: 12px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); }
.live-link { font: 500 17px var(--mono); color: var(--accent); word-break: break-all; text-decoration: none; }
.live-link:hover { text-decoration: underline; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 224, 168, 0.25); flex: none; }
.err { color: var(--bad); }

.track { display: flex; margin: 22px 0 4px; }
.stop { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: var(--dim); position: relative; padding-top: 24px; }
.stop::before { content: ''; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #17212b; border: 2px solid var(--card-line); z-index: 1; }
.stop::after { content: ''; position: absolute; top: 10px; left: 50%; right: -50%; height: 2px; background: var(--card-line); }
.stop:last-child::after { display: none; }
.stop.done, .stop.now { color: var(--text); }
.stop.done::before { background: var(--ok); border-color: var(--ok); }
.stop.done::after { background: var(--ok); }
.stop.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(111, 162, 241, 0.25); }

.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.head span { color: var(--muted); font-size: 15px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.task { padding: 14px 16px; display: grid; gap: 4px; align-content: start; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); }
.task .st { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.task .st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.task .t { font-weight: 700; font-size: 16.5px; }
.task .l { color: var(--muted); font-size: 14.5px; }
.st.in { color: var(--ok); }
.st.working, .st.combining, .st.ready { color: var(--work); }
.st.waiting { color: var(--dim); }
.st.stuck { color: var(--bad); }
.task.working, .task.combining { border-color: rgba(140, 192, 255, 0.55); }
.task.stuck { border-color: rgba(245, 141, 120, 0.55); }
.task .bar { height: 4px; border-radius: 4px; background: var(--card-line); margin-top: 8px; overflow: hidden; }
.task .bar b { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--accent); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* modal, share and toast */
.modal { position: fixed; inset: 0; background: rgba(5, 9, 14, 0.66); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal-box { padding: 26px; width: min(580px, 100%); background: rgba(23, 33, 43, 0.92); }
.share { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 14px; }
.qr { background: #fff; border-radius: var(--r-md); padding: 10px; line-height: 0; }
.qr svg { width: 100%; height: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--r-md); background: #eef3f6; color: #17212b; font-weight: 700; z-index: 20; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; border-radius: 50%; animation: s 0.8s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }

/* less transparency or motion when the system asks for it */
@media (prefers-reduced-transparency: reduce) {
  .glass, .modal-box { background: #17212b; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pill, .ghost, .proj { transition: none; }
  .pill:hover:not(:disabled) { transform: none; }
  .task .bar b { animation: none; width: 100%; opacity: 0.6; }
}
@media (max-width: 820px) {
  .wrap { grid-template-columns: 1fr; padding: 0 16px 24px; }
  .top { padding: 12px 16px; }
  .motto { display: none; }
  /* phones: the projects become one row you swipe sideways, so the work starts near the top */
  .side { padding: 12px; gap: 10px; }
  .side h3 { display: none; }
  .side .pill { height: 42px; }
  .projects { grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .proj { scroll-snap-align: start; }
  .card { padding: 20px; }
  .share { grid-template-columns: 1fr; }
  .share .qr { max-width: 220px; }
}

/* Step 1 of dev/web-app-plan.md: the language switch, Fast or Careful, a part waiting for the person, Change something. */
.lang { margin-inline-start: auto; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.lang + .by { margin-left: 0; margin-inline-start: 0; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.mode { text-align: start; display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--card-line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.mode b { font-size: 17px; }
.mode span { color: var(--muted); font-size: 14px; }
.mode.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode:focus-visible { outline: 3px solid var(--hivis); outline-offset: 1px; }
.modeline .link, .link { background: none; border: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.pill.sm, .ghost.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.row.tight { margin-top: 10px; gap: 8px; }
.st.review { color: var(--hivis); }
.task.review { border-color: rgba(241, 190, 44, 0.6); }
h3.sub { margin: 18px 0 10px; font-size: 15px; color: var(--muted); }
#change-words { min-height: 90px; }
/* Right to left (Hebrew): the few rules that name a side. */
[dir="rtl"] .by { margin-left: 0; }
[dir="rtl"] .steps { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .tag { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .proj.on { box-shadow: inset -3px 0 0 var(--accent); }
[dir="rtl"] .stop::before { left: auto; right: 50%; margin-left: 0; margin-right: -7px; }
[dir="rtl"] .stop::after { left: -50%; right: 50%; }
[dir="rtl"] body { font-family: var(--body); }

/* Step 2 of dev/web-app-plan.md: the questions only the person can answer, on the plan. */
.asks { display: grid; gap: 2px; }
.asks label { margin-top: 12px; }
.asks select { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--card-line); background: var(--field); color: var(--text); font: inherit; }
.asks .bad { outline: 2px solid var(--bad); outline-offset: 1px; }
/* Step 3: a live site with changes not published yet. */
.note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: rgba(241, 190, 44, 0.12); border: 1px solid rgba(241, 190, 44, 0.45); font-size: 15px; }

/* Step 4: the account in the header, the sign-in card. */
.me { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.me #me-credits { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); color: var(--text); font-weight: 600; }
.me #me-credits.low { border-color: var(--bad); color: var(--bad); }
.card.narrow { max-width: 560px; }
/* Signed out: one column, the sign-in card in the middle. */
.signed-out .wrap { grid-template-columns: minmax(0, 1fr); }
.signed-out .card.narrow { width: 100%; margin-inline: auto; }

/* Step 5: the admin page (admin.html), for the people who run CodeLess. */
.admin-wrap { display: grid; gap: 18px; padding: 4px 24px 40px; max-width: 1280px; margin: 0 auto; }
.admin .card h2 { margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); }
.stat b { font-size: 22px; }
.stat small { font-size: 13px; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.head-row h2 { margin: 0; }
.head-row select { width: auto; min-width: 200px; }
.alist, .feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alist li { padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--card-line); color: var(--muted); }
.tag.stuck { color: var(--bad); border-color: var(--bad); }
.tag.paused, .tag.quiet { color: var(--hivis); border-color: var(--hivis); }
.who { padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); margin-top: 10px; }
.who-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.feed li { font-size: 15px; overflow-wrap: anywhere; }
.rows { display: grid; gap: 8px; }
.arow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-line); }
.arow .grow { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.arow .fig { display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; }
.arow .fig small { font-size: 12px; color: var(--muted); }
.ghost.danger, .pill.danger { color: var(--bad); border-color: var(--bad); }
.pill.danger { background: #b4432f; color: #fff; box-shadow: none; }
.me .link { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .admin-wrap { padding: 4px 16px 32px; } .arow .fig { align-items: flex-start; } }
.head-row select { padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--card-line); background: var(--field); color: var(--text); font: inherit; }
.tag.st-live, .tag.st-built { color: var(--ok); border-color: var(--ok); }
.tag.st-building, .tag.st-changing, .tag.st-new { color: var(--work); border-color: var(--work); }
.tag.st-stuck { color: var(--bad); border-color: var(--bad); }
.tag.st-paused { color: var(--hivis); border-color: var(--hivis); }
