/* The colours these pages use. /site.css only sets fonts, so the app pages carry their own: the same paper, ink and red pencil as the landing page. */
:root { --bg: #fffaf0; --paper: #f3ede1; --ink: #1f1b16; --muted: #5a5246; --line: #cfc4ae; --accent: #b93c0e; --accent-soft: #f7e6dc;
        --danger: #a11d1d; --ok: #2f5d3a; --radius: 14px; }
body.co { background: var(--paper); color: var(--ink); margin: 0; font-size: 17px; line-height: 1.55; }
.co a { color: var(--accent); }
.co :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.co .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 3px; border: 2px solid var(--ink);
           background: transparent; color: var(--ink); font: 600 16px/1 inherit; text-decoration: none; cursor: pointer; }
.co .btn:hover { background: #f2d05a; }
.co .btn.primary { background: var(--accent); color: #fffaf0; box-shadow: 3px 3px 0 var(--ink); }
.co .btn.primary:hover { background: #8f2d08; }
.co .btn:disabled { opacity: .55; cursor: default; }
.co h1, .co h2 { font-family: var(--font-serif, Georgia, serif); }
/* CharacterOS pages: small and plain. The site's own stylesheet (/site.css) gives the header, buttons and base look. */
.co-wrap { max-width: 760px; margin: 0 auto; padding: 36px 16px 56px; }
.co-wrap h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.co-lead { color: var(--muted); margin: 0 0 24px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; font-size: 15px; }
.notice.warn { border-left-color: var(--danger); }
.notice.ok { border-left-color: var(--ok); }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 8px; }

/* the start screen: five big choices */
.co-choices { display: grid; gap: 12px; margin: 0 0 24px; }
.co-choice { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; min-height: 64px; }
.co-choice:hover, .co-choice:focus-visible { border-color: var(--accent); }
.co-choice b { display: block; font-size: 18px; font-weight: 600; }
.co-choice span { color: var(--muted); font-size: 14px; }
.co-resume { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }

/* a workflow: the progress strip and one question */
.strip { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.strip li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.strip li[aria-current="step"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.strip li.done { color: var(--ink); }
.strip li.auto { font-style: italic; }
.co-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.co-card h2 { font-size: 22px; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.chip { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; text-align: left; }
.chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.chip small { display: block; color: var(--muted); font-size: 13px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
button.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
footer.co-foot { border-top: 1px solid var(--line); padding: 24px 0 36px; margin-top: 24px; }
footer.co-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.co-foot a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }

/* the Advanced features screen ("About them") and its link on the start screen */
.co-adv { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.co-adv a { color: var(--accent); font-weight: 600; }
.about-form { margin: 0 0 28px; }
.about-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 8px 18px 18px; margin: 0 0 18px; }
.about-form legend { font-weight: 700; font-size: 18px; padding: 0 8px; }
.about-grid { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .about-grid { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); } }
#rel-add .about-grid { grid-template-columns: minmax(0, 1fr); } @media (min-width: 640px) { #rel-add .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.about-row { display: flex; gap: 12px; align-items: flex-end; margin: 8px 0; flex-wrap: wrap; }
.about-row > div { flex: 1 1 200px; min-width: 0; }
.about-row select { width: auto; min-width: 130px; }
.about-main { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; }
.about-skill { padding: 11px 0; font-weight: 600; }
.about-list { list-style: none; margin: 0 0 16px; padding: 0; }
.about-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.about-list li span { flex: 1 1 220px; }

/* uploads when creating a character */
.intake { margin: 6px 0 4px; }
.slots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 10px 0; }
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); display: grid; gap: 6px; align-content: start; }
.slot img { border-radius: 8px; max-width: 100%; height: auto; border: 1px solid var(--line); }
.slot input[type=file], .intake input[type=file] { font-size: 14px; max-width: 100%; }
.sentence { border-left: 4px solid var(--accent); margin: 12px 0; padding: 10px 16px; background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 18px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 16px 0 4px; }
.agree input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

/* a hidden thing stays hidden even when another rule gives it a display (the start choices stayed on screen during a workflow) */
[hidden] { display: none !important; }

/* the character's name, big, at the top of every step about a character */
.co-who { display: flex; flex-direction: column; margin: 4px 0 14px; }
.co-who span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.co-who strong { font-family: var(--font-serif, Georgia, serif); font-size: clamp(38px, 8vw, 64px); line-height: 1.05; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }

/* the five choices are numbered 01 to 05, the same numbers the landing page and the help use */
.co-choice { display: flex; align-items: center; gap: 16px; }
.co-choice .co-num { flex: none; width: 2.2em; font: italic 700 34px/1 var(--font-serif, Georgia, serif); color: var(--accent); }
.co-choice div { min-width: 0; }
.co-choice div span { display: block; }

/* talking videos: the picture choice, the finished video (its own shape, never stretched) and the list of the customer's videos */
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.pic { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; text-align: left; cursor: pointer; background: var(--paper); border: 2px solid var(--line, #cfc6b4); border-radius: 6px; font: inherit; color: inherit; }
.pic[aria-pressed="true"] { border-color: var(--accent); }
.pic img { width: 100%; height: auto; display: block; border-radius: 3px; }
.pic small { color: var(--muted); }
.co-video { display: block; max-width: 100%; height: auto; margin: 12px 0; background: #000; }
.co-thumb { flex: none; width: 96px; height: auto; border-radius: 3px; }

/* the storyboard of a short film */
.shots { margin: 8px 0 12px; padding-left: 22px; }
.shots li { margin: 0 0 8px; }

/* the film builder: one card for every scene */
.scenes { display: grid; gap: 14px; margin: 10px 0; }
.scene { border: 2px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--bg); }
.scene-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.scene-tools { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.scene-tools .btn { padding: 4px 10px; font-size: 14px; }
.scene textarea { width: 100%; box-sizing: border-box; }
.scene-by { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.scene-by select { flex: 1; min-width: 0; }
.scene-draft { margin: 14px 0; }
.scene-draft summary { cursor: pointer; }

/* Rewrite with AI: the buttons sit under the box, at its bottom right corner */
.rw { margin: 8px 0; }
.rw-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rw-msg { margin: 0 auto 0 0; }
.rw-btn { padding: 4px 10px; font-size: 14px; }

/* downloading the scenes of a film */
.dl { margin-top: 18px; border-top: 2px solid var(--line); padding-top: 8px; }
.dl-list { padding-left: 22px; }
.dl-list li { margin: 0 0 12px; }
.dl .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* remaking one scene of a finished film */
.scene.remake { margin: 8px 0 14px; }
