/* ==========================================================================
   mockup.css: everything that is NOT the existing ELMIS style.
   1. Status tags ("Existing in ELMIS" / "New: AI")
   2. The look of the proposed AI features (green accent)
   3. Notes for the team (yellow, hidden in clean mode)
   4. Phone and conversation
   5. Scene navigation bar
   6. Storyboard page (index.html)
   ========================================================================== */

:root {
  --ai: #047857;          /* text and icons of proposed AI features */
  --ai-solid: #059669;    /* buttons */
  --ai-bg: #ecfdf5;
  --ai-line: #a7f3d0;
  --note-bg: #fef9c3;
  --note-line: #facc15;
  --tabiya-navy: #002147;
}

/* ---------- 1. Status tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.tag-existing { background: #e0e7ef; color: #2c4866; }
.tag-new { background: var(--ai-bg); color: var(--ai); border: 1px solid var(--ai-line); }
.tag-new svg { width: 12px; height: 12px; }
.tag-mock { background: #f3f4f6; color: #4b5563; border: 1px dashed #9ca3af; }
.topbar-tags { display: flex; gap: 8px; align-items: center; }

/* ---------- 2. Proposed AI features ---------- */
.ai-card { background: #fff; border-radius: 12px; border: 1.5px solid var(--ai-line); box-shadow: 0 1px 3px rgba(4,120,87,.12); padding: 24px 28px; position: relative; }
.ai-card > .tag { position: absolute; top: -11px; left: 22px; }
.ai-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 0 0 6px; color: #064e3b; }
.ai-title svg { width: 18px; height: 18px; color: var(--ai-solid); }
.ai-sub { color: var(--elmis-text-2); margin: 0 0 16px; font-size: 13.5px; max-width: 78ch; }
.btn-ai { background: var(--ai-solid); color: #fff; }
.btn-ai-outline { background: #fff; color: var(--ai); border: 1px solid var(--ai-line); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }

.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.channel { border: 1px solid var(--elmis-line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.channel.selected { border-color: var(--ai-solid); box-shadow: 0 0 0 3px var(--ai-bg); }
.channel h3 { margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.channel h3 svg { width: 16px; height: 16px; color: var(--ai-solid); }
.channel p { margin: 0; color: var(--elmis-text-2); font-size: 12.5px; flex: 1; }
.channel small { color: var(--elmis-text-3); font-size: 11.5px; }

.consent { display: flex; gap: 10px; align-items: flex-start; background: var(--elmis-row); border: 1px solid var(--elmis-line); border-radius: 8px; padding: 12px 14px; font-size: 13px; margin: 16px 0; cursor: pointer; }
.consent i { width: 16px; height: 16px; border: 1.5px solid #6b7280; border-radius: 3px; flex: none; margin-top: 1px; display: grid; place-items: center; }
.consent.on i { background: var(--ai-solid); border-color: var(--ai-solid); }
.consent.on i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* Experience blocks with suggested skills (review screen) */
.exp { border: 1px solid var(--elmis-line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.exp-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.exp-head h3 { margin: 0; font-size: 14.5px; }
.exp-type { font-size: 11.5px; color: var(--elmis-text-2); background: #f3f4f6; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.quote { margin: 10px 0 12px; padding: 8px 12px; border-left: 3px solid var(--ai-line); background: #f9fafb; border-radius: 0 6px 6px 0; }
.quote .am { font-family: "Noto Sans Ethiopic", var(--font); font-size: 14px; }
.quote .en { color: var(--elmis-text-2); font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ai-line); background: var(--ai-bg); color: #064e3b; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer; user-select: none; }
.chip::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ai-solid); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.chip.off { background: #f3f4f6; border-color: #d1d5db; color: #9ca3af; text-decoration: line-through; }
.chip.off::before { background: #9ca3af; -webkit-mask: none; mask: none; height: 2px; border-radius: 1px; }
.chip.ask { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.chip.ask::before { background: #d97706; -webkit-mask: none; mask: none; width: 6px; height: 6px; }
.chip.static { cursor: default; }
.chip.plain { background: #fff; border-color: #d1d5db; color: #374151; }
.chip.plain::before { display: none; }
.chip.miss { background: #fff; border: 1px dashed #9ca3af; color: #6b7280; }
.chip.miss::before { display: none; }
.summary-bar { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--elmis-text-2); }
.summary-bar b { font-size: 20px; color: var(--elmis-text); margin-right: 6px; font-weight: 600; }

/* Guidance screen */
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.profile-facts dt { color: var(--elmis-text-3); }
.profile-facts dd { margin: 0; }
.mini-exp { border-top: 1px solid var(--elmis-line); padding: 10px 0; }
.mini-exp h4 { margin: 0 0 6px; font-size: 13px; }
.mini-exp .chips { gap: 5px; }
.mini-exp .chip { font-size: 11.5px; padding: 3px 8px; }
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pathway { border: 1px solid var(--elmis-line); border-radius: 8px; padding: 12px; font-size: 12.5px; cursor: pointer; background: #fff; }
.pathway b { display: block; font-size: 13px; margin-bottom: 4px; }
.pathway span { color: var(--elmis-text-2); }
.pathway.on { border-color: var(--elmis-blue); box-shadow: 0 0 0 3px #dbeafe; }
.pathway .tag { margin-bottom: 6px; }
.vacancy { border: 1px solid var(--elmis-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.vacancy-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vacancy h3 { margin: 0; font-size: 14.5px; }
.vacancy .employer { color: var(--elmis-text-2); font-size: 12.5px; }
.match-count { font-size: 12.5px; font-weight: 600; color: #1f2937; white-space: nowrap; }
.match-bar { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.match-bar i { width: 14px; height: 6px; border-radius: 2px; background: #d1d5db; }
.match-bar i.on { background: var(--elmis-blue); }
.why { margin: 10px 0 0; padding: 9px 12px; background: var(--ai-bg); border: 1px solid var(--ai-line); border-radius: 8px; font-size: 12.5px; color: #064e3b; display: flex; gap: 8px; }
.why svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--ai-solid); }
.plan { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
.plan li { counter-increment: plan; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--elmis-line); font-size: 13.5px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: counter(plan); width: 22px; height: 22px; border-radius: 50%; background: var(--ai-bg); color: var(--ai); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.plan small { display: block; color: var(--elmis-text-3); font-size: 12px; }
.plan [contenteditable]:focus { outline: 2px solid var(--ai-line); border-radius: 4px; }
.plan .who { font-size: 11.5px; color: var(--elmis-text-2); background: #f3f4f6; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #064e3b; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.toast.show { opacity: 1; }

/* ---------- 3. Notes for the team ---------- */
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #713f12; max-width: 100ch; }
.note b { color: #422006; }
.note::before { content: "Note for the team"; display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; color: #a16207; }
body.clean .note { display: none; }
body:not(.notes-ready) .note { display: none; }   /* hidden until mockup.js has applied the Notes setting */

/* ---------- 4. Phone and conversation ---------- */
.stage { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.phone { width: 230px; background: #1f2937; border-radius: 26px; padding: 16px 14px 20px; color: #fff; position: sticky; top: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.phone-screen { background: #cfe3d4; color: #0f2a1d; border-radius: 6px; padding: 12px 10px; min-height: 150px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; text-align: center; border: 3px solid #111827; }
.phone-screen b { font-size: 13px; }
.phone-screen .timer { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-screen .am { font-family: "Noto Sans Ethiopic", var(--font); }
.phone-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.phone-keys span { background: #374151; border-radius: 7px; height: 24px; display: grid; place-items: center; font-size: 11px; color: #d1d5db; }
.phone-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.phone-nav i { width: 44px; height: 14px; border-radius: 7px; background: #374151; }
.phone-nav i.end { background: #b91c1c; }
.phone-nav i.call { background: #15803d; }
.phone-caption { margin-top: 10px; font-size: 11.5px; color: var(--elmis-text-2); text-align: center; width: 230px; }

.transcript { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px 22px; min-height: 480px; }
.transcript-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.transcript-head h2 { margin: 0; font-size: 15px; }
.turn { max-width: 86%; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; animation: rise .25s ease-out; }
.turn .who { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.turn .who svg { width: 12px; height: 12px; }
.turn .am { font-family: "Noto Sans Ethiopic", var(--font); font-size: 15px; line-height: 1.6; }
.turn .en { font-size: 12.5px; color: var(--elmis-text-2); margin-top: 3px; }
.turn.ai { background: var(--ai-bg); border: 1px solid var(--ai-line); border-bottom-left-radius: 3px; }
.turn.ai .who { color: var(--ai); }
.turn.js { background: #eff6ff; border: 1px solid #bfdbfe; margin-left: auto; border-bottom-right-radius: 3px; }
.turn.js .who { color: #1d4ed8; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.player { display: flex; gap: 8px; align-items: center; }
.player .hint { color: var(--elmis-text-3); font-size: 12px; }

.side-panel { background: #fff; border-radius: 12px; border: 1.5px solid var(--ai-line); padding: 18px; position: sticky; top: 20px; }
.side-panel h2 { margin: 0 0 4px; font-size: 14.5px; color: #064e3b; }
.side-panel > p { margin: 0 0 12px; font-size: 12.5px; color: var(--elmis-text-2); }
.heard { border-top: 1px solid var(--elmis-line); padding: 10px 0; animation: rise .3s ease-out; }
.heard h4 { margin: 0 0 2px; font-size: 13px; }
.heard small { color: var(--elmis-text-3); font-size: 11.5px; display: block; margin-bottom: 6px; }
.heard .chips { gap: 5px; }
.heard .chip { font-size: 11.5px; padding: 3px 8px; }
.empty { color: var(--elmis-text-3); font-size: 12.5px; padding: 10px 0; border-top: 1px solid var(--elmis-line); }
.safeguards { margin: 12px 0 0; padding: 10px 0 0 16px; border-top: 1px solid var(--elmis-line); font-size: 12px; color: var(--elmis-text-2); }
.safeguards li { margin-bottom: 4px; }

/* ---------- 5. Scene navigation bar ---------- */
.scene-nav { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #111827; color: #fff; border-radius: 999px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0,0,0,.3); z-index: 50; white-space: nowrap; }
.scene-nav a, .scene-nav button { color: #fff; background: #374151; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.scene-nav a.is-off { opacity: .35; pointer-events: none; }
.scene-nav .where { padding: 0 10px; }
.scene-nav .where b { font-weight: 600; }
body.hide-nav .scene-nav { display: none; }

/* ---------- 6. Storyboard page ---------- */
body.hub { background: #f3f4f6; }
.hub-top { background: var(--tabiya-navy); color: #fff; padding: 34px 0 30px; }
.hub-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.hub-top h1 { margin: 0 0 8px; font-size: 26px; }
.hub-top p { margin: 0; color: #cbd5e1; max-width: 80ch; font-size: 15px; }
.hub-top .tag { margin-bottom: 14px; }
.hub-section { margin: 28px 0; }
.hub-section > h2 { font-size: 17px; margin: 0 0 12px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-card { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hub-card h3 { margin: 0 0 8px; font-size: 14.5px; }
.hub-card p, .hub-card li { font-size: 13.5px; color: #374151; }
.hub-card ul { margin: 0; padding-left: 18px; }
.scene-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; margin-bottom: 12px; }
.scene-no { width: 40px; height: 40px; border-radius: 50%; background: var(--tabiya-navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.scene-card.todo .scene-no { background: #9ca3af; }
.scene-card h3 { margin: 0 0 4px; font-size: 15.5px; }
.scene-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; color: #4b5563; }
.scene-card p { margin: 0 0 6px; font-size: 13.5px; color: #374151; max-width: 86ch; }
.scene-card .say { border-left: 3px solid #cbd5e1; padding-left: 12px; color: #1f2937; }
.scene-card .say::before { content: "Draft narration: "; font-weight: 600; color: #475569; }
.scene-card .secs { font-variant-numeric: tabular-nums; color: #6b7280; font-size: 12px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #374151; }
.kbd { background: #e5e7eb; border-radius: 4px; padding: 1px 6px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.hub-foot { color: #6b7280; font-size: 12.5px; padding: 10px 0 40px; }

@media (max-width: 1180px) {
  .stage { grid-template-columns: 1fr; }
  .phone, .side-panel { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .channel-grid, .pathways, .hub-grid { grid-template-columns: 1fr; }
}
