/* Internship Studio — app UI (mobile-first). */
:root {
  --pri: #059669; --pri-d: #047857; --pri2: #0d9488; --acc: #f59e0b; --em-900: #064e3b; --em-800: #065f46; --ok: #15803d; --warn: #b45309; --err: #b42318;
  --bg: #f3f8f6; --surface: #fff; --ink: #13201b; --muted: #55675f; --line: #dfe9e4; --soft: #e8f7f0;
  --r: 14px; --shadow: 0 1px 2px rgba(22,26,36,.06), 0 8px 24px rgba(22,26,36,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "NotoSans", "Noto Sans Gujarati", "NotoSansGujarati", "Noto Sans Devanagari", "NotoSansDevanagari", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; }
a { color: var(--pri); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pri) 55%, white); outline-offset: 2px; }
.hide { display: none !important; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.boot { min-height: 60vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pri); animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #064e3b, #10b981 55%, #f59e0b) 1; box-shadow: 0 4px 18px rgba(6,78,59,.08); }
@font-face { font-family: 'IsDisplay'; src: url('../../fonts/poppins-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'IsDisplay'; src: url('../../fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
.brand-mark { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 3px 6px rgba(6,95,70,.25)); }
.wordmark { display: block; font-family: 'IsDisplay', 'Poppins', system-ui, sans-serif; font-weight: 800; font-size: 31px; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.wordmark .w1 { color: var(--em-800); }
.wordmark .w2 { background: linear-gradient(135deg, #10b981, #047857); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .w3 { color: #d97706; font-size: .72em; }
.initiative { display: block; font-family: 'IsDisplay', system-ui, sans-serif; font-weight: 600; font-size: 14.5px; color: var(--muted); margin-top: 5px; letter-spacing: .02em; white-space: nowrap; }
.initiative b { color: var(--pri-d); }
@media (min-width: 720px) { .top { padding: 16px 28px; } .brand { gap: 16px; } .brand-mark { width: 84px; height: 84px; } .wordmark { font-size: 58px; } .initiative { font-size: 21px; margin-top: 8px; } }
@media (min-width: 1100px) { .wordmark { font-size: 66px; } .initiative { font-size: 23px; } .brand-mark { width: 92px; height: 92px; } }
@media (max-width: 719px) { .top { position: relative; flex-wrap: wrap; row-gap: 8px; } .brand { flex: 1 1 100%; } .top-right { margin-left: auto; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-text { min-width: 0; }
.top-right { display: flex; align-items: center; gap: 8px; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ai.ok { background: #e7f6ec; color: var(--ok); } .pill.ai.ok::before { content: '● '; }
.pill.ai.bad { background: #fdecea; color: var(--err); }
.pill.save { display: none; } .pill.save.flash { display: inline-block; }
@media (min-width: 720px) { .pill.save { display: inline-block; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop, .more-pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 230px; padding: 6px; z-index: 40; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 15px; }
.menu-item:hover { background: var(--soft); }
.menu-item.danger { color: var(--err); }
.menu-item .inp.mini { padding: 6px 8px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 480px at 90% -10%, rgba(16,185,129,.45), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(245,158,11,.18), transparent 60%), linear-gradient(135deg, #022c22 0%, #064e3b 45%, #047857 100%); padding: 42px 18px 54px; display: grid; gap: 24px; }
.hero-in { max-width: 640px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 99px; margin: 0 0 14px; }
.hero h1 { font-family: Georgia, "Noto Serif", "NotoSerif", serif; font-size: clamp(30px, 7vw, 52px); line-height: 1.08; margin: 0 0 14px; font-weight: 700; }
.hero h1 em { font-style: normal; color: #fcd34d; }
.hero .lead { font-size: 17px; opacity: .92; margin: 0 0 22px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { font-size: 14px; opacity: .85; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 15px; }
.hero-points li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); margin-right: 8px; font-size: 13px; }
.hero-art { display: none; position: relative; min-height: 300px; }
.paper { position: absolute; width: 190px; height: 250px; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.paper i { display: block; height: 8px; border-radius: 4px; background: #e5e7f2; }
.paper b { display: block; height: 70px; border-radius: 6px; background: linear-gradient(135deg, #a7f3d0, #fde68a); }
.paper.p1 { right: 180px; top: 30px; transform: rotate(-8deg); }
.paper.p2 { right: 60px; top: 10px; transform: rotate(4deg); }
.paper.p3 { right: 110px; top: 90px; transform: rotate(-1deg); }
@media (min-width: 960px) { .hero { grid-template-columns: 1.2fr .8fr; padding: 70px 6vw 80px; align-items: center; } .hero-art { display: block; } }
.how, .langs { max-width: 1100px; margin: 0 auto; padding: 34px 18px 10px; }
.how h2, .langs h2 { font-family: Georgia, "Noto Serif", serif; font-size: 26px; margin: 0 0 16px; }
.how-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.how-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--pri); font-weight: 700; }
.how-card h3 { margin: 10px 0 6px; font-size: 17px; } .how-card p { margin: 0; color: var(--muted); font-size: 15px; }
.langs-list { font-size: 20px; line-height: 1.9; color: var(--pri-d); }

/* ---------- wizard layout ---------- */
.wizard { max-width: 1100px; margin: 0 auto; padding: 0 0 90px; }
.stepper { position: sticky; top: 71px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 8px 12px; width: max-content; }
.step { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px 6px 6px; cursor: pointer; white-space: nowrap; font-size: 14px; color: var(--muted); }
.step .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 700; }
.step.done .n { background: #dcfce7; color: var(--ok); }
.step.on { border-color: var(--pri); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 18%, transparent); }
.step.on .n { background: var(--pri); color: #fff; }
.content { padding: 14px 12px; }
.panel-head { margin: 4px 4px 14px; }
.kicker { margin: 0; color: var(--pri); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.panel-head h2 { margin: 2px 0 0; font-family: Georgia, "Noto Serif", "NotoSerif", serif; font-size: 26px; }
@media (min-width: 900px) {
  .wizard { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 20px 20px 100px; }
  .stepper { position: sticky; top: 76px; align-self: start; border: 0; background: none; overflow: visible; }
  .stepper ol { flex-direction: column; width: auto; padding: 0; }
  .step { width: 100%; border-radius: 12px; padding: 8px 10px; }
  .content { padding: 0; max-width: 780px; }
  .wizard.wide .content { max-width: none; }
}
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.navpos { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .navbar { position: static; background: none; border: 0; padding: 18px 0 0; backdrop-filter: none; } }

/* ---------- cards & forms ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 0 0 14px; }
.card-title { margin: 0 0 4px; font-size: 18px; }
.card-sub { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.grid2, .grid3 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { margin: 0 0 12px; min-width: 0; }
.field > label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 5px; }
.req { color: var(--err); } .opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.inp { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; font-size: 16px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 15%, transparent); outline: none; }
textarea.inp { resize: vertical; min-height: 90px; line-height: 1.5; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace; font-size: 14px; }
.inp.mini { min-height: 34px; padding: 4px 8px; font-size: 14px; width: auto; }
.row { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; margin: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--pri); }
.check.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; color: var(--ink); transition: transform .05s, background .15s, border-color .15s; }
.btn:hover { border-color: #c7cbe0; background: #fafbff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #10b981, var(--pri-d)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(5,150,105,.28); }
.btn.accent { background: linear-gradient(135deg, var(--pri2), #0f766e); color: #fff; border-color: transparent; }
.btn.ok { background: #e7f6ec; color: var(--ok); border-color: #bfe6cc; }
.btn.ghost { background: transparent; }
.btn.danger, .btn.ghost.danger { color: var(--err); }
.btn.small { min-height: 36px; padding: 6px 11px; font-size: 14px; border-radius: 9px; }
.btn.big { min-height: 52px; padding: 12px 22px; font-size: 16.5px; border-radius: 12px; }
.btn.on { border-color: var(--pri); color: var(--pri); }
.hero .btn.primary { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #064e3b; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn { flex: 1 1 auto; min-height: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; display: flex; flex-direction: column; align-items: center; }
.seg-btn small { font-weight: 400; color: var(--muted); font-size: 12px; }
.seg-btn.on { border-color: var(--pri); background: var(--soft); color: var(--pri-d); }
.notice { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin: 10px 0; }
.notice.warn { background: #fff7e6; color: #7a4a00; }
.notice.err { background: #fdecea; color: var(--err); }
.notice.ok { background: #e7f6ec; color: var(--ok); }
.empty-note { color: var(--muted); font-style: italic; margin: 8px 0; }
.job-status { font-size: 14px; color: var(--pri-d); }
.badge { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--pri-d); margin-left: 6px; font-weight: 600; }
.badge.ai { background: #fff3d6; color: #8a5a00; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; color: var(--muted); }
.chip.toggle.on { border-color: var(--pri); background: var(--soft); color: var(--pri-d); }
.chip.add { border-style: dashed; }
.chip small { color: var(--muted); }
.chip-x { margin-left: 4px; color: var(--err); font-weight: 700; }

/* mode & language pickers */
.mode-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .mode-grid { grid-template-columns: 1fr 1fr; } }
.mode-card { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.mode-card b { font-size: 17px; } .mode-card span { color: var(--muted); font-size: 14.5px; }
.mode-card .mode-ico { font-size: 26px; }
.mode-card.on { border-color: var(--pri); background: linear-gradient(180deg, #fff, var(--soft)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 15%, transparent); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lang-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lang-btn b { font-size: 18px; font-weight: 600; } .lang-btn small { color: var(--muted); font-size: 12px; }
.lang-btn.on { border-color: var(--pri); background: var(--soft); }

/* images */
.imgpick { display: flex; gap: 12px; align-items: center; }
.thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 24px; }

/* facts */
.facts { margin-top: 10px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14.5px; }
.fact input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pri); flex: none; }
.fact.on { border-color: var(--pri); background: var(--soft); }
.fact-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.fact .src { font-size: 13px; white-space: nowrap; }
.person { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }

/* period & diary */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--soft); border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--pri-d); } .stat span { font-size: 12.5px; color: var(--muted); }
.days { display: grid; gap: 8px; margin-top: 8px; }
.day { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.day.ai { border-color: #f4d58d; background: #fffdf5; }
.day summary { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 12px; cursor: pointer; }
.day summary::-webkit-details-marker { display: none; }
.day-n { font-weight: 700; } .day-date { color: var(--muted); font-size: 14px; }
.day-sum { flex: 1 1 100%; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 620px) { .day-sum { flex: 1 1 auto; } }
.day-body { padding: 0 12px 12px; }
.day-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.day-photo { display: flex; gap: 8px; align-items: center; }
.day-photo .thumb { width: 48px; height: 48px; object-fit: cover; }
.diary-count { font-size: 14px; margin: 6px 0; } .diary-count.warn { color: var(--warn); font-weight: 600; }
.sticky-tools { position: sticky; top: 108px; z-index: 5; background: #fff; padding: 6px 0; }
@media (min-width: 900px) { .sticky-tools { top: 64px; } }

/* uploads */
.upl { display: grid; gap: 8px; }
.upl-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--soft); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.annex-slot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.annex-slot h4 { margin: 0 0 6px; } .annex-slot small { color: var(--muted); font-weight: 400; }
.tpl-preview { background: #fbfbfe; border: 1px dashed #cfd3e6; border-radius: 10px; padding: 12px; font-size: 14px; margin-top: 8px; }
.tpl-preview p { margin: 6px 0 0; }

/* sections library */
.lib-group { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lib-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
.lib-item { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; background: #fff; min-height: 50px; }
.lib-item input { width: 20px; height: 20px; accent-color: var(--pri); flex: none; }
.lib-item.on { border-color: var(--pri); background: var(--soft); }
.lib-item.locked { opacity: .8; }
.lib-name { flex: 1; font-size: 14.5px; line-height: 1.3; } .lib-name small { display: block; color: var(--muted); font-size: 12px; }
.lib-count { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.lib-rec { color: var(--acc); }
.order { list-style: none; padding: 0; margin: 0; counter-reset: o; }
.order-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.order-item::before { counter-increment: o; content: counter(o); width: 24px; color: var(--muted); font-size: 13px; }
.order-item.custom { border-style: dashed; border-color: var(--pri); }
.order-item.drag { opacity: .5; }
.grip { cursor: grab; color: #aab; }
.order-name { font-size: 14.5px; }

/* acknowledgement & sources */
.ack-group h4 { margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.quotes { display: grid; gap: 8px; }
.quote-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font-size: 14.5px; }
.quote-opt input { margin-top: 3px; accent-color: var(--pri); }
.quote-opt small { display: block; color: var(--muted); }
.quote-opt.on { border-color: var(--pri); background: var(--soft); }
.source { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }

/* photos */
.photos { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 620px) { .photos { grid-template-columns: 1fr 1fr; } }
.photo { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.photo img { width: 100%; height: 190px; object-fit: cover; display: block; }
.photo-fields { padding: 10px; display: grid; gap: 8px; }

/* generate */
.ready { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ready li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; }
.ready li.ok { background: #f1faf4; } .ready li.bad { background: #fdecea; } .ready li.warn { background: #fff7e6; } .ready li.info { background: var(--soft); }
.ready .ico { width: 22px; text-align: center; font-weight: 700; }
.ready li.ok .ico { color: var(--ok); } .ready li.bad .ico { color: var(--err); } .ready li.warn .ico { color: var(--warn); }
.ready li span:nth-child(2) { flex: 1; }
.progress { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--pri), var(--pri2)); transition: width .5s; }
.gen-progress { margin-top: 10px; }
.privacy { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

/* review */
.export-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 6px; }
.review-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .review-grid { grid-template-columns: 1fr 330px; align-items: start; } .review-side { position: sticky; top: 76px; } }
.sec-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; border-left: 4px solid var(--pri); }
.sec-card.auto { border-left-color: #c7cbe0; }
.sec-card.locked { border-left-color: var(--acc); }
.sec-card header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sec-card h3 { margin: 0; font-size: 17px; flex: 1; }
.sec-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--soft); color: var(--pri-d); border-radius: 6px; padding: 2px 7px; }
.sec-preview { font-size: 14.5px; max-height: 260px; overflow: auto; margin: 8px 0; padding-right: 6px; }
.sec-preview p { margin: 0 0 8px; } .sec-preview h4 { margin: 10px 0 4px; }
.sec-preview .note { color: var(--muted); font-style: italic; }
.tbl-wrap { overflow-x: auto; } .tbl-wrap table { border-collapse: collapse; font-size: 13px; } .tbl-wrap th, .tbl-wrap td { border: 1px solid var(--line); padding: 4px 6px; }
.sec-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.more { position: relative; } .more summary { list-style: none; } .more summary::-webkit-details-marker { display: none; }
.more-pop { left: 0; right: auto; }
.quick-preview { margin-top: 12px; background: #e9ecf3; border-radius: var(--r); padding: 12px 8px; }
.quick-preview:empty { display: none; }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(15,18,30,.45); z-index: 60; display: grid; place-items: end center; padding: 0; }
@media (min-width: 620px) { .modal-wrap { place-items: center; padding: 20px; } }
.modal { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px; }
@media (min-width: 620px) { .modal { border-radius: 18px; } }
.modal h3 { margin: 0 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.arch { list-style: none; padding: 0; margin: 0; } .arch li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: #1e2230; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--err); } #toast.ok { background: var(--ok); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 100px; }
@media (min-width: 900px) { .foot { padding-bottom: 30px; } }
@media (max-width: 560px) {
  .pill.save, .pill.save.flash { display: none; }
  .pill.ai { font-size: 0; padding: 6px; width: 14px; height: 14px; border-radius: 50%; background: #c7cbe0; }
  .pill.ai.ok { background: #22c55e; } .pill.ai.bad { background: #ef4444; }
  .pill.ai::before { content: none !important; }
}

@media (min-width: 900px) { .stepper { top: 104px; } .review-side { top: 110px; } }
@media (max-width: 380px) { .wordmark { font-size: 26px; } .initiative { font-size: 12.5px; } .brand-mark { width: 44px; height: 44px; } }
.ph, .sec-preview .ph { color: #dc2626; font-weight: 600; }

/* Home: Detailed / Quick mode chooser */
.modes { max-width: 1100px; margin: 0 auto; padding: 28px 16px 8px; }
.modes h2 { font-family: Georgia, "Noto Serif", serif; font-size: 26px; margin: 0 0 16px; text-align: center; }
.modes-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .modes-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.mode-pick { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(6,78,59,.07); }
.mode-pick.detailed { border-color: #a7f3d0; background: linear-gradient(180deg, #fff, #ecfdf5); }
.mode-pick.quick { border-color: #fcd34d; background: linear-gradient(180deg, #fff, #fffbeb); }
.mode-pick p { margin: 0; color: var(--ink); line-height: 1.55; flex: 1; }
.mode-pick .btn { align-self: flex-start; }
.mp-head { display: flex; align-items: center; gap: 12px; }
.mp-head h3 { margin: 0; font-size: 22px; font-family: 'IsDisplay', 'Poppins', system-ui, sans-serif; font-weight: 800; color: var(--em-800); }
.mp-ico { font-size: 34px; line-height: 1; }
.mp-tag { display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #d1fae5; color: #065f46; }
.mode-pick.quick .mp-tag { background: #fef3c7; color: #92400e; }
.wizard.quick { display: block; max-width: 920px; margin: 0 auto; padding: 16px; }
.wizard.quick .content { width: 100%; }
.mode-pick.quick .btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-color: transparent; }

/* Mode bar: Home + switch to the other mode (always visible inside a mode) */
.modebar { max-width: 1100px; margin: 12px auto 0; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.modebar .home-btn { font-weight: 700; }
.modebar .try-quick, .modebar .try-detailed { font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(0,0,0,.14); animation: tryPulse 2.4s ease-in-out infinite; }
.modebar .try-quick { background: linear-gradient(135deg, #f59e0b, #d97706); }
.modebar .try-detailed { background: linear-gradient(135deg, #10b981, #047857); }
@keyframes tryPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); } }
@media (prefers-reduced-motion: reduce) { .modebar .try-quick, .modebar .try-detailed { animation: none; } }
.landing .modes { padding-top: 34px; }

/* Header v1.1.1: big centred logotype "Internship Studio" + "A Chintan Mahida Initiative" */
.top { position: relative; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 18px 16px 14px; }
.brand { flex: 0 1 auto; justify-content: center; text-align: center; gap: 14px; }
.brand-text { display: flex; flex-direction: column; align-items: center; }
.wordmark { font-size: 34px; letter-spacing: -.02em; white-space: normal; }
.initiative { font-size: 16px; margin-top: 7px; letter-spacing: .03em; }
.brand-mark { width: 56px; height: 56px; }
.top-right { flex: 1 1 100%; justify-content: center; }
@media (min-width: 720px) {
  .top { padding: 22px 28px 20px; }
  .brand { gap: 20px; flex: 0 1 auto; }
  .brand-mark { width: 96px; height: 96px; }
  .wordmark { font-size: 64px; }
  .initiative { font-size: 24px; margin-top: 10px; }
  .top-right { position: absolute; right: 22px; top: 16px; flex: none; }
}
@media (min-width: 1100px) { .wordmark { font-size: 76px; } .initiative { font-size: 27px; } .brand-mark { width: 108px; height: 108px; } }
@media (min-width: 720px) and (max-width: 1099px) { .top { padding-top: 58px; } }
@media (max-width: 380px) { .wordmark { font-size: 29px; } .initiative { font-size: 14px; } .brand-mark { width: 46px; height: 46px; } }
/* controls sit on their own slim row above the centred logotype (never overlap it) */
.top-right { order: -1; flex: 1 1 100%; justify-content: flex-end; position: static; }
.wordmark { white-space: nowrap; }
@media (min-width: 720px) { .top-right { position: static; flex: 1 1 100%; } .top { padding-top: 10px; } }
@media (min-width: 720px) and (max-width: 1099px) { .top { padding-top: 10px; } }
@media (max-width: 719px) { .wordmark { font-size: 27px; } .initiative { font-size: 14px; } .brand { gap: 10px; } .brand-mark { width: 48px; height: 48px; } }
@media (max-width: 380px) { .wordmark { font-size: 23px; } .initiative { font-size: 12.5px; } .brand-mark { width: 40px; height: 40px; } }

/* ---------- interactive report dashboard ---------- */
.dash { display: grid; gap: 14px; margin: 14px 0; }
.dash-title { margin: 0; font-size: 18px; color: var(--em-800); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dk { background: linear-gradient(160deg, #ecfdf5, #fff); border: 1px solid #a7f3d0; border-radius: 14px; padding: 12px 14px; }
.dk b { display: block; font-size: 26px; line-height: 1.1; color: #065f46; font-family: 'IsDisplay', 'Poppins', system-ui, sans-serif; }
.dk span { font-size: 13px; color: var(--muted); }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(6,78,59,.05); }
.dash-card h4 { margin: 0 0 10px; font-size: 15.5px; color: #065f46; }
.meter-row { display: grid; grid-template-columns: minmax(110px, 1.3fr) 2fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed #e5e7eb; }
.meter-row:first-of-type { border-top: 0; }
.m-name { font-weight: 600; font-size: 14px; }
.meter { height: 10px; background: #eef2f1; border-radius: 99px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #10b981, #047857); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.meter-fill.short { background: linear-gradient(90deg, #f59e0b, #d97706); }
.m-num { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ok-tag { font-size: 12.5px; color: #047857; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .meter-row { grid-template-columns: 1fr auto; } .meter { grid-column: 1 / -1; order: 3; } }
.sk-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 70px 34px; gap: 10px; align-items: center; padding: 5px 0; }
.sk-name { font-weight: 600; font-size: 14px; }
.sk-track { position: relative; height: 22px; background: #f1f5f4; border-radius: 8px; overflow: hidden; }
.sk-before, .sk-after { position: absolute; left: 0; height: 9px; width: 0; border-radius: 6px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.sk-before { top: 2px; background: #a7f3d0; }
.sk-after { bottom: 2px; background: linear-gradient(90deg, #10b981, #065f46); }
.sk-val { font-size: 13px; color: #065f46; }
.sk-edit summary { cursor: pointer; list-style: none; font-size: 15px; text-align: center; }
.sk-edit[open] { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.sk-edit label { display: flex; gap: 6px; align-items: center; }
.jr-steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.jr-step { flex: 1 0 140px; display: flex; gap: 8px; align-items: center; text-align: left; border: 1.5px solid #d1fae5; background: #f7fdfa; border-radius: 12px; padding: 10px; cursor: pointer; font-weight: 600; position: relative; transition: transform .2s, box-shadow .2s; }
.jr-step:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(6,78,59,.1); }
.jr-step.on { border-color: #059669; background: #ecfdf5; }
.jr-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #059669; color: #fff; display: grid; place-items: center; font-size: 13px; }
.jr-detail { margin-top: 10px; padding: 10px 12px; background: #fffbeb; border-left: 3px solid #d97706; border-radius: 0 10px 10px 0; font-size: 14px; }
.jr-detail p { margin: 4px 0; color: var(--muted); } .jr-detail ul { margin: 4px 0 0; padding-left: 18px; }
.tr-root { display: inline-block; background: #065f46; color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 99px; margin-bottom: 10px; }
.tr-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tr-b { border: 1px solid #d1fae5; border-radius: 12px; padding: 8px 10px; background: #fff; }
.tr-b summary { cursor: pointer; font-weight: 700; color: #065f46; }
.tr-b.b1 summary { color: #b45309; } .tr-b.b2 summary { color: #0d9488; } .tr-b.b3 summary { color: #7c9a2e; }
.tr-b ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chips span { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 99px; padding: 5px 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .meter-fill, .sk-before, .sk-after { transition: none; } }
.wcount { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* Home video (above the two modes): rounded, autoplay (muted), sized so both mode buttons stay on screen */
@media (min-width: 760px) { .landing .modes { padding-top: 18px; } }

.mode-quick-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 4px 0 18px; }
.mode-quick-row .btn { min-width: 190px; font-weight: 700; box-shadow: 0 6px 16px rgba(6,78,59,.18); }
@media (max-width: 719px) { .mode-quick-row { gap: 8px; margin-bottom: 14px; } .mode-quick-row .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 14.5px; } }


/* v1.4 — header "Free and Fast", emerald feature slideshow, trilingual field labels */
.free-fast { display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 999px; font: 700 13px/1.4 Poppins, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #065f46; background: linear-gradient(90deg, #d1fae5, #fef3c7); border: 1px solid #a7f3d0; }
.free-fast span { color: #047857; } .free-fast span + span { color: #b45309; }
@media (min-width: 720px) { .free-fast { font-size: 16px; padding: 4px 18px; margin-top: 8px; } }
.hero-slides { max-width: 1100px; margin: 0 auto; padding: 18px 16px 0; display: flex; justify-content: center; }
.hs-card { position: relative; overflow: hidden; width: min(100%, 760px); padding: 22px 26px 16px; border-radius: 20px; color: #fff; text-align: center;
  background: radial-gradient(120% 140% at 100% 0%, #10b981 0%, #047857 45%, #064e3b 100%); box-shadow: 0 16px 34px rgba(6,78,59,.28); }
.hs-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(252,211,77,.55); box-shadow: 0 0 0 22px rgba(255,255,255,.05), 0 0 0 44px rgba(255,255,255,.04); pointer-events: none; }
.hs-badges { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.hs-badge { padding: 3px 12px; border-radius: 999px; font: 800 12.5px/1.5 Poppins, system-ui, sans-serif; letter-spacing: .1em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.hs-badge.gold { background: #fcd34d; color: #78350f; border-color: #fcd34d; }
.hs-tag { margin: 0 0 12px; font: 800 26px/1.2 Poppins, system-ui, sans-serif; color: #fff; }
.hs-tag em { font-style: normal; color: #fcd34d; }
.hs-track { position: relative; min-height: 84px; }
.hs-slide { position: absolute; inset: 0; display: flex; gap: 14px; align-items: center; justify-content: center; text-align: left; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.hs-slide.on { opacity: 1; transform: none; }
.hs-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.hs-slide b { display: block; font: 700 19px/1.25 Poppins, system-ui, sans-serif; color: #fff; }
.hs-slide p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: #d1fae5; max-width: 520px; }
.hs-dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.hs-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.hs-dot.on { width: 22px; background: #fcd34d; }
@media (max-width: 719px) {
  .hs-card { padding: 16px 14px 12px; border-radius: 16px; }
  .hs-tag { font-size: 19px; margin-bottom: 10px; }
  .hs-track { min-height: 104px; }
  .hs-ico { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
  .hs-slide { gap: 10px; } .hs-slide b { font-size: 16px; } .hs-slide p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .hs-slide { transition: none; } }
.field label .tri-alt { font-weight: 500; color: var(--muted); }

/* v1.6 — "don't waste AI" notice (desktop, laptop and mobile) */
.awn-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(6, 40, 30, .55); backdrop-filter: blur(3px); animation: awnIn .18s ease-out; }
@keyframes awnIn { from { opacity: 0; } to { opacity: 1; } }
.awn { width: min(100%, 640px); max-height: min(88vh, 760px); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); border: 1px solid #d1fae5; }
.awn-head { flex: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 20px;
  background: linear-gradient(135deg, #065f46, #10b981); color: #fff; }
.awn-head b { font: 800 18px/1.3 Poppins, system-ui, sans-serif; letter-spacing: .02em; }
.awn-head span { font-size: 14px; opacity: .92; }
.awn-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 20px 6px; }
.awn-body h3 { margin: 0 0 8px; font: 700 17px/1.35 Poppins, system-ui, sans-serif; color: #065f46; }
.awn-body p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #1f2937; text-align: justify; }
.awn-body hr { border: 0; border-top: 1px solid #d1fae5; margin: 4px 0 14px; }
.awn-foot { flex: none; padding: 12px 20px 16px; border-top: 1px solid #ecfdf5; background: #f8fefb; }
.awn-ok { width: 100%; }
@media (max-width: 719px) {
  .awn-wrap { padding: 10px; align-items: flex-end; }
  .awn { max-height: 92vh; border-radius: 16px; }
  .awn-head { padding: 12px 14px; } .awn-head b { font-size: 16px; } .awn-head span { font-size: 12.5px; }
  .awn-body { padding: 13px 14px 4px; } .awn-body h3 { font-size: 15.5px; } .awn-body p { font-size: 14px; line-height: 1.65; }
  .awn-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
}
