/* quick-add sheet brain (smart line, habit chip, maths hint, camera receipts); markup is injected by quick.js */
.qline { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); padding: 0 2px; transition: border-color .15s, box-shadow .15s; }
.qline:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qline input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none !important; padding: 10px 8px 10px 2px; font-size: 16px; } /* 16px: iOS doesn't zoom */
.qline button, #qCam { flex: none; padding: 6px; font-size: 18px; line-height: 1; }
#qMeta { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px -2px 0; padding: 2px; }
#qMeta button { padding: 5px 11px; font-size: 13px; }
#qMeta .use { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--heading); }
#qMeta .use b { color: var(--accent-hi); font-weight: 600; }
#qCam { font-size: 22px; }
#qThumb { position: relative; flex: none; }
#qThumb img { display: block; width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
#qThumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: var(--panel2); border: 1px solid var(--border); color: var(--text); font-size: 10px; line-height: 1; }
.qops { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: -4px; }
.qops button { padding: 5px 0; border-radius: 9px; background: var(--field); color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .qops { display: none; } } /* a real keyboard has these keys */
#qCalc { margin-top: -10px; text-align: center; font-variant-numeric: tabular-nums; }
#qCalc.bad { color: var(--red); }
.qamt.reading input { border-radius: 8px; background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 80%) 0 0 / 200% 100%; animation: qShim 1.1s linear infinite; }
@keyframes qShim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
