/* Outfold tools kit (AL 10/10/2026): the shared look of Forms, Sign, Studio, Publish and Letters,
   the in-house replacements of our paid subscriptions. Same tokens as Casts. No native browser control:
   choices are pills, toggles are buttons, dialogs come from dialog.js. */
:root {
  --bg: #fafaf8; --fg: #1b1b1a; --muted: #6b6b66; --line: #e6e5e0; --card: #ffffff; --hover: #f2f1ec;
  --accent: #ff6a00; --ok: #1f9d6b; --warn: #c98a00; --bad: #c9452f; --blue: #2f6fde;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}
/* Theme (AL 12/10/2026): Auto follows the system; Light or Dark, chosen in Settings, wins (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #151514; --fg: #ecebe6; --muted: #9b9a94; --line: #2c2c2a; --card: #1d1d1c; --hover: #262624; }
}
:root[data-theme="dark"] { --bg: #151514; --fg: #ecebe6; --muted: #9b9a94; --line: #2c2c2a; --card: #1d1d1c; --hover: #262624; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.45; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; }
/* The HQ header on every tool (AL 29/10/2026: one header everywhere): the same rules as hq/app/app.css (.top, .hnav, #tabs), change both together. */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brandmark { width: 26px; height: 23px; flex: none; }
/* The HQ menu starts at the same place on every page, the HQ and every tool (AL 30/10/2026, I44: « garder la première position partout »):
   same gaps, same mark, and the brand takes the same width whatever it reads (Review writes its own name there). Same rule in app.css. */
.top > .brand { min-width: 96px; }
.hnav { display: flex; gap: 4px; flex: none; }
.hnav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 16px; cursor: pointer; padding: 0; line-height: 1; }
.hnav button:hover { background: var(--hover); }
#tabs { display: flex; gap: 4px; flex-wrap: wrap; }
#tabs a { --tc: #555; text-decoration: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
#tabs a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); margin-right: 7px; }
#tabs a:hover { background: var(--hover); color: var(--fg); }
/* The colours and the compact size of the HQ's own tabs (hq/app/app.css, 29/10/2026): ten tabs and the tool's chip must stay on one row at 1300 px. */
#tabs a[data-tab="planning"] { --tc: #d23f31; } #tabs a[data-tab="people"] { --tc: #2f6fde; } #tabs a[data-tab="review"] { --tc: #0f8b8d; } #tabs a[data-tab="model"] { --tc: #c9452f; } #tabs a[data-tab="acquisition"] { --tc: #4b5bd1; } #tabs a[data-tab="conferences"] { --tc: #8a4fd1; }
#tabs a[data-tab="oneclick"] { --tc: #1f9d6b; } #tabs a[data-tab="website"] { --tc: #2f6fde; } #tabs a[data-tab="portfolio"] { --tc: #c08a12; } #tabs a[data-tab="thinking"] { --tc: #b0428a; } #tabs a[data-tab="infra"] { --tc: #2a8f9e; }
@media (max-width: 1680px) and (min-width: 701px) { .top { gap: 10px; } #tabs { gap: 2px; } #tabs a { padding: 6px 7px; font-size: 13px; } #tabs a::before { margin-right: 5px; } }
.toolname { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--fg); color: var(--bg); min-height: 32px; }
.toolname .tooldot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.toolname .omark { color: #fff; }
.toolsmenu { position: relative; }
.themeslot { display: none; align-items: center; }
/* The button of the header is the icon alone and shows from 1366 px, where it fits on the row with the ten tabs and the tool's chip; under that the last
   line of the Tools menu carries the same switch, so the header keeps its one row at 1300 px (AL 29/10/2026, F4 and C22). */
.themeslot .themebtn { padding: 0 7px; } .themeslot .themebtn span { display: none; }
.toolslist .toolstheme { grid-column: 1 / -1; font: inherit; font-size: 14px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--fg); padding: 9px 10px; margin-top: 4px; min-height: 36px; cursor: pointer; border-radius: 0 0 8px 8px; }
.toolslist .toolstheme:hover { background: var(--hover); }
@media (min-width: 1366px) { .themeslot { display: inline-flex; } .toolslist .toolstheme { display: none; } }
.toolsbtn { font: inherit; font-size: 14px; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; }
.toolsbtn:hover, .toolsbtn[aria-expanded="true"] { color: var(--fg); border-color: var(--fg); }
.toolslist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 300px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.toolslist[hidden] { display: none; }
.toolslist a { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--fg); min-height: 34px; }
.toolslist a i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.toolslist a:hover, .toolslist a.on { background: var(--hover); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 9px; border-radius: 8px; color: var(--muted); font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a.on { background: var(--hover); color: var(--fg); }
/* No scroll when nothing justifies it (AL 29/10/2026): the room at the bottom is for the iPhone banner, phones only. */
main { padding: 18px 20px 40px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 700px) { main { padding-bottom: 90px; } #tabs a { padding: 5px 8px; font-size: 13px; white-space: nowrap; } .toolname { margin-left: 0; } .top { gap: 8px 10px; } #tabs { order: 5; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; } #tabs::-webkit-scrollbar { display: none; } .toolname { margin-left: auto; } }
h1 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 22px 0 8px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
.muted { color: var(--muted); }
.sub { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.pad { padding: 20px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--fg); cursor: pointer; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn:disabled { opacity: .55; cursor: default; border-color: var(--line); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 30px; padding: 3px 10px; font-size: 13px; border-radius: 7px; }
.iconbtn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 6px; min-height: 28px; }
.iconbtn:hover { background: var(--hover); color: var(--fg); }

/* Pills: single or multiple choice, never a <select> or a checkbox */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); cursor: pointer; font-size: 13px; user-select: none; }
.pill:hover { border-color: var(--fg); }
.pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.on.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.tog { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; user-select: none; border: 0; background: none; color: var(--fg); padding: 2px 0; min-height: 30px; }
.tog i { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.tog.on i { background: var(--ok); }
.tog.on i::after { left: 16px; }

/* Inputs */
.in, .ta { font: inherit; font-size: 14px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--fg); min-height: 38px; }
.ta { min-height: 90px; resize: vertical; line-height: 1.45; }
.in:focus, .ta:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.lab { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.lab .opt { font-weight: 400; color: var(--muted); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .field2 { grid-template-columns: 1fr; } }

/* Cards, lists, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lcard { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; cursor: pointer; }
.lcard:hover { border-color: var(--fg); }
.lcard b { display: block; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--fg); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.badge.blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.t { border-collapse: collapse; width: 100%; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-weight: 600; color: var(--muted); background: var(--bg); position: sticky; top: 0; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--hover); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 12px; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; min-height: 40px; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 14px; max-width: calc(100% - 32px); }
.drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; background: var(--card); }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--fg); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.sub, .hint, .badge { overflow-wrap: anywhere; }
.copyline { display: flex; gap: 6px; align-items: center; }
.copyline .in { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ver { color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .top { padding: 10px 16px; } main { padding: 14px 16px 90px; } }
/* Our marks without JavaScript (AL 29/10/2026, D8): the same drawings as hq/app/logos.js (OLogo) and hq/app/ologos.svg, as a mask so `color` tints them.
   <i class="omark omark-review"></i>, 1em square; the usual colours: review #0f8b8d, cast #b0428a, recording #e5382b. */
.omark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
i.omark { background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
i.omark-review { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.4 1.6 4.2 13.4h6.1l-1.7 9 9.2-11.8h-6.1z'/></svg>"); color: #0f8b8d; }
i.omark-cast { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill-rule='evenodd' d='M4 3h16a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm3.5 8.3a5.2 5.2 0 1 0 0 10.4 5.2 5.2 0 0 0 0-10.4z'/><circle cx='7.5' cy='16.5' r='3.2'/></svg>"); color: #b0428a; }
i.omark-recording { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9.5' fill='none' stroke='black' stroke-width='2.4'/><circle cx='12' cy='12' r='5.2'/></svg>"); color: #e5382b; }
.omark-recording.live { animation: omarkblink 1.2s ease-in-out infinite; }
@keyframes omarkblink { 50% { opacity: .35; } }

/* A page that is still reading shows grey bars, never the word Loading (AL 29/10/2026). Same bars as the HQ (app.css). */
.skel { display: grid; gap: 12px; padding: 24px 20px; max-width: 720px; }
.skel i { display: block; height: 14px; border-radius: 7px; background: var(--hover); animation: skel 1.1s ease-in-out infinite alternate; }
.skel i:nth-child(2) { width: 72%; } .skel i:nth-child(3) { width: 46%; }
@keyframes skel { from { opacity: .5; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }
/* One button that switches (OKit.swap, AL 30/10/2026, I31): the current value, an arrows icon, a click moves to the next value. */
.swapbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 13px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.swapbtn:hover { border-color: var(--fg); }
.swapbtn svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.swapbtn .swappre { color: var(--muted); font-weight: 500; }
.swapbtn .swappre::after { content: ":"; }
/* The tab of the page you are on (Review, a tab of the menu since AL 30/10/2026, L9): lit like the HQ's own tab. */
#tabs a.on { background: var(--tc); color: #fff; } #tabs a.on::before { background: #fff; }
/* Eleven tabs since Review joined the menu (AL 30/10/2026, L9): two tighter steps under 1460 and 1340 px keep the bar on one row from 1300 px, the tools' theme icon (1366 px and up) included. Same rule in app.css and kit.css. */
@media (max-width: 1460px) and (min-width: 701px) { #tabs { gap: 1px; } #tabs a { padding: 6px 5px; } #tabs a::before { margin-right: 4px; } }
@media (max-width: 1340px) and (min-width: 701px) { #tabs a { padding: 6px 4px; } .toolname { padding-left: 8px; padding-right: 10px; } }
/* The Review mark in the lit Review tab of the menu, in place of its dot (AL 29/10/2026 D8 « logo Review en en-tête »; 30/10/2026 M3: the top left is the
   Outfold brand again, so the mark that says where you are is the tab's). */
#tabs a.on .omark { color: #fff; margin-right: 6px; width: 14px; height: 14px; vertical-align: -0.2em; } #tabs a.on.hasmark::before { display: none; }
