/* Roger app — the page around the app: full screen, no frame, follows the phone's light/dark. */
html, body { margin: 0; height: 100%; width: 100%; max-width: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { background: #F2F2F7; }
@media (prefers-color-scheme: dark) { body { background: #1C1C1E; } }
#app { position: fixed; left: 0; right: 0; top: 0; height: var(--app-h, 100dvh); }

/* Large screens: the desktop layout, full window. */
#app.rdev.k-desktop .rail { padding-top: max(18px, env(safe-area-inset-top)); }
/* Notch / Dynamic Island in landscape */
#app.rdev.k-phone .app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* round 7: alerts + QR pairing */
.tabs button { position: relative; }
.tdot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #FF3B30; color: #fff; font: 600 11px/16px -apple-system, system-ui, sans-serif; font-style: normal; text-align: center; }
.gh .gh-act { float: right; color: var(--acc); font-size: 13px; font-weight: 500; }
.filebtn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet.scan .scanv { width: 100%; aspect-ratio: 1; max-height: 52vh; object-fit: cover; border-radius: 14px; background: #000; margin: 6px 0 12px; }

/* ---- extras: alerts, memory/skills, queue, chat menu, projects edit ---- */
.chips { display: flex; gap: 8px; padding: 4px 0 8px; overflow-x: auto; }
.chip { flex: none; min-height: 34px; padding: 0 14px; border-radius: 17px; background: var(--soft); color: var(--sub); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--acc); color: #fff; }
.segwrap { display: flex; justify-content: center; padding: 4px 0 10px; }
.row.al .al-t { opacity: .75; }
.row .pill.ok { width: auto; height: auto; }   /* .row .ok sizes the check icon; a "Done" pill must not inherit it */
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.cnt { color: var(--sub); font-weight: 500; }
.sheet.tall { max-height: 82%; display: flex; flex-direction: column; }
pre.doc { flex: 1; min-height: 0; overflow: auto; margin: 8px 0 12px; padding: 12px; border-radius: 12px; background: var(--soft); font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.qd { flex: 1; min-height: 0; overflow: auto; margin-bottom: 10px; }
.qd h4 { margin: 12px 0 4px; font-size: 13px; color: var(--sub); text-transform: uppercase; letter-spacing: .04em; }
.qd p { margin: 0 0 8px; overflow-wrap: anywhere; }
.qn { padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.tin { width: 100%; box-sizing: border-box; min-height: 44px; margin: 4px 0 12px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--soft); color: var(--ink); font-size: 16px; }
.row.thread { cursor: pointer; text-align: left; }
.row.thread .tmore { flex: none; width: 36px; height: 36px; margin-right: -6px; display: grid; place-items: center; color: var(--sub); border-radius: 18px; }
.ib .tdot.bell { top: 2px; left: auto; right: 0; }
.ib { position: relative; }
.textbtn.hdr { padding: 0 6px; min-height: 36px; font-weight: 600; }
.pjw { position: relative; }
.pjw .pinmark { position: absolute; top: -6px; right: -4px; background: var(--card, #fff); border-radius: 99px; padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); width: 18px; height: 18px; color: var(--acc); pointer-events: none; }
.pjw .pinmark .ic { width: 16px; height: 16px; }
.pjw.edit .pj { pointer-events: none; opacity: .92; }
.pjw .pjtools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 2px 4px 0; }   /* under the card, so it never covers the status pill */
.lt-row .acts { display: flex; align-items: center; gap: 6px; flex: none; }
.pjw .grip { width: 44px; height: 44px; display: grid; place-items: center; color: var(--sub); touch-action: none; cursor: grab; }
.pjw.drag { opacity: .7; outline: 2px solid var(--acc); border-radius: 16px; }
.btn.danger { background: var(--danger, #FF3B30); color: #fff !important; }

.secrow .row-main b { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-all; }
.secact { display: flex; gap: 8px; margin-top: 8px; }
