/* The phone check-in. Same Bhaari look as the Content Manager (cream, brown ink, saffron, pink, Baloo 2 + Mukta, the toran),
   mobile-first at 375 px, tap targets 44 px. Motion: house values only (docs/motion.md); every rule's reduced-motion override
   comes straight after it. Light only, like the site. */
:root {
  --bg: #fff4e0; --ink: #5a1e00; --ink-soft: #74431f; --saffron: #ff8a00; --saffron-deep: #9e4a00;
  --pink: #e0115f; --pink-deep: #c40d52; --marigold: #ffc400; --leaf: #237a2f; --leaf-soft: #e4f1e1;
  --card: #fff; --line: #f1dcb8; --sand: #f6dfba; --peach: #ffe7bf; --rose: #fde3ec; --night: #2b1000;
  --display: "Baloo 2", system-ui, sans-serif; --text: "Mukta", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
button, .btn { font: 700 16px var(--text); cursor: pointer; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); padding: 6px 14px; min-height: 44px; touch-action: manipulation; transition: background-color .12s ease-out; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) { button:hover:not(:disabled), .btn:hover { background: var(--sand); } }
button:disabled { cursor: not-allowed; border-color: var(--line); color: var(--ink-soft); background: var(--sand); }
.gut { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.toran { height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='34' viewBox='0 0 38 34'%3E%3Cpath d='M0 8.6 Q19 10.6 38 8.6' fill='none' stroke='%23b35400' stroke-width='1.3'/%3E%3Cpath transform='translate(-0.7 9.8) rotate(36)' d='M0 0 C4.38 3.78 4.55 13.02 1.4 21 C-3.68 13.86 -4.2 4.2 0 0Z' fill='%23237a2f'/%3E%3Cpath transform='translate(0.7 9.8) rotate(-36) scale(-1,1)' d='M0 0 C4.38 3.78 4.55 13.02 1.4 21 C-3.68 13.86 -4.2 4.2 0 0Z' fill='%23237a2f'/%3E%3Cpath transform='translate(37.3 9.8) rotate(36)' d='M0 0 C4.38 3.78 4.55 13.02 1.4 21 C-3.68 13.86 -4.2 4.2 0 0Z' fill='%23237a2f'/%3E%3Cpath transform='translate(38.7 9.8) rotate(-36) scale(-1,1)' d='M0 0 C4.38 3.78 4.55 13.02 1.4 21 C-3.68 13.86 -4.2 4.2 0 0Z' fill='%23237a2f'/%3E%3Ccircle cx='0' cy='9.2' r='3' fill='%23ffc400'/%3E%3Ccircle cx='38' cy='9.2' r='3' fill='%23ffc400'/%3E%3Ccircle cx='19' cy='9.4' r='6.9' fill='%23ff8a00'/%3E%3Ccircle cx='19' cy='9.4' r='6.8' fill='none' stroke='%23d95f00' stroke-width='2.8' stroke-linecap='round' stroke-dasharray='0 3.05'/%3E%3Ccircle cx='19' cy='9.4' r='1.64' fill='%23b35400'/%3E%3C/svg%3E") 50% 0 / 24.59px 22px repeat-x; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: calc(10px + env(safe-area-inset-top, 0px)) 6px; }
.brand { display: flex; align-items: baseline; gap: 6px; }
.brand .mr { font: 800 26px var(--display); color: var(--pink); line-height: 1; }
.brand .en { font: 800 20px var(--display); line-height: 1; }
.hdr button { border-radius: 999px; font-size: 14px; }

.tabs { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 2px solid var(--line); }
.tabs .gut { display: flex; gap: 6px; align-items: center; padding-block: 6px; overflow-x: auto; }
.tab { border-radius: 999px; white-space: nowrap; font-size: 15px; padding: 4px 14px; }
.tab[aria-current="page"] { background: var(--ink); color: #ffe8c7; }
.macline { margin: 0; padding-block: 8px 0; font-size: 14px; color: var(--ink-soft); }

main { padding-block: 8px 40px; }
.view { display: block; }
.view.fade { animation: fade-in 150ms ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .view.fade { animation: none; } }
h1 { font: 800 28px/1.1 var(--display); margin: 14px 0 4px; text-wrap: balance; }
h2.sec { font: 800 21px/1.15 var(--display); margin: 14px 0 8px; text-wrap: balance; }
.kicker { font: 700 13px var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-deep); margin: 14px 0 0; }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 18px; font-size: 15px; margin: 12px 0 0; }
.banner { background: var(--rose); border: 2px solid var(--pink); border-radius: 14px; padding: 10px 14px; font-size: 15px; margin: 0; }
.signin { display: grid; gap: 14px; justify-items: start; padding-block: 18px; }
.signin p { margin: 0; }

/* status pills: colour plus a symbol, so states differ by more than colour */
.pill { display: inline-flex; align-items: center; gap: 5px; font: 700 13px/1 var(--text); border-radius: 999px; padding: 5px 10px 4px; white-space: nowrap; border: 2px solid transparent; }
.pill .sym { font-size: 12px; line-height: 1; }
.s-posted { background: var(--leaf); color: #fff; }
.s-queued, .s-publishing { background: var(--ink); color: #ffe8c7; }
.s-failed, .s-missed, .s-waiting, .s-overdue { background: var(--pink-deep); color: #fff; }
.s-blocked { background: var(--rose); color: var(--pink-deep); border: 2px dashed var(--pink); }
.s-approved { background: var(--saffron); color: var(--ink); }
.s-changes { background: var(--rose); color: var(--pink-deep); border-color: var(--pink); }
.s-ready { background: var(--marigold); color: var(--ink); }
.s-production { background: var(--card); color: var(--ink); border-color: var(--line); }
.s-idea { background: transparent; color: var(--ink-soft); border: 2px dashed var(--line); }
.s-passed, .s-hold { background: var(--sand); color: var(--ink-soft); }
.pill.pop { animation: pop 350ms var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pill.pop { animation: none; } }

/* post card */
.cards { display: grid; gap: 16px; margin-top: 12px; }
.post { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.post.is-today { border-color: var(--saffron); }
.post-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.when { display: grid; min-width: 0; }
.when .d { font: 700 13px var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--saffron-deep); }
.when h3 { font: 800 20px/1.15 var(--display); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.code { font: 800 13px var(--display); background: var(--ink); color: #ffe8c7; border-radius: 8px; padding: 1px 7px; margin-right: 6px; vertical-align: 2px; }
.media { display: grid; gap: 8px; min-width: 0; justify-items: center; }
.media video { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--night); display: block; }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; max-width: 360px; border-radius: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; border-radius: 16px; background: var(--sand); display: block; }
.slide-nav { display: flex; align-items: center; gap: 8px; }
.slide-nav button { min-width: 44px; padding: 4px; border-radius: 999px; }
.slide-nav span { font: 700 14px var(--text); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.nomedia { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 16px; border: 2px dashed var(--line); border-radius: 16px; font-size: 15px; color: var(--ink-soft); }
.caption { white-space: pre-wrap; font-size: 16px; margin: 0; background: var(--bg); border-radius: 14px; padding: 12px 14px; overflow-wrap: anywhere; }
.caption.none { color: var(--ink-soft); font-style: italic; }
.note-line { font-size: 14px; color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.warn { font-size: 14px; background: var(--peach); border-radius: 10px; padding: 4px 10px; margin: 0; width: fit-content; }
.blockers { margin: 0; padding: 8px 12px 8px 28px; background: var(--rose); border-radius: 12px; font-size: 14px; display: grid; gap: 2px; }
.post .btn-review { width: 100%; }

/* decision (in the sheet) */
.decide { display: grid; gap: 10px; background: var(--peach); border-radius: 16px; padding: 12px; }
.decide p { margin: 0; font-size: 15px; }
.decide label { font-size: 13px; font-weight: 700; }
.decide .row { display: flex; flex-wrap: wrap; gap: 8px; }
.decide .row button { flex: 1 1 140px; }
textarea { font: 500 16px var(--text); width: 100%; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); padding: 8px 10px; resize: vertical; min-height: 88px; }
.btn-yes { background: var(--leaf); border-color: var(--leaf); color: #fff; font: 800 17px var(--display); padding-inline: 18px; }
@media (hover: hover) { .btn-yes:hover:not(:disabled) { background: #1b6325; } }
.btn-change { border-color: var(--pink); color: var(--pink-deep); }
@media (hover: hover) { .btn-change:hover:not(:disabled) { background: var(--rose); } }
.saymsg { font-size: 14px; color: var(--pink-deep); min-height: 1em; }

/* queue bar */
.queuebar { margin-top: 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 14px; display: grid; gap: 8px; justify-items: start; font-size: 15px; }
.queuebar h2 { font: 800 21px/1.15 var(--display); margin: 0; }
.queuebar p, .queuebar ul { margin: 0; }
.queuebar ul { padding-left: 20px; }
.queuebar .row { display: flex; flex-wrap: wrap; gap: 8px; }
.qline { font-weight: 700; }
.qline.done { color: var(--leaf); }
.fade-line { animation: fade-in 150ms ease-out; }
@media (prefers-reduced-motion: reduce) { .fade-line { animation: none; } }

/* Posted rows */
.hrow { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.hrow .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.hrow b { font: 800 17px/1.2 var(--display); overflow-wrap: anywhere; }
.hrow a { font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(43, 16, 0, .55); z-index: 30; display: grid; align-items: end; justify-items: center; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
.sheet { background: var(--bg); width: min(640px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: rise 220ms var(--ease); display: grid; gap: 12px; }
.sheet.leaving { animation: sink 200ms var(--ease) forwards; }
.sheet-top { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 1; }
.sheet-top button { border-radius: 999px; background: var(--card); }
.sheet h2 { font: 800 21px/1.15 var(--display); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.sheet h2:focus { outline: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(8px); } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: fade-in 150ms ease-out; } .sheet.leaving { animation: fade-out 120ms ease-out forwards; } }
