/* ISVR NewsDesk AI — application styles */
:root {
    --nav: #0d1b2a;
    --nav2: #12263a;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --bg: #f4f7fb;
    --card: #ffffff;
    --ink: #172033;
    --muted: #6b7280;
    --line: #e5eaf0;
    --ok: #0f9f6e;
    --ok-bg: #dcfce7;
    --ok-ink: #166534;
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --err: #b91c1c;
    --err-bg: #fee2e2;
    --info-bg: #e0ecff;
    --info-ink: #1e3a8a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gurmukhi", Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
a { color: var(--blue); }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.85em; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; }

/* ---------- shell ---------- */
aside { position: fixed; inset: 0 auto 0 0; width: 245px; background: linear-gradient(var(--nav), var(--nav2)); padding: 22px 14px; color: #fff; overflow: auto; z-index: 20; display: flex; flex-direction: column; }
.brand { display: block; font-size: 20px; font-weight: 750; margin: 0 10px 24px; color: #fff; text-decoration: none; }
.brand small { display: block; color: #7dd3fc; font-size: 12px; margin-top: 5px; font-weight: 400; }
aside nav a { display: block; color: #cbd5e1; text-decoration: none; padding: 10px 11px; border-radius: 9px; margin-bottom: 2px; }
aside nav a:hover { background: #1f3a55; color: #fff; }
aside nav a.active { background: var(--blue); color: #fff; }
aside hr { border: 0; border-top: 1px solid #29425a; margin: 14px 0; width: 100%; }
.nav-label { color: #7dd3fc; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 11px 6px; }
.aside-foot { margin-top: auto; padding: 14px 11px 0; font-size: 12px; color: #94a3b8; }
.aside-foot a { color: #94a3b8; }
main { margin-left: 245px; min-height: 100vh; }
header { min-height: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 10; }
.header-title .langs { color: var(--muted); margin-left: 8px; }
.login-nav { list-style: none; display: flex; gap: 10px; align-items: center; margin: 0; padding: 0; }
.login-nav form { margin: 0; }
.nav-toggle, .burger { display: none; }
.content { padding: 26px 28px 60px; max-width: 1300px; }

/* ---------- building blocks ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.hero p { color: var(--muted); margin: 4px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.center-card { max-width: 560px; margin: 40px auto; text-align: center; }
.narrow { max-width: 720px; }
.stats, .plans, .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.stat h2 { font-size: 1.8rem; margin: 6px 0 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--warn); }
.text-danger { color: var(--err); font-size: 13px; }
.text-danger ul { margin: 0 0 8px; padding-left: 18px; }
.pre { white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; }
.prose { max-width: 820px; line-height: 1.6; }

.btn { display: inline-block; text-decoration: none; border: 1px solid #d5dce6; border-radius: 9px; padding: 9px 14px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; line-height: 1.2; }
.btn:hover { border-color: #b6c2d2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary, .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover, .btn-primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--err); border-color: #f3c4c4; }
.btn.ok { color: var(--ok); border-color: #a7e3c9; }
.btn.link-danger { border: 0; background: none; color: var(--err); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 7px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
form.inline, .inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.push-right { margin-left: auto; }

.badge { display: inline-block; background: var(--ok-bg); color: var(--ok-ink); border-radius: 20px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.lang { background: #ede9fe; color: #5b21b6; }
.status-draft { background: #e2e8f0; color: #334155; }
.status-inreview { background: var(--warn-bg); color: var(--warn); }
.status-approved, .status-active { background: var(--ok-bg); color: var(--ok-ink); }
.status-published { background: var(--info-bg); color: var(--info-ink); }
.status-archived, .status-cancelled, .status-completed, .status-expired { background: #f1f5f9; color: var(--muted); }
.status-rejected, .status-halted, .status-pastdue { background: var(--err-bg); color: var(--err); }
.status-created, .status-authenticated, .status-paused { background: var(--info-bg); color: var(--info-ink); }

.notice { padding: 12px 14px; border-radius: 9px; margin-bottom: 15px; background: var(--ok-bg); color: var(--ok-ink); }
.notice.info { background: var(--info-bg); color: var(--info-ink); }
.notice.error { background: var(--err-bg); color: var(--err); }
.notice.busy { margin-top: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
td.num, th.num { text-align: right; }
td.neg { color: var(--err); }
td.pos { color: var(--ok); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }

/* ---------- forms ---------- */
.form label, .form .form-label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form label.check, label.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 6px 14px 6px 0; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select, .form-control, .form-select,
.inline select, .inline input, .filters input, .filters select { width: 100%; padding: 10px 11px; border: 1px solid #d7dee8; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.inline select, .inline input { width: auto; padding: 6px 8px; font-size: 13px; }
.form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form button[type=submit], .form > button, .form > div > button { margin-top: 16px; }
.cols { display: grid; gap: 14px; }
.cols.two { grid-template-columns: 1fr 1fr; }
.cols.three { grid-template-columns: 1fr 1fr 1fr; }
.cols.four { grid-template-columns: 2fr 1.4fr 1fr .7fr; }
.cols.gen { grid-template-columns: 1.4fr 1fr .6fr 2fr auto; align-items: end; }
.cols.gen label { margin-top: 0; }
.cols.gen button { margin-top: 0; }
.align-end { align-self: end; }
.align-end button { margin-top: 0 !important; }
.filters { display: flex; gap: 10px; align-items: center; padding: 14px 16px; }
.filters input { max-width: 340px; }
.filters select { max-width: 200px; }
.checks { display: flex; flex-wrap: wrap; }
details.extra { margin-top: 14px; }
details.extra summary, details.source summary { cursor: pointer; }
.form-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-foot button { margin-top: 16px; }
.inline-form select { padding: 9px 10px; border: 1px solid #d7dee8; border-radius: 8px; font: inherit; }
.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { flex: 1; padding: 8px; border: 1px solid #d7dee8; border-radius: 8px; font-family: Consolas, monospace; font-size: 13px; }

/* ---------- story / outputs ---------- */
.workflow-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details.source .pre { margin-top: 12px; max-height: 420px; overflow: auto; background: #f8fafc; padding: 14px; border-radius: 8px; }
h2.channel { margin: 26px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.output { border-left: 4px solid #cbd5e1; }
.output.status-border-approved { border-left-color: var(--ok); }
.output.status-border-rejected { border-left-color: var(--err); }
.output.focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.output-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.output-headline { font-size: 1.25rem; margin: 12px 0 8px; }
.integrity { border-left: 4px solid var(--ok); background: #f6fdf9; padding: 10px 14px; border-radius: 8px; margin: 14px 0; }
.integrity.has-warnings { border-left-color: var(--warn); background: #fffaf0; }
.integrity ul { margin: 6px 0; padding-left: 20px; }
.integrity small { display: block; margin-top: 4px; }
.review-note { background: #f8fafc; padding: 8px 12px; border-radius: 8px; }
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.review-form input { width: 200px !important; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.source-side .pre { max-height: 640px; overflow: auto; font-size: 14px; }
.package-list { columns: 2; line-height: 1.9; }

/* ---------- billing ---------- */
.plan.current { border: 2px solid var(--blue); }
.price { font-size: 30px; font-weight: 800; margin: 6px 0; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
details.prompt summary { cursor: pointer; }
details.prompt .pre { background: #f8fafc; padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
details.prompt.active { border-color: #a7e3c9; }

/* ---------- landing ---------- */
.hero-card { text-align: center; padding: 48px 28px; background: linear-gradient(135deg, #0d1b2a, #1e3a8a); color: #fff; border: 0; }
.hero-card .lead { max-width: 760px; margin: 14px auto; color: #dbeafe; font-size: 1.1rem; line-height: 1.6; }
.hero-card .btn:not(.primary) { background: transparent; color: #fff; border-color: #93c5fd; }

/* ---------- Identity UI (Bootstrap class compatibility) ---------- */
.identity-page { max-width: 960px; }
.identity-page h1 { margin-bottom: 16px; }
.identity-page .row { display: flex; flex-wrap: wrap; gap: 24px; }
.identity-page .row > [class*="col-"] { flex: 1 1 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.identity-page .row > .col-md-6.col-md-offset-2, .identity-page section:empty { display: none; }
.identity-page .form-floating { display: flex; flex-direction: column-reverse; margin-bottom: 12px; }
.identity-page .form-floating > label, .identity-page .form-label { font-weight: 600; margin: 6px 0; }
.identity-page .form-control { width: 100%; padding: 10px 11px; border: 1px solid #d7dee8; border-radius: 8px; font: inherit; }
.identity-page .form-check { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.identity-page .btn { margin: 4px 0; }
.identity-page .w-100 { width: 100%; }
.identity-page .btn-lg { padding: 12px 16px; font-size: 15px; }
.identity-page .mb-3 { margin-bottom: 12px; }
.identity-page .nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.identity-page .nav-pills .nav-link { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.identity-page .nav-pills .nav-link.active { background: var(--blue); color: #fff; }
.identity-page .flex-column { flex-direction: column; }
.identity-page .alert { padding: 12px 14px; border-radius: 9px; background: var(--info-bg); color: var(--info-ink); }
.identity-page .alert-danger { background: var(--err-bg); color: var(--err); }
.identity-page .alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.identity-page hr { border: 0; border-top: 1px solid var(--line); }
.identity-page .text-danger { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .stats.four { grid-template-columns: 1fr 1fr; }
    .cols.gen, .cols.four { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    aside { transform: translateX(-100%); transition: transform .2s; width: 260px; }
    .nav-toggle:checked ~ aside { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
    .burger { display: inline-block; font-size: 22px; cursor: pointer; padding: 6px 10px; }
    main { margin: 0; }
    header { padding: 0 14px; }
    .header-title .langs { display: none; }
    .content { padding: 18px 16px 48px; }
    .stats, .stats.four, .plans, .grid3, .cols.two, .cols.three, .cols.four, .cols.gen { grid-template-columns: 1fr; }
    .filters { flex-wrap: wrap; }
    .filters input, .filters select { max-width: none; }
    table { display: block; overflow-x: auto; }
    .package-list { columns: 1; }
}

/* ---------- auth pages (login / register / verify) ---------- */
.auth-body { background: linear-gradient(135deg, #0d1b2a 0%, #12263a 45%, #1e3a8a 100%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-brand { text-align: center; color: #fff; margin-bottom: 22px; }
.auth-logo { font-size: 26px; font-weight: 800; color: #fff; text-decoration: none; }
.auth-tag { color: #7dd3fc; font-size: 13px; margin-top: 4px; }
.auth-brand p { color: #cbd5e1; margin: 10px 0 0; font-size: 14px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 28px 28px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.auth-card h1 { font-size: 1.45rem; }
.auth-card .form label:first-of-type { margin-top: 18px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.auth-switch { text-align: center; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.auth-foot { margin-top: 18px; font-size: 12px; color: #94a3b8; }
.auth-foot a { color: #cbd5e1; }
.w-full { width: 100%; margin-top: 18px; padding: 12px; font-size: 15px; }
.input-with-button { display: flex; gap: 8px; }
.input-with-button input { flex: 1; }
.input-with-button .btn { margin: 0 !important; white-space: nowrap; }
.code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }

/* ---------- plan matrix & settings ---------- */
.plan-matrix table th, .plan-matrix table td { text-align: center; }
.plan-matrix table th:first-child, .plan-matrix table td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.plan-matrix th { text-transform: none; letter-spacing: 0; color: var(--ink); vertical-align: bottom; }
.plan-matrix th.current { background: #eff6ff; border-radius: 10px 10px 0 0; }
.plan-name { font-size: 1.1rem; font-weight: 800; }
.plan-matrix .price { font-size: 24px; }
.custom-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 22px; }
.setting small { display: block; margin-top: 4px; }
.setting .file-value code { word-break: break-all; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 40%); padding: 16px 0; z-index: 5; }
h2.mt { margin-top: 22px; }
@media (max-width: 800px) { .settings-grid { grid-template-columns: 1fr; } }
.video-preview { position: relative; aspect-ratio: 16/9; margin-top: 18px; border-radius: 10px; overflow: hidden; background: #0f172a; }
.video-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.message.handled { opacity: .6; }
.message .pre { margin: 10px 0 12px; }

/* ---------- demo ---------- */
.demo-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fef3c7; color: #78350f; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.auth-demo { text-align: center; margin-top: 14px; }
.auth-demo > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.auth-demo .demo-btn { margin-top: 0; background: #0d1b2a; color: #fff; border-color: #0d1b2a; }

/* ---------------------------------------------------------------- V1.9: workflow, media, social, mobile */
[hidden] { display: none !important; }
.status-changesrequested { background: #fff4e5; color: #9a4b00; }
.status-open, .status-accepted { background: #e0f2fe; color: #075985; }
.status-filed { background: #dcfce7; color: #166534; }
.badge.breaking { background: #dc2626; color: #fff; font-weight: 700; letter-spacing: .02em; }
.breaking-hero h1 { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breaking-ticker { display: flex; gap: .75rem; align-items: center; background: #7f1d1d; color: #fff; border-radius: 10px; padding: .6rem 1rem; margin-bottom: 1rem; overflow-x: auto; white-space: nowrap; }
.breaking-ticker a { color: #fff; font-weight: 600; }
.breaking-ticker b { background: #dc2626; padding: .1rem .5rem; border-radius: 4px; }
.request-changes { border-left: 4px solid #f59e0b; }
.input-with-button { display: flex; gap: .5rem; }
.input-with-button input { flex: 1; }
details.inline-menu { display: inline-block; position: relative; }
details.inline-menu > summary { list-style: none; cursor: pointer; }
details.inline-menu > summary::-webkit-details-marker { display: none; }
details.inline-menu .menu-body { position: absolute; z-index: 20; left: 0; top: 110%; background: #fff; border: 1px solid #e5eaf0; border-radius: 10px; padding: .75rem; box-shadow: 0 12px 30px rgba(15, 23, 42, .15); display: grid; gap: .5rem; min-width: 320px; }
.media-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.media-item { margin: 0; border: 1px solid #e5eaf0; border-radius: 10px; padding: .5rem; background: #f8fafc; }
.media-item img, .media-item video { width: 100%; border-radius: 6px; display: block; background: #0d1b2a; max-height: 260px; object-fit: contain; }
.media-item audio { width: 100%; }
.media-item figcaption { font-size: .85rem; margin-top: .4rem; word-break: break-word; }
.doc-icon { font-size: 3rem; text-align: center; padding: 1rem; }
.job-queued, .job-running { background: #e0f2fe; color: #075985; }
.job-succeeded, .post-published { background: #dcfce7; color: #166534; }
.job-failed, .post-failed { background: #fee2e2; color: #991b1b; }
.post-cancelled { background: #f1f5f9; color: #64748b; }
.post-scheduled, .post-publishing { background: #e0f2fe; color: #075985; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr auto; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #eef2f6; font-size: .92rem; }
.timeline .tl-who { font-weight: 600; }
.timeline .tl-text { white-space: pre-wrap; }
.timeline .tl-comment .tl-text { background: #f8fafc; border-radius: 8px; padding: .3rem .6rem; }
.assignment-list { display: grid; gap: .75rem; }
.assignment.prio-breaking { border-left: 5px solid #dc2626; }
.assignment.prio-high { border-left: 5px solid #f59e0b; }
.assignment.overdue { background: #fff7f7; }
.assignment h3 { margin: .4rem 0; }
.media-pick { display: flex; flex-wrap: wrap; gap: .75rem; }
.media-pick .pick img { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.steps { padding-left: 1.2rem; line-height: 1.7; }
.code-pill { background: #0d1b2a; color: #7dd3fc; border-radius: 6px; padding: .1rem .5rem; font-family: ui-monospace, Consolas, monospace; }
.new-key { border: 2px solid #16a34a; }
.dictate-bar { display: flex; gap: .5rem; align-items: center; margin: .25rem 0; }
.recording { background: #dc2626 !important; color: #fff !important; }
td.nowrap, .nowrap { white-space: nowrap; }
.center { text-align: center; }
@media (max-width: 720px) {
    .timeline li { grid-template-columns: 1fr; gap: .2rem; }
    details.inline-menu .menu-body { position: static; min-width: 0; }
}

/* ---- mobile reporter app (PWA) ---- */
body.mobile-app { background: #f1f5f9; padding-bottom: 76px; display: block; }
.m-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; background: #0d1b2a; color: #fff; padding: .8rem 1rem; padding-top: max(.8rem, env(safe-area-inset-top)); }
.m-brand { color: #fff; font-weight: 700; text-decoration: none; }
.m-brand small { color: #7dd3fc; font-weight: 400; margin-left: .3rem; }
.m-desk { color: #cbd5e1; font-size: .9rem; }
.m-main { padding: 1rem; max-width: 640px; margin: 0 auto; }
.m-hello { margin: 0 0 .75rem; }
.m-title { font-size: 1.4rem; margin: 0 0 .5rem; }
.m-h { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.m-breaking { display: block; background: #dc2626; color: #fff; padding: .7rem 1rem; border-radius: 10px; font-weight: 700; margin-bottom: .5rem; text-decoration: none; }
.m-big-btn { display: block; text-align: center; background: #1d4ed8; color: #fff; padding: 1.1rem; border-radius: 14px; font-size: 1.15rem; font-weight: 700; text-decoration: none; margin: .5rem 0; }
.m-card { display: block; background: #fff; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); color: inherit; }
.m-card.prio-breaking { border-left: 5px solid #dc2626; }
.m-card.prio-high { border-left: 5px solid #f59e0b; }
.m-link { text-decoration: none; }
.m-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.m-form input, .m-form textarea, .m-form select { font-size: 16px; } /* no iOS zoom */
.m-submit { width: 100%; padding: 1rem; font-size: 1.1rem; margin-top: 1rem; }
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e2e8f0; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.m-tabs a { display: flex; flex-direction: column; align-items: center; padding: .5rem 0; font-size: 1.2rem; text-decoration: none; color: #0d1b2a; }
.m-tabs a span { font-size: .7rem; }
.m-tabs a.m-file { color: #1d4ed8; font-weight: 700; }

/* ---- brand logo (V1.9) — the logo has a white background, so on dark surfaces it sits on a white card ---- */
.logo-card { display: inline-block; background: #fff; border-radius: 10px; padding: 6px 10px; line-height: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.logo-card img { display: block; width: 100%; height: auto; }
.brand .logo-card { width: 100%; box-sizing: border-box; }
.brand small { margin-top: 8px; text-align: center; }
.logo-card.sm { width: 110px; padding: 3px 6px; border-radius: 7px; vertical-align: middle; }
.logo-card.lg { width: min(320px, 80vw); padding: 10px 16px; border-radius: 14px; }
.m-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ---- news portal submissions (V1.10) ---- */
.portal-pending { background: #e0f2fe; color: #075985; }
.portal-published { background: #dcfce7; color: #166534; }
.portal-rejected, .portal-error, .portal-failed { background: #fee2e2; color: #991b1b; }
.portal-accepted_sandbox { background: #f1f5f9; color: #475569; }

/* ---- site notices: festival wishes, announcements, maintenance (V1.11) ---- */
.site-notice { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.site-notice .sn-emoji { font-size: 26px; line-height: 1; }
.site-notice .sn-text { flex: 1; }
.site-notice .sn-link { font-weight: 600; white-space: nowrap; color: inherit; text-decoration: underline; }
.site-notice .sn-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: .7; padding: 0 4px; }
.site-notice .sn-close:hover { opacity: 1; }
.notice-festival { background: linear-gradient(90deg, #ff7a00, #ffb300); color: #fff; box-shadow: 0 4px 14px rgba(255,122,0,.25); }
.notice-info { background: #e0f2fe; color: #075985; }
.notice-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
body.pub > .site-notice, body.pub > .site-notice ~ .site-notice { border-radius: 0; margin: 0; justify-content: center; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.ann-preview { margin-top: 8px; }

/* ---- sign-up benefits (V1.12) ---- */
.signup-benefits { list-style: none; padding: 12px 14px; margin: 0 0 12px; background: #ecfdf5; border-radius: 10px; color: #065f46; font-size: 14px; display: grid; gap: 4px; }

/* ---- V1.13: festival wishes as a card (not full width), with image and "from" line ---- */
.wish-wrap { margin: 0 0 12px; }
.site-notice.wish-card { max-width: 760px; margin: 0 auto; border-radius: 16px; align-items: flex-start; padding: 14px 16px; gap: 14px; }
.wish-card .sn-emoji { font-size: 34px; }
.wish-img { width: 120px; max-height: 140px; object-fit: cover; border-radius: 10px; flex: none; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.wish-title { font-size: 17px; line-height: 1.3; }
.wish-msg { white-space: pre-line; margin-top: 4px; }
.wish-from { margin-top: 6px; font-style: italic; font-weight: 600; }
.wish-card .sn-link { display: inline-block; margin-top: 6px; }
.wish-card .wish-img { max-width: 30%; }
@media (max-width: 600px) { .wish-img { width: 80px; max-height: 96px; } }

/* ---- V1.13: Admin → Website ---- */
.logo-preview { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0 16px; position: relative; overflow: hidden; }
.logo-preview .lp-header { display: flex; align-items: flex-end; height: calc(var(--lp-h) * .75 + 8px); border-bottom: 1px solid #cbd5e1; }
.logo-preview .lp-header.no-overlap { align-items: center; height: calc(var(--lp-h) + 12px); }
.logo-preview .lp-logo { display: inline-flex; height: var(--lp-h); line-height: 0; position: relative; z-index: 2; }
.logo-preview .lp-header:not(.no-overlap) .lp-logo { margin-bottom: calc(var(--lp-h) * -.25); }
.logo-preview .lp-logo img { height: 100%; width: auto; }
.logo-preview .lp-logo.boxed { background: #fff; padding: 5px 12px; border: 1px solid #e2e8f0; }
.logo-preview .lp-logo.round { border-radius: 16px; }
.logo-preview .lp-logo.shadow { box-shadow: 0 8px 22px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.08); }
.logo-preview .lp-space { height: calc(var(--lp-h) * .25 + 14px); }
.social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--sc, #334155); color: #fff !important; display: grid; place-items: center; text-decoration: none !important; }
.office-kind-badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 9px; background: #eff6ff; color: #1d4ed8; }
.office-kind-badge.head { background: #1d4ed8; color: #fff; }

/* ---- V1.14: one-click faithful translation ---- */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mode-card { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.mode-card:has(input:checked) { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.mode-card input { margin-top: 4px; }
.mode-card b { display: block; margin-bottom: 2px; }
.mode-card small { color: #475569; line-height: 1.4; display: block; }
.integrity-ok { color: #166534; background: #ecfdf5; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.badge.translated { background: #ede9fe; color: #5b21b6; text-decoration: none; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.compare-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.compare-head { margin: 0; }
.compare-warnings { color: #9a3412; margin: 6px 0; padding-left: 18px; }
.compare-wrap { overflow-x: auto; padding: 0; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; line-height: 1.6; text-align: left; }
.compare-table td + td, .compare-table th + th { border-left: 1px solid #f1f5f9; }
.compare-table .num { width: 36px; color: #94a3b8; font-weight: 700; text-align: center; }
.compare-table tr.headline-row td { font-weight: 700; font-size: 1.05em; background: #f8fafc; }
.compare-table td.missing { color: #b91c1c; background: #fef2f2; }
.compare-table td[lang="hi"], .compare-table td[lang="pa"] { font-size: 1.05em; }
@media (max-width: 700px) { .mode-pick { grid-template-columns: 1fr; } }
.badge.emailed { background: #e0f2fe; color: #075985; }
.mt { margin-top: 18px; }
