/* FORME consent banner + privacy UI — owned by the data-capture module */
.consent[hidden] { display: none; }
.consent {
    position: fixed; left: 0; right: 0; z-index: 90;
    bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px));
    background: var(--paper, #fff); color: var(--ink, #1c1b19);
    border-top: 1px solid var(--line, rgba(0, 0, 0, .15));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
    max-height: 80vh; overflow-y: auto; overscroll-behavior: contain;
}
.consent__body { max-width: 62rem; margin: 0 auto; padding: 1rem 1.25rem; }
.consent__title { font-size: 1.1rem; margin: 0 0 .35rem; }
.consent__text { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.5; }
.consent__text a { text-decoration: underline; }
.consent__options { display: grid; gap: .6rem; margin: 0 0 .85rem; }
.consent__options[hidden] { display: none; }
.consent__opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.45; min-height: 44px; }
.consent__opt input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; flex: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
/* Equal weight: every choice has identical size, colour and prominence. */
.consent__btn {
    flex: 1 1 9rem; min-height: 44px; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
    background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 4px;
}
.consent__btn[hidden] { display: none; }
.consent__btn:hover { background: rgba(0, 0, 0, .06); }
.consent__btn:focus-visible, .consent__opt input:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.consent__status { margin: .5rem 0 0; min-height: 1em; }
@media (min-width: 720px) {
    .consent { left: 1rem; right: auto; bottom: calc(var(--tabbar-h, 0px) + 1rem + env(safe-area-inset-bottom, 0px)); max-width: 34rem; border: 1px solid var(--line, rgba(0, 0, 0, .15)); border-radius: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
    .consent.is-in { animation: consent-in .25s ease-out; }
    @keyframes consent-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Devices & data page */
.devices-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.device-card { border: 1px solid var(--line, rgba(0, 0, 0, .15)); padding: .9rem 1rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
.device-card--revoked { opacity: .6; }
.device-card__meta { font-size: .85rem; opacity: .8; margin: .15rem 0 0; }
.device-tag { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border: 1px solid currentColor; border-radius: 99px; margin-left: .4rem; }
.data-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.data-actions form { margin: 0; }
