:root {
  --brand: #4338ca; --brand-dark: #3730a3; --brand-soft: #e0e7ff; --accent: #f59e0b;
  --bg: #f5f6fb; --card: #fff; --text: #1f2937; --muted: #6b7280; --line: #e5e7eb;
  --red: #dc2626; --red-soft: #fee2e2; --amber: #b45309; --amber-soft: #fef3c7;
  --green: #15803d; --green-soft: #dcfce7; --blue: #1d4ed8; --blue-soft: #dbeafe; --pink: #be185d; --pink-soft: #fce7f3;
  --radius: 12px; --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: .8rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; }

/* buttons & inputs */
button, .btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--text); padding: .5rem .9rem; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
button:hover, .btn:hover { border-color: #cbd5e1; background: #f9fafb; }
.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.danger { color: var(--red); border-color: #fecaca; }
.danger:hover { background: var(--red-soft); }
.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.wa:hover { background: #15803d; border-color: #15803d; }
.sm { padding: .28rem .6rem; font-size: .85rem; }
.lg { padding: .75rem 1.3rem; font-size: 1.05rem; }
button:disabled { opacity: .55; cursor: default; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
label.req::after { content: " *"; color: var(--red); }
input, select, textarea { font: inherit; width: 100%; padding: .5rem .65rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: .75rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 .8rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-sec { grid-column: 1 / -1; font-weight: 700; color: var(--brand-dark); margin: .4rem 0 .5rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.form-sec:first-child { border-top: 0; padding-top: 0; }
.check { display: flex; gap: .5rem; align-items: center; color: var(--text); font-size: .95rem; margin: 0; }
input[type=checkbox], input[type=radio] { width: auto; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .35rem .8rem; }
.err { color: var(--red); font-size: .9rem; min-height: 1.2em; }

/* cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card .table-wrap { border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f9fafb; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f8f9ff; }
tfoot td { font-weight: 700; background: #f9fafb; }
td.num, th.num { text-align: right; white-space: nowrap; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }

/* chips */
.chip { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #f3f4f6; color: #374151; white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.indigo { background: var(--brand-soft); color: var(--brand-dark); }
.chip.pink { background: var(--pink-soft); color: var(--pink); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tabs button { border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs .count { background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 .4rem; font-size: .76rem; }

/* layout */
.topbar { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.topbar-in { max-width: 1250px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: .15rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav a { color: #e0e7ff; text-decoration: none; padding: .4rem .65rem; border-radius: 7px; white-space: nowrap; font-size: .93rem; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .38rem; margin-left: .25rem; font-weight: 700; }
.topbar .who { font-size: .85rem; color: #e0e7ff; white-space: nowrap; }
.topbar button { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.topbar button:hover { background: rgba(255,255,255,.12); }
main { max-width: 1250px; margin: 0 auto; padding: 1.1rem 1rem 4rem; }
.page-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.warn-banner { background: var(--red); color: #fff; text-align: center; padding: .4rem; font-size: .9rem; }
.back { text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: .4rem; }

/* stat tiles */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.stat .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.55rem; font-weight: 700; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .82rem; color: var(--muted); }
.stat.red .value { color: var(--red); } .stat.green .value { color: var(--green); } .stat.amber .value { color: var(--amber); }
a.stat:hover { border-color: #c7d2fe; }

/* alerts list */
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.alert-list li:last-child { border-bottom: 0; }
.alert-list .txt { flex: 1; min-width: 0; }
.alert-list .grp { font-size: .75rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.overdue, .dot.missing { background: var(--red); } .dot.soon { background: var(--accent); } .dot.info { background: var(--pink); }

/* bars chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 1rem; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 38px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .b span { font-size: .7rem; color: var(--muted); margin-top: .25rem; white-space: nowrap; }
.bars .b em { font-size: .66rem; color: var(--muted); font-style: normal; margin-bottom: 2px; white-space: nowrap; }

/* person header */
.person { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: .95rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem 1rem; }
.kv div b { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.kv div span { word-break: break-word; }

/* attendance */
.att-row { display: flex; gap: .3rem; }
.att-row button { min-width: 38px; justify-content: center; padding: .35rem .5rem; font-weight: 700; }
.att-row button.on.P { background: var(--green); color: #fff; border-color: var(--green); }
.att-row button.on.A { background: var(--red); color: #fff; border-color: var(--red); }
.att-row button.on.L { background: var(--amber); color: #fff; border-color: var(--amber); }
.att-row button.on.H { background: var(--blue); color: #fff; border-color: var(--blue); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { font-size: .72rem; color: var(--muted); text-align: center; }
.cal .d { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .85rem; background: #f3f4f6; }
.cal .d.P { background: var(--green-soft); color: var(--green); font-weight: 700; }
.cal .d.A { background: var(--red-soft); color: var(--red); font-weight: 700; }
.cal .d.L { background: var(--amber-soft); color: var(--amber); font-weight: 700; }
.cal .d.H { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.cal .d.blank { background: transparent; }

/* marks entry */
.marks input { width: 70px; padding: .35rem .4rem; text-align: center; }
.marks input.remark { width: 170px; text-align: left; }

/* timeline for growth & notices */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .75rem 0 .75rem 1.2rem; border-left: 2px solid var(--brand-soft); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline .meta { font-size: .8rem; color: var(--muted); }
.timeline img.ph { max-width: 220px; max-height: 220px; border-radius: 8px; margin-top: .4rem; display: block; }
.notice { border-left: 4px solid var(--brand); }
.notice.Holiday { border-left-color: var(--green); } .notice.Exam { border-left-color: var(--red); } .notice.Fee { border-left-color: var(--accent); }
.notice.Event { border-left-color: var(--pink); }
.notice .body { white-space: pre-wrap; margin-top: .35rem; }
.new-dot { background: var(--accent); color: #fff; font-size: .68rem; border-radius: 999px; padding: 0 .4rem; font-weight: 700; vertical-align: middle; }

/* docs */
.docs { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc { border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; display: flex; align-items: center; gap: .4rem; font-size: .88rem; background: #fafafa; }
.doc a { text-decoration: none; }
.doc button { padding: 0 .3rem; border: 0; background: none; color: var(--red); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; flex: 1; }
.modal-head .x { border: 0; font-size: 1.5rem; line-height: 1; padding: 0 .3rem; background: none; }
.modal-body { padding: 1rem 1.1rem; }
.modal-foot { padding: .8rem 1.1rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
#toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
#toast div { background: #111827; color: #fff; padding: .55rem 1rem; border-radius: 8px; font-size: .92rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
#toast div.bad { background: var(--red); }

/* landing & login */
.landing { min-height: 100vh; background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%); color: #fff; }
.landing-in { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.landing-nav { display: flex; align-items: center; gap: 1rem; padding: .5rem 0 1rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 2rem 0 3rem; }
.hero h1 { font-size: 2.3rem; margin-bottom: .8rem; }
.hero p.lead { font-size: 1.1rem; color: #e0e7ff; margin: 0 0 1.4rem; }
.hero .login-card { background: #fff; color: var(--text); border-radius: 16px; padding: 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; padding-bottom: 3rem; }
.feat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 1rem; }
.feat b { display: block; margin-bottom: .25rem; font-size: 1.02rem; }
.feat p { margin: 0; color: #e0e7ff; font-size: .92rem; }
.login-wrap { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.role-pick button { justify-content: center; }
.role-pick button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* parent portal */
.kid-card { display: flex; gap: 1rem; align-items: center; }
.kid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin-top: .9rem; }
.kid-stats > div { background: #f8f9ff; border-radius: 10px; padding: .6rem .7rem; }
.kid-stats b { display: block; font-size: 1.1rem; }
.kid-stats span { font-size: .78rem; color: var(--muted); }
.due-box { background: var(--red-soft); color: #7f1d1d; border-radius: 10px; padding: .7rem .9rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ok-box { background: var(--green-soft); color: #14532d; border-radius: 10px; padding: .7rem .9rem; }
.info-box { background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: .7rem .9rem; }

/* receipt print */
.receipt { max-width: 560px; margin: 0 auto; }
.receipt .r-head { text-align: center; border-bottom: 2px solid var(--text); padding-bottom: .6rem; margin-bottom: .8rem; }
@media print {
  body { background: #fff; }
  .topbar, .no-print, .modal-head, .modal-foot, #toast { display: none !important; }
  .modal-bg { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-width: none; }
  main { padding: 0; }
  .card { box-shadow: none; border: 0; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .topbar-in { flex-wrap: wrap; gap: .4rem .8rem; }
  .nav { order: 3; flex-basis: 100%; }
  .topbar .who { display: none; }
  .brand span:last-child { max-width: 170px; }
  main { padding: .9rem .75rem 4rem; }
  th, td { padding: .45rem .5rem; }
  .hide-sm { display: none; }
}

/* ---------- public front page with photos ---------- */
.site { background: #fff; min-height: 100vh; }
.site-in { max-width: 1150px; margin: 0 auto; padding: 0 1rem; }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-nav .site-in { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.site-links { display: flex; gap: .2rem; }
.site-links a { color: var(--text); text-decoration: none; padding: .35rem .6rem; border-radius: 7px; cursor: pointer; font-size: .95rem; }
.site-links a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.hero-photo { background-size: cover; background-position: center; color: #fff; }
.hero-photo .hero { padding: 3.5rem 1rem 4rem; }
.hero-photo h1 { font-size: 2.5rem; line-height: 1.15; margin: .8rem 0; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-photo .lead { font-size: 1.1rem; color: #e0e7ff; max-width: 560px; }
.pill { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: .25rem .7rem; border-radius: 999px; font-size: .85rem; }
.hero-points { gap: .4rem 1.2rem; color: #fff; font-weight: 600; margin-top: 1rem; }
.hero-photo .login-card { background: #fff; color: var(--text); border-radius: 16px; padding: 1.3rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.role-pick.three { grid-template-columns: repeat(3, 1fr); }
.role-pick.three button { padding: .5rem .3rem; font-size: .88rem; white-space: normal; text-align: center; }
.site-sec { padding: 3.5rem 0; }
.site-sec.alt { background: var(--bg); }
.sec-title { font-size: 1.8rem; text-align: center; margin-bottom: .4rem; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 640px; }
.feat-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feat-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.feat-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.feat-card > div { padding: .9rem 1rem 1rem; }
.feat-card h3 { margin-bottom: .3rem; }
.feat-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.mini-grid > div { background: var(--bg); border-radius: 12px; padding: .9rem 1rem; }
.mini-grid p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.split img { width: 100%; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.15); object-fit: cover; max-height: 420px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { padding: .45rem 0 .45rem 1.8rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .4rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.step { display: flex; gap: .8rem; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 1rem; }
.step > span { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.step p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 2rem; }
.photo-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.site-foot { background: #1e1b4b; color: #c7d2fe; padding: 2rem 0; }
.site-foot .site-in { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.site-foot b { color: #fff; font-size: 1.1rem; }
.site-foot a { color: #fff; }

/* ---------- photo banner on dashboards ---------- */
.banner { border-radius: 16px; background-size: cover; background-position: center 35%; color: #fff; padding: 1.6rem 1.5rem; min-height: 150px;
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; box-shadow: var(--shadow); }
.banner h1 { margin: 0; font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.banner p { margin: .3rem 0 0; color: #e0e7ff; }
.banner > div:first-child { flex: 1; min-width: 220px; }
.banner-right { display: flex; gap: .6rem; flex-wrap: wrap; }
.banner-stat { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .45rem .9rem; text-align: center; backdrop-filter: blur(4px); }
.banner-stat b { display: block; font-size: 1.3rem; }
.banner-stat span { font-size: .78rem; color: #e0e7ff; }
.empty-photo { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.empty-photo img { width: 260px; max-width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.empty-photo > div { flex: 1; min-width: 220px; }

@media (max-width: 800px) {
  .site-links { display: none; }
  .hero-photo .hero { padding: 1.5rem 1rem 2rem; }
  .hero-photo h1 { font-size: 1.75rem; }
  .split { grid-template-columns: 1fr; gap: 1.2rem; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img { height: 140px; }
  .photo-strip img:last-child { display: none; }
  .banner { padding: 1.1rem; min-height: 130px; }
  .banner h1 { font-size: 1.3rem; }
  .sec-title { font-size: 1.4rem; }
}

/* bulk upload window */
.steps-mini { display: grid; gap: .6rem; }
.steps-mini > div { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 10px; padding: .7rem .8rem; }
.steps-mini b { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.steps-mini span { flex: 1; min-width: 200px; }
.steps-mini input[type=file] { max-width: 320px; }
