h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

:root {
    color-scheme: light;
    --surface: #ffffff;
    --canvas: #f4f6f5;
    --ink: #202725;
    --muted: #68716d;
    --line: #d9dfdc;
    --accent: #c94d33;
    --accent-strong: #a93d27;
    --success: #177a55;
    --danger: #b43838;
    --focus: #267cb8;
}

.pwa-status {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(560px, calc(100% - 32px));
    min-height: 52px;
    margin: 0 auto;
    padding: 10px 12px 10px 16px;
    color: #ffffff;
    background: #303936;
    border: 1px solid #4e5a56;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20, 25, 23, 0.24);
    font-size: 0.82rem;
}

.pwa-status[hidden] {
    display: none;
}

.pwa-status-offline {
    background: #713333;
    border-color: #95504d;
}

.pwa-status-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.pwa-status-button,
.pwa-status-dismiss {
    min-height: 34px;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
}

.pwa-status-button {
    padding: 5px 10px;
    font-weight: 750;
}

.pwa-status-dismiss {
    width: 34px;
    padding: 0;
    border-color: transparent;
    font-size: 1.35rem;
    line-height: 1;
}

.pwa-status-button:hover,
.pwa-status-dismiss:hover {
    background: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    background: #e8ecea;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #e8ecea;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus) 32%, transparent);
    outline-offset: 2px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 1.65rem;
    line-height: 1.2;
}

