:root {
    color: #172033;
    background: #f5f7fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #123d70;
}

.skip-link:focus {
    top: 1rem;
}

.page-shell { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-shell.narrow { max-width: 760px; }
.page-header, .card-title, .actions, .credential-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-header { margin-bottom: 1.5rem; }
.eyebrow { color: #2463a9; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.panel { background: #fff; border: 1px solid #dce3ee; border-radius: 14px; padding: 1.25rem; box-shadow: 0 8px 24px rgb(23 32 51 / 6%); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label { display: grid; gap: .4rem; font-weight: 650; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea { box-sizing: border-box; width: 100%; padding: .72rem; border: 1px solid #aab7c8; border-radius: 8px; font: inherit; }
.button { display: inline-block; border: 0; border-radius: 8px; padding: .7rem 1rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.button.primary { background: #123d70; color: #fff; }
.button.secondary { background: #eaf0f8; color: #123d70; }
.button.danger { background: #fbe9e9; color: #8d1f1f; }
.status { padding: .35rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status.online { color: #12603d; background: #dff6eb; }
.status.disabled { color: #665c4d; background: #eeeae3; }
.details { display: flex; gap: 2rem; }
.details dt { color: #647087; font-size: .8rem; }
.details dd { margin: .2rem 0; font-weight: 650; }
.credential-list { margin-top: 1.25rem; border-top: 1px solid #e3e8ef; }
.credential-row { padding: .75rem 0; border-bottom: 1px solid #edf0f4; flex-wrap: wrap; }
.secret { display: block; overflow-wrap: anywhere; padding: 1rem; margin: 1rem 0; background: #eff4fa; border-radius: 8px; }
.notice { padding: .8rem 1rem; border-radius: 8px; }
.notice.warning { background: #fff3cf; color: #5e4700; }
.notice.error, .field-error { background: #fbe9e9; color: #8d1f1f; }
.notice.success { background: #dff6eb; color: #12603d; }

@media (max-width: 680px) {
    .page-header, .card-title { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
}

:root { --ink: #172b3f; --muted: #627387; --blue: #176b87; --teal: #00a58a; --line: #dce5eb; --surface: #fff; --canvas: #f2f6f7; }
body { color: var(--ink); background: var(--canvas); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .35rem; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }
.top-nav { position: sticky; top: 0; z-index: 20; min-height: 68px; display: flex; align-items: center; gap: 2rem; padding: .65rem clamp(1rem, 4vw, 3.5rem); background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { color: var(--blue); font-weight: 850; font-size: 1.1rem; letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.brand span { display: block; color: var(--muted); font-size: .58rem; letter-spacing: .22em; }
.nav-links { display: flex; align-items: center; gap: .35rem; flex: 1; }
.nav-links a, .nav-account button { padding: .65rem .78rem; border: 0; border-radius: 8px; color: #41576c; background: transparent; text-decoration: none; font: inherit; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-account button:hover { background: #eaf3f4; color: var(--blue); }
.nav-account { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.nav-account form { margin: 0; }
.page-shell { max-width: 1320px; padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.page-header { align-items: flex-end; }
.page-header p { margin-bottom: .2rem; }
.eyebrow { margin-bottom: .4rem; color: var(--blue); font-size: .72rem; }
.muted, .page-header .muted { color: var(--muted); }
.updated-at { color: var(--muted); font-size: .9rem; }
.panel { padding: clamp(1rem, 2.5vw, 1.6rem); border-color: var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgb(31 54 71 / 4%); }
.dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 1.25rem; }
.sensor-summary { position: relative; overflow: hidden; }
.sensor-summary::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); content: ""; }
.sensor-summary .card-title { align-items: flex-start; }
.sensor-summary h2 { margin: 0; font-size: 1.35rem; }
.sensor-summary h2 a { color: inherit; text-decoration: none; }
.sensor-summary h2 a:hover { color: var(--blue); }
.status { padding: .38rem .7rem; font-size: .78rem; }
.status-online { color: #10674f; background: #d9f5e9; }
.status-degradato { color: #8a5a00; background: #fff0c7; }
.status-offline { color: #a4313a; background: #fde5e6; }
.status-disattivato { color: #536274; background: #e9eef2; }
.metric-primary { display: flex; flex-direction: column; margin: 1.4rem 0 1rem; }
.metric-primary span { font-size: clamp(2.5rem, 7vw, 3.6rem); font-weight: 750; letter-spacing: -.06em; line-height: 1.05; color: var(--blue); }
.metric-primary small, .metric-row small { color: var(--muted); font-size: .8rem; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.metric-row div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.metric-row strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.sparkline-wrap { margin: .7rem 0 1rem; }
.sparkline-wrap > span { display: block; margin-bottom: .4rem; font-size: .78rem; }
.live-chart { display: block; width: 100%; height: 100px; }
.detail-chart { width: 100%; height: min(48vh, 400px); display: block; }
.text-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.empty-state { max-width: 640px; margin: 4rem auto; text-align: center; padding: clamp(2rem, 8vw, 4.5rem); }
.empty-state p { color: var(--muted); line-height: 1.6; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; color: var(--blue); background: #dff0f0; font-size: 2rem; }
.tabs { display: flex; overflow-x: auto; gap: .3rem; margin: .75rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.tabs a { flex: 0 0 auto; padding: .85rem 1rem; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-weight: 700; }
.tabs a.active, .tabs a[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--teal); }
.live-panel { margin-bottom: 1rem; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin-bottom: .3rem; }
.section-heading p { color: var(--muted); }
.live-indicator { display: inline-flex; align-items: center; gap: .45rem; color: #087d65; font-size: .82rem; font-weight: 750; }
.live-indicator i, .legend-a, .legend-f { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--teal); }
.live-indicator i { animation: pulse 1.8s infinite; }
.legend-f { background: var(--blue); }
.metric-legend { display: flex; gap: 1.2rem; color: var(--muted); font-size: .82rem; }
.table-panel { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .8rem .7rem; border-bottom: 1px solid #e8edf0; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: .9rem; }
.history-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.history-filters label { flex: 1 1 180px; display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.history-filters input, .history-filters select { padding: .72rem; color: var(--ink); background: #fff; border: 1px solid #c9d5dd; border-radius: 8px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; color: var(--muted); }
.pagination a { color: var(--blue); font-weight: 700; text-decoration: none; }
button, a, input, select, textarea { outline-color: var(--teal); }
:focus-visible { outline: 3px solid #00a58a; outline-offset: 3px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(0 165 138 / 15%); } }
@media (max-width: 900px) {
    .top-nav { flex-wrap: wrap; gap: .25rem 1rem; }
    .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; }
    .nav-links a { white-space: nowrap; }
    .nav-account { margin-left: auto; }
}
@media (max-width: 560px) {
    .top-nav { padding: .65rem .85rem; }
    .brand { font-size: .98rem; }
    .nav-account > span { display: none; }
    .nav-links a { padding: .6rem .55rem; font-size: .86rem; }
    .page-header { align-items: flex-start; }
    .metric-row { gap: .3rem; }
    .metric-row strong { font-size: .9rem; }
    .section-heading { flex-direction: column; }
    .history-filters { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Shared interface polish */
:root {
    --ink: #152b3b;
    --muted: #647989;
    --blue: #176b87;
    --teal: #00a58a;
    --line: #dce7e8;
    --surface: #fff;
    --canvas: #f3f7f6;
}

html { min-width: 320px; scroll-behavior: smooth; }
body { color: var(--ink); background: var(--canvas); }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button, .button { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
button:hover, .button:hover { transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }

.top-nav {
    min-height: 72px;
    gap: clamp(.75rem, 2vw, 2rem);
    border-bottom-color: rgb(212 227 228 / 85%);
    box-shadow: 0 4px 18px rgb(25 55 68 / 4%);
}
.brand { color: #14546d; }
.nav-links { gap: .2rem; }
.nav-links a { border-radius: 9px; transition: color .16s ease, background-color .16s ease; }
.nav-links a[aria-current="page"] {
    color: #12596f;
    background: #e8f4f1;
    box-shadow: inset 0 0 0 1px #d5ebe5;
}
.nav-account button { cursor: pointer; }
.page-shell { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.page-header { gap: 1.5rem; margin-bottom: 1.75rem; }
.page-header > div > p:last-child { color: var(--muted); }
h1 { color: #142d3c; }
.panel { box-shadow: 0 12px 32px rgb(27 59 70 / 5%); }
.card-grid { gap: 1.15rem; }
.sensor-summary, .sensor-card, .export-card, .system-grid > .panel {
    transition: transform .18s ease, box-shadow .18s ease;
}
.sensor-summary:hover, .sensor-card:hover, .export-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgb(27 59 70 / 9%);
}
.button { border-radius: 10px; }
.button.primary, button[type="submit"].button.primary {
    background: linear-gradient(135deg, #176b87, #14526d);
    box-shadow: 0 6px 14px rgb(23 107 135 / 18%);
}
.button.primary:hover { box-shadow: 0 9px 20px rgb(23 107 135 / 26%); }
.button.secondary { background: #eaf3f2; }
input, select, textarea {
    min-height: 44px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd9dc;
    border-radius: 10px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 100px; }
input:hover, select:hover, textarea:hover { border-color: #94b5ba; }
input:focus, select:focus, textarea:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 4px rgb(0 165 138 / 12%);
}
label { color: #314b5a; }
label.checkbox { display: flex; align-items: center; gap: .65rem; }
label.checkbox input { width: 1.1rem; min-height: 1.1rem; accent-color: var(--blue); }
form > label { display: grid; gap: .45rem; margin-bottom: 1rem; font-weight: 650; }
.form-grid > label { margin: 0; }
form button:not(.password-toggle) { cursor: pointer; }
.notice { margin: 0 0 1rem; border: 1px solid transparent; }
.notice.warning { border-color: #f3df9b; }
.notice.error, .notice-error, .field-error { border-color: #f2c9c9; }
.notice.success { border-color: #c5e9d5; }
.field-error { display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .88rem; }
.table-panel, .table-panel.panel { overflow: hidden; }
th { padding-top: 1rem; padding-bottom: 1rem; background: #f6f9f8; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #f4f9f7; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.empty-state { border-style: dashed; }
.status { letter-spacing: .01em; }
.tabs a { transition: color .16s ease, border-color .16s ease; }
.tabs a:hover { color: var(--blue); }
.pagination a { padding: .55rem .75rem; border-radius: 8px; background: #eaf3f2; }
.pagination a:hover { background: #dcefeb; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.user-admin-grid { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.5fr); align-items: start; }
.user-create-panel h2, .user-list-panel h2 { margin-bottom: .45rem; }
.user-create-panel > .muted { margin-bottom: 1.25rem; }
.user-list-panel { min-width: 0; }
.user-list-panel .section-heading { align-items: center; margin-bottom: .8rem; }
.user-actions { min-width: 250px; white-space: normal; }
.user-actions form { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 0 .55rem; }
.user-actions form:last-child { margin-bottom: 0; }
.user-actions select, .user-actions input { width: auto; min-width: 145px; min-height: 38px; padding: .45rem .6rem; font-size: .8rem; }
.user-actions input { flex: 1 1 155px; max-width: 210px; }
.user-actions .button { padding: .55rem .7rem; font-size: .78rem; }
.export-card { display: flex; flex-direction: column; align-items: flex-start; }
.export-card .button { margin-top: auto; }
.test-mail-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.test-mail-panel h2 { margin-bottom: .35rem; }
.test-mail-panel p { margin-bottom: 0; }
.system-grid > .panel { min-width: 0; }
.system-grid > .panel:hover { transform: translateY(-2px); }
.sensor-card .card-title p { margin-bottom: 0; color: var(--muted); }

/* Login */
body:has(.login-layout) { background: #f7f9f8; }
.login-layout {
    display: grid;
    grid-template-columns: minmax(380px, .92fr) minmax(480px, 1.08fr);
    min-height: 100svh;
    background: #fbfcfb;
}
.login-story {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #f3fbf8;
    background:
        radial-gradient(ellipse at 15% 85%, rgb(0 165 138 / 24%), transparent 44%),
        radial-gradient(ellipse at 90% 8%, rgb(81 164 165 / 17%), transparent 42%),
        linear-gradient(145deg, #102b3b 0%, #123f50 54%, #125365 100%);
}
.login-story::before, .login-story::after {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgb(202 242 229 / 10%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.login-story::before { top: 18%; right: -265px; box-shadow: 0 0 0 42px rgb(202 242 229 / 3%), 0 0 0 84px rgb(202 242 229 / 3%); }
.login-story::after { bottom: -260px; left: -210px; box-shadow: 0 0 0 44px rgb(202 242 229 / 3%), 0 0 0 88px rgb(202 242 229 / 3%); }
.login-brand, .login-mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    width: fit-content;
    color: inherit;
    font-size: .95rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-decoration: none;
}
.login-brand small, .login-mobile-brand small {
    display: block;
    margin-top: .2rem;
    color: #a9c3c9;
    font-size: .6rem;
    letter-spacing: .27em;
}
.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgb(192 237 223 / 38%);
    border-radius: 14px;
    color: #d6fff0;
    background: rgb(255 255 255 / 8%);
    font-size: 1.25rem;
    letter-spacing: -.06em;
}
.login-story-content { position: relative; z-index: 1; width: min(100%, 520px); margin: auto 0; padding: 4rem 0; }
.login-kicker { display: inline-flex; align-items: center; gap: .6rem; color: #a8d9ce; font-size: .69rem; font-weight: 750; letter-spacing: .16em; }
.login-kicker i, .sound-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4de0b3;
    box-shadow: 0 0 0 4px rgb(77 224 179 / 13%);
}
.login-story h2 { margin: 1.4rem 0 1rem; color: #f7fbf9; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 570; letter-spacing: -.065em; line-height: 1.04; }
.login-story h2 span { color: #7de0c2; }
.login-story-content > p { max-width: 440px; color: #bfd1d4; font-size: 1.04rem; line-height: 1.8; }
.sound-card {
    margin-top: 2.4rem;
    padding: 1rem 1.15rem .85rem;
    border: 1px solid rgb(208 239 231 / 15%);
    border-radius: 15px;
    background: rgb(235 250 246 / 7%);
    box-shadow: inset 0 1px rgb(255 255 255 / 5%);
    backdrop-filter: blur(10px);
}
.sound-card-heading, .sound-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sound-card-heading { color: #b5cdd0; font-size: .64rem; font-weight: 750; letter-spacing: .13em; }
.sound-live { display: inline-flex; align-items: center; gap: .5rem; color: #81e4c5; }
.sound-live i { width: 6px; height: 6px; }
.sound-wave { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 4px; overflow: hidden; }
.sound-wave i { width: 3px; min-width: 2px; height: 24%; border-radius: 5px; background: linear-gradient(0deg, #54cdb0, #a3f1d7); opacity: .7; animation: wave 1.3s ease-in-out infinite alternate; }
.sound-wave i:nth-child(5n + 1) { height: 42%; animation-delay: -.8s; }
.sound-wave i:nth-child(5n + 2) { height: 68%; animation-delay: -.4s; }
.sound-wave i:nth-child(5n + 3) { height: 32%; animation-delay: -1.1s; }
.sound-wave i:nth-child(5n + 4) { height: 88%; animation-delay: -.2s; }
.sound-card-footer { padding-top: .75rem; border-top: 1px solid rgb(208 239 231 / 12%); color: #a7c1c4; font-size: .56rem; font-weight: 700; letter-spacing: .11em; }
.sound-card-footer span:last-child { color: #8ce0c4; }
.login-story-footer { position: relative; z-index: 1; margin: 0; color: #9db8bd; font-size: .62rem; font-weight: 700; letter-spacing: .17em; }
.login-main { display: grid; min-height: 100%; place-items: center; padding: clamp(1.5rem, 5vw, 5rem); }
.auth-card { width: min(100%, 440px); }
.login-mobile-brand { display: none; margin-bottom: 2.5rem; color: var(--ink); }
.login-mobile-brand .brand-mark { color: #fff; border-color: #176b87; background: linear-gradient(145deg, #176b87, #14526d); }
.auth-card > .eyebrow { margin-bottom: .75rem; color: #318878; }
.auth-card h1 { margin-bottom: .65rem; font-size: clamp(2.1rem, 4vw, 2.8rem); letter-spacing: -.055em; }
.login-intro { margin-bottom: 2.15rem; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: .65rem; }
.login-form > label { margin: .3rem 0 0; color: #273f4d; font-size: .87rem; font-weight: 700; }
.login-form > input, .password-field input { min-height: 52px; padding: .85rem 1rem; border-color: #d3dfe0; border-radius: 11px; background: #fff; }
.login-form input::placeholder { color: #9aabb2; }
.password-field { position: relative; }
.password-field input { padding-right: 5.5rem; }
.password-toggle { position: absolute; top: 50%; right: .8rem; transform: translateY(-50%); padding: .4rem; border: 0; color: var(--blue); background: transparent; font-size: .77rem; font-weight: 750; cursor: pointer; }
.password-toggle:hover { color: #0b4b62; }
.login-submit { width: 100%; min-height: 52px; margin-top: .8rem; font-size: .95rem; }
.login-security { display: flex; justify-content: center; gap: .5rem; margin: 1.6rem 0 0; color: #758a91; font-size: .75rem; }
.login-security span { color: #268a72; }
.login-form .field-error { margin-top: -.25rem; }
@keyframes wave { to { transform: scaleY(.42); opacity: .48; } }

@media (max-width: 860px) {
    .user-admin-grid { grid-template-columns: 1fr; }
    .login-layout { grid-template-columns: minmax(300px, .82fr) minmax(400px, 1.18fr); }
    .login-story { padding: 2rem; }
    .login-main { padding: 2.5rem; }
    .sound-card { margin-top: 1.8rem; }
}
@media (max-width: 680px) {
    body:has(.login-layout) { background: #fbfcfb; }
    .login-layout { display: block; min-height: 100svh; }
    .login-story { display: none; }
    .login-main { min-height: 100svh; padding: 2rem clamp(1.25rem, 7vw, 2.5rem); }
    .login-mobile-brand { display: inline-flex; }
}
@media (max-width: 560px) {
    .top-nav { align-items: center; }
    .nav-links { padding: .25rem 0 .35rem; scrollbar-width: thin; }
    .nav-links a[aria-current="page"] { box-shadow: none; }
    .page-shell { padding-bottom: 2.5rem; }
    .page-header { margin-bottom: 1.25rem; }
    .panel { border-radius: 13px; }
    .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .details { flex-wrap: wrap; gap: 1rem 1.5rem; }
    .actions { align-items: stretch; flex-wrap: wrap; }
    .actions > *, .actions .button { flex: 1 1 auto; text-align: center; }
    .credential-row { align-items: flex-start; }
    .pagination { flex-wrap: wrap; }
    .login-intro { margin-bottom: 1.7rem; }
    .test-mail-panel { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .sound-wave i { animation: none; }
    button, .button, .sensor-summary, .sensor-card, .export-card { transition: none; }
}