h2 {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.auth-shell {
    min-height: 100dvh;
    background: #f4f6f5;
}

.auth-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 440px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 34px 22px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-brand img {
    width: 48px;
    height: 48px;
}

.auth-brand div {
    display: flex;
    flex-direction: column;
}

.auth-brand strong {
    font-size: 1.15rem;
}

.auth-brand span {
    color: var(--muted);
    font-size: 0.78rem;
}

.auth-panel {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(32, 39, 37, 0.08);
}

.auth-panel header {
    margin-bottom: 24px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    content: "";
    background: var(--line);
}

.legal-copy {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

.page-content {
    width: 100%;
    padding: 24px 20px 32px;
}

.narrow-page {
    width: min(100%, 620px);
    margin: 0 auto;
}

.voice-page {
    width: min(100%, 680px);
    margin: 0 auto;
}

.voice-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.voice-status > span {
    width: 8px;
    height: 8px;
    background: #8e9994;
    border-radius: 50%;
}

.voice-status-live {
    color: var(--accent-strong);
}

.voice-status-live > span {
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(201, 77, 51, 0.12);
}

.conversation-panel {
    min-height: 360px;
    padding: 22px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.conversation-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    color: var(--muted);
    text-align: center;
}

.conversation-empty h2 {
    margin: 18px 0 7px;
    color: var(--ink);
}

.conversation-empty p {
    margin: 0;
    font-size: 0.86rem;
}

.voice-orb {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent);
    border: 8px solid #f7d9d1;
    border-radius: 50%;
}

.chat-message {
    width: min(86%, 520px);
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chat-message-user {
    margin-left: auto;
    background: #fff3ed;
    border-color: #f0cfc1;
}

.chat-message-assistant {
    background: #f3f6f4;
}

.chat-message-role {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.chat-message p {
    margin: 0;
    line-height: 1.55;
    white-space: pre-wrap;
}

.chat-message-loading p {
    color: var(--muted);
}

.voice-composer {
    margin-top: 18px;
    padding: 16px 0 0;
}

.voice-input {
    display: block;
    width: 100%;
    min-height: 74px;
    resize: vertical;
}

.voice-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.voice-record-button {
    min-width: 122px;
}

.voice-recording {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.page-title-row,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title-row {
    margin-bottom: 22px;
}

.section-heading {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.section-heading > span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.76rem;
}

.eyebrow {
    margin-bottom: 5px;
    color: #9a503c;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

.button-primary:hover:not(:disabled) {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.button-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: #cbd2ce;
}

.button-secondary:hover:not(:disabled) {
    background: #f0f3f1;
}

.button-wechat {
    color: #ffffff;
    background: #168744;
    border-color: #168744;
}

.button-danger {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.button-text-danger {
    min-height: 38px;
    padding: 7px 10px;
    color: var(--danger);
    background: transparent;
    border-color: transparent;
}

.button-block {
    width: 100%;
}

.button-compact {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.82rem;
}

.wechat-mark {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #168744;
    font-size: 0.78rem;
    font-weight: 900;
    background: #ffffff;
    border-radius: 50%;
}

.field-label {
    display: block;
    margin: 15px 0 7px;
    color: #3e4743;
    font-size: 0.8rem;
    font-weight: 750;
}

.text-input,
.select-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #bec8c3;
    border-radius: 6px;
}

.text-input:focus,
.select-control:focus {
    border-color: var(--focus);
}

.inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.field-hint,
.muted-copy {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.otp-input {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

.claim-code-input {
    min-height: 58px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0;
    word-break: break-all;
}

.notice {
    margin: 14px 0;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.notice-error {
    color: #8c2e2e;
    background: #fff1f0;
    border-color: #efc2be;
}

.notice-success {
    color: #125f43;
    background: #e9f7f0;
    border-color: #aedcc8;
}

.notice-progress {
    color: #705021;
    background: #fff7e8;
    border-color: #ecd3a8;
}

.loading-block,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.empty-state img {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 18px;
    color: var(--ink);
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 15px 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.summary-strip > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0 8px;
    border-right: 1px solid var(--line);
}

.summary-strip > div:last-child {
    border-right: 0;
}

.summary-strip strong {
    font-size: 1.15rem;
}

.summary-strip span {
    overflow: hidden;
    width: 100%;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-list {
    display: grid;
    gap: 10px;
}

.device-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 94px;
    padding: 14px;
    color: var(--ink);
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.device-card:hover {
    border-color: #b5bfba;
    box-shadow: 0 6px 18px rgba(32, 39, 37, 0.06);
}

.device-visual {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    background: #dfe5e2;
    border: 1px solid #cbd3cf;
    border-radius: 8px;
}

.device-visual-large {
    width: 82px;
    height: 82px;
}

.speaker-core {
    position: relative;
    display: block;
    width: 34px;
    height: 40px;
    background: #2d3532;
    border: 3px solid #ffffff;
    border-radius: 13px;
    box-shadow: 0 0 0 1px #79837e;
}

.speaker-core::before,
.speaker-core::after {
    position: absolute;
    left: 50%;
    content: "";
    border-radius: 50%;
    transform: translateX(-50%);
}

.speaker-core::before {
    top: 7px;
    width: 8px;
    height: 8px;
    background: #e76345;
}

.speaker-core::after {
    bottom: 6px;
    width: 12px;
    height: 12px;
    border: 2px solid #9ca5a1;
}

.device-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.device-card-title {
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-card-meta {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connectivity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.connectivity > span {
    width: 7px;
    height: 7px;
    background: #9ba39f;
    border-radius: 50%;
}

.connectivity-online {
    color: var(--success);
}

.connectivity-online > span {
    background: #1f9b6c;
}

.connectivity-offline > span {
    background: #a5aaa7;
}

.binding-steps {
    display: grid;
    gap: 1px;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.binding-step {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 78px;
    padding: 14px;
    background: #ffffff;
}

.binding-step div {
    display: flex;
    flex-direction: column;
}

.binding-step span:not(.step-number) {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.step-number {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    background: #3b4541;
    border-radius: 50%;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.check-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.form-section {
    margin-bottom: 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #4c5953;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.device-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.device-detail-header h1 {
    margin-bottom: 7px;
}

.control-panel {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.control-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.3fr);
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.control-row:last-child {
    border-bottom: 0;
}

.control-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.control-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
}

.slider-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
}

.slider-control input {
    width: 100%;
    accent-color: var(--accent);
}

.slider-control output {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

.switch-control {
    position: relative;
    justify-self: end;
    width: 48px;
    height: 28px;
}

.switch-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch-control > span:not(.sr-only) {
    position: absolute;
    inset: 0;
    background: #b8c0bc;
    border-radius: 16px;
    cursor: pointer;
    transition: background 120ms ease;
}

.switch-control > span:not(.sr-only)::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 120ms ease;
}

.switch-control input:checked + span {
    background: var(--accent);
}

.switch-control input:checked + span::after {
    transform: translateX(20px);
}

.select-control {
    justify-self: end;
    width: min(100%, 220px);
}

.device-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 14px 0 0;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.device-metadata div {
    min-width: 0;
    padding: 11px 13px;
    background: #ffffff;
}

.device-metadata dt {
    color: var(--muted);
    font-size: 0.7rem;
}

.device-metadata dd {
    overflow: hidden;
    margin: 3px 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-section {
    margin-bottom: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-section h2 {
    margin-bottom: 14px;
}

.settings-list {
    margin: 0 0 16px;
}

.settings-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.settings-list dt,
.settings-list dd {
    font-size: 0.8rem;
}

.settings-list dt {
    color: var(--muted);
}

.settings-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.settings-device-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
}

.settings-device-list > div:last-child {
    border-bottom: 0;
}

.settings-device-list span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-device-list strong,
.settings-device-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-device-list small {
    margin-top: 3px;
    color: var(--muted);
}

.danger-section {
    border-color: #e7c6c3;
}

.danger-section p {
    color: var(--muted);
    font-size: 0.8rem;
}

.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;
}

@media (max-width: 560px) {
    .pwa-status {
        align-items: flex-start;
        gap: 10px;
    }

    .page-content {
        padding-inline: 16px;
    }

    .auth-panel {
        padding: 20px;
    }

    .inline-field {
        grid-template-columns: 1fr;
    }

    .device-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .device-card .connectivity {
        grid-column: 2;
    }

    .device-visual {
        width: 54px;
        height: 54px;
    }

    .control-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .switch-control,
    .select-control {
        justify-self: stretch;
    }

    .switch-control {
        justify-self: end;
    }

    .control-row .button {
        width: 100%;
    }
}
