/* Shared, local styles for the portal and the compact product overview. */
.pairing-code-input { max-width:18ch; font-family:ui-monospace,monospace; font-size:1.3rem; letter-spacing:.12em; text-transform:uppercase; }
:root { color-scheme:light; --ink:#192737; --muted:#5a6878; --line:#dce3ec; --blue:#315de8; --surface:#fff; --canvas:#f6f8fb; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; color:var(--ink); background:var(--canvas); font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:var(--blue); text-underline-offset:4px; }
a:hover { color:#1d43b9; }
button,input,select { font:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
button { cursor:pointer; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:14px; min-height:44px; padding:10px 19px; border:1px solid transparent; border-radius:9px; background:var(--blue); color:#fff; font-size:.9rem; font-weight:600; text-decoration:none; line-height:1.4; }
button:hover,.button:hover { background:#244cc7; color:#fff; }
button svg,.button svg { width:20px; height:20px; flex-shrink:0; }
button.secondary,.button.secondary { color:var(--ink); background:#f3f6fb; border-color:var(--line); }
button.secondary:hover,.button.secondary:hover { background:#e7edf7; }
button.plain { background:transparent; color:var(--muted); border:0; padding:8px 0; min-height:44px; }
button.plain:hover { background:transparent; color:var(--blue); }
button.danger { background:#fff; color:#a83628; border-color:#e9c9c3; }
button.danger:hover { background:#fff0ed; color:#8b281d; }
.full { width:100%; }
.wrap { width:min(1080px,calc(100% - 64px)); margin-inline:auto; }
.skip-link { position:absolute; top:-70px; left:16px; z-index:10; padding:10px 16px; background:var(--ink); color:#fff; }
.skip-link:focus { top:12px; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:28px; min-height:86px; border-bottom:1px solid var(--line); }
.header-actions { display:flex; flex-direction:column; align-items:flex-end; gap:4px; min-width:0; }
.portal-languages { display:flex; align-items:center; gap:8px; font-size:.76rem; }
.portal-languages a { display:inline-flex; align-items:center; min-height:36px; text-decoration:none; }
.portal-languages a[aria-current] { color:var(--ink); text-decoration:underline; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); font-size:1.2rem; font-weight:750; letter-spacing:-.045em; text-decoration:none; flex-shrink:0; }
.brand:hover { color:var(--ink); }
.brand img { width:34px; height:34px; border-radius:9px; }
.brand-dot { color:var(--blue); }
.site-header nav { display:flex; align-items:center; gap:25px; font-size:.86rem; }
.site-header nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); text-decoration:none; }
.site-header nav a:hover,.site-header nav a[aria-current] { color:var(--ink); }
.site-header nav a[aria-current] { box-shadow:inset 0 -2px var(--blue); }
.site-header nav form { margin:0; }
.site-header nav .plain { font-weight:400; font-size:inherit; }
.site-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px 24px; padding-block:26px; border-top:1px solid var(--line); color:var(--muted); font-size:.78rem; }
.footer-brand { font-weight:650; color:var(--ink); text-decoration:none; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.25; }
h1 { font-size:2rem; font-weight:700; letter-spacing:-.035em; }
h2 { font-size:1.18rem; font-weight:650; letter-spacing:-.02em; margin-bottom:16px; }
h3 { font-size:1rem; font-weight:650; margin-bottom:9px; }
p { margin-bottom:16px; }
.muted,.field-hint,.form-intro { color:var(--muted); }
.field-hint { font-size:.82rem; line-height:1.6; margin:12px 0 0; }
.view-home { background:#fff; }
.landing-main { padding-bottom:60px; }
.hero { display:grid; grid-template-columns:1.4fr 1fr; align-items:center; gap:64px; padding-block:72px 64px; }
.hero h1 { max-width:650px; font-size:clamp(2.2rem,4.2vw,3.35rem); line-height:1.12; letter-spacing:-.045em; margin-bottom:24px; text-wrap:balance; }
.hero-description { max-width:570px; color:var(--muted); font-size:1.08rem; line-height:1.65; margin-bottom:26px; }
.transfer-diagram { padding:24px; background:var(--canvas); border:1px solid var(--line); border-radius:18px; }
.diagram-endpoint { display:flex; align-items:center; gap:18px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.diagram-endpoint strong,.diagram-endpoint div>span { display:block; }
.diagram-endpoint strong { font-size:1rem; }
.diagram-endpoint div>span { margin-top:3px; color:var(--muted); font-size:.8rem; }
.phone-symbol { display:block; width:25px; height:39px; border:2px solid var(--blue); border-radius:6px; margin-inline:5px; flex-shrink:0; }
.phone-symbol::after { content:""; display:block; width:9px; height:2px; background:var(--blue); margin:4px auto; border-radius:2px; }
.desktop-symbol { width:35px; color:var(--blue); display:inline-flex; flex-shrink:0; }
.desktop-symbol svg { width:35px; height:35px; }
.diagram-connection { display:flex; align-items:center; justify-content:center; gap:9px; padding:20px 0; font-size:.75rem; color:var(--muted); }
.diagram-connection svg { width:16px; height:16px; }
.workflow { padding-block:34px 44px; border-top:1px solid var(--line); }
.workflow h2 { font-size:1.45rem; margin-bottom:28px; }
.steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; list-style:none; padding:0; margin:0; }
.step-number { display:flex; align-items:center; justify-content:center; width:29px; height:29px; margin-bottom:14px; border-radius:50%; background:#edf1fb; color:var(--blue); font-size:.8rem; font-weight:650; }
.steps p { font-size:.9rem; color:var(--muted); margin-bottom:0; }
.privacy-note { padding:28px 32px; background:var(--canvas); border:1px solid var(--line); border-radius:14px; }
.privacy-note h2 { display:flex; align-items:center; gap:10px; }
.privacy-note h2 svg { width:22px; height:22px; color:var(--blue); flex-shrink:0; }
.privacy-note p { max-width:93ch; color:var(--muted); font-size:.9rem; }
.privacy-note details { margin-top:20px; font-size:.86rem; }
.privacy-note details p { margin:12px 0 0; }
summary { cursor:pointer; font-weight:600; font-size:.92rem; }
summary::marker { color:var(--muted); }
details[open]>summary { margin-bottom:18px; }
.auth-layout { max-width:460px; padding-block:60px 80px; min-height:calc(100vh - 167px); }
.auth-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:32px; }
.auth-card h1 { font-size:1.65rem; margin-bottom:12px; }
.form-intro { font-size:.9rem; margin-bottom:25px; }
.stack { display:flex; flex-direction:column; gap:18px; }
label { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:.86rem; font-weight:550; }
input,select { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #c6d0dd; border-radius:7px; background:#fff; color:var(--ink); font-size:.94rem; }
input:hover,select:hover { border-color:#91a2b8; }
input:focus,select:focus { outline:3px solid #dce5ff; border-color:var(--blue); }
input::placeholder { color:#718096; }
.stack .field-hint { margin-top:-6px; }
.form-note { display:flex; gap:9px; color:var(--muted); margin-top:23px; font-size:.8rem; }
.form-note svg { width:16px; height:19px; flex-shrink:0; }
.form-note p { margin:0; }
.portal-main { padding-block:36px 64px; min-height:calc(100vh - 167px); }
.page-heading { margin-bottom:25px; }
.page-heading h1 { margin-bottom:0; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:25px 28px; margin-bottom:20px; min-width:0; }
.panel>p:last-child { margin-bottom:0; }
.notice { padding:14px 18px; margin:0 0 22px; border:1px solid #c6d7f2; border-radius:8px; background:#edf4ff; color:#2b4f7a; font-size:.9rem; overflow-wrap:anywhere; }
.notice.error { border-color:#ecc7be; background:#fff2ee; color:#9a3424; }
.settings-panel { max-width:680px; }
.profile-details { margin:0 0 24px; }
.profile-details>div { display:flex; justify-content:space-between; align-items:baseline; gap:20px; margin-top:14px; }
.profile-details dt { color:var(--muted); font-size:.9rem; }
.profile-details dd { font-weight:600; margin:0; overflow-wrap:anywhere; }
.settings-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-block:16px; border-top:1px solid var(--line); font-size:.9rem; }
.settings-row:last-child { padding-bottom:0; }
.settings-actions,.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; }
.settings-actions>a { font-size:.88rem; }
.back-link { font-size:.86rem; }
.add-device { background:#fdfefe; }
.device-create { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto; align-items:end; gap:18px; margin:24px 0 18px; }
.setup-help { color:var(--muted); }
.setup-help summary { font-size:.8rem; font-weight:450; }
.setup-help[open]>summary { margin-bottom:8px; }
.device-list { display:grid; gap:0; }
.device-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.device-heading h2 { margin:3px 0 0; font-size:1.15rem; overflow-wrap:anywhere; }
.device-platform { font-size:.76rem; color:var(--muted); }
.status-badge { display:inline-flex; align-items:center; border-radius:20px; background:#edf0f4; color:#526173; padding:5px 11px; font-size:.75rem; font-weight:550; white-space:nowrap; flex-shrink:0; }
.status-badge.online { color:#24634e; background:#eaf5ef; }
.folder-overview { margin-top:20px; }
.folder-overview>.field-hint { margin:0 0 3px; }
.folder-overview>p:not(.field-hint):not(.config-state) { font-size:.94rem; margin-bottom:3px; overflow-wrap:anywhere; }
.config-state { font-size:.8rem; color:var(--muted); margin:0 0 16px; }
.config-error { color:#a33726; }
.config-pending { color:#80591d; }
.device-option { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }
.device-option summary { font-size:.86rem; }
.device-option[open] { padding-bottom:4px; }
.device-option .field-hint { margin:14px 0; }
.count { display:inline-flex; justify-content:center; min-width:20px; margin-left:5px; padding:0 5px; background:#edf0f4; color:var(--muted); border-radius:5px; font-size:.72rem; }
.folder-form { display:grid; gap:14px; max-width:760px; }
.grant-form { display:flex; align-items:end; gap:15px; max-width:760px; margin-top:18px; }
.grant-form label { flex:1; }
.grant-row { display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:.88rem; border-bottom:1px solid #edf0f4; }
.grant-row>span { overflow-wrap:anywhere; }
.grant-row form { margin:0; }
.remove-device summary { color:#7c5c59; font-weight:450; font-size:.8rem; }
.empty-state { padding:28px 0; color:var(--muted); }
.empty-state h2 { color:var(--ink); margin-bottom:10px; }
.empty-state p { font-size:.92rem; }
.empty-state a { font-size:.9rem; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.86rem; }
th { padding:0 18px 13px 0; color:var(--muted); font-size:.76rem; font-weight:550; white-space:nowrap; border-bottom:1px solid var(--line); }
td { padding:17px 18px 17px 0; border-bottom:1px solid #edf0f4; min-width:115px; }
th:last-child,td:last-child { padding-right:0; }
td:first-child { min-width:165px; max-width:320px; overflow-wrap:anywhere; }
.numeric { font-variant-numeric:tabular-nums; white-space:nowrap; }
.table-note { display:block; font-size:.78rem; margin-top:4px; }
.users-panel td:first-child { min-width:120px; }
.admin-user-list { list-style:none; margin:0; padding:0; }
.admin-user-row { display:flex; align-items:center; justify-content:space-between; gap:16px 24px; padding:15px 0; border-top:1px solid var(--line); }
.admin-user-row:first-child { border-top:0; padding-top:0; }
.admin-user-identity { display:grid; gap:2px; min-width:0; overflow-wrap:anywhere; }
.admin-user-identity>strong { font-size:.94rem; }
.admin-user-identity>span { font-size:.76rem; color:var(--muted); }
.admin-user-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px 12px; flex-shrink:0; }
.admin-user-actions form { margin:0; }
.admin-user-actions button,.admin-user-actions .button { min-height:38px; padding:8px 12px; font-size:.78rem; }
.admin-delete-link { display:inline-flex; align-items:center; min-height:38px; color:#a83628; font-size:.78rem; }
.admin-delete-link:hover { color:#8b281d; }
.admin-user-review>p { font-size:.9rem; }
.admin-user-review>label { margin-bottom:12px; }
.admin-user-review input[readonly] { width:100%; min-width:0; font-size:.85rem; }
.admin-action-confirm { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding-block:10px 16px; font-size:.86rem; font-weight:450; }
.admin-action-confirm input[type=checkbox] { width:18px; height:18px; min-height:18px; padding:0; margin:4px 0 0; flex-shrink:0; accent-color:var(--blue); }
@media(max-width:700px) {
  .admin-user-row { align-items:flex-start; flex-direction:column; gap:10px; }
  .admin-user-actions { justify-content:flex-start; flex-shrink:1; }
}
@media(pointer:coarse), (max-width:600px) {
  .admin-user-actions button,.admin-user-actions .button,.admin-delete-link { min-height:44px; }
  .view-password-reset input:not([type=hidden]) { font-size:16px; }
}
.user-status { color:#24634e; }
.user-status.disabled { color:#9a3424; }
.invitation-panel { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px 35px; }
.invitation-panel h2 { margin-bottom:6px; }
.invitation-panel .muted { font-size:.85rem; margin:0; }
.invitation-result { flex-basis:100%; }
.policy-form { display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:760px; margin-block:24px; }
.policy-form button { justify-self:start; }
.activation-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:center; }
.activation-panel p { max-width:55ch; font-size:.9rem; }
.activation-qr { width:220px; height:220px; max-width:100%; }
@media(max-width:860px) {
  .site-header { gap:18px; flex-wrap:wrap; padding-block:15px; }
  .site-header nav { flex-wrap:wrap; gap:4px 22px; }
  .hero { gap:32px; padding-top:50px; }
  .hero h1 { font-size:2.45rem; }
  .transfer-diagram { padding:16px; }
  .diagram-endpoint { padding:13px; gap:12px; }
  .device-create { grid-template-columns:1fr 1fr; }
  .device-create button { justify-self:start; }
}
@media(max-width:760px) {
  .wrap { width:calc(100% - 36px); }
  .site-header { min-height:76px; gap:10px; }
  .brand { font-size:1.1rem; }
  .brand img { width:30px; height:30px; }
  .site-header nav { gap:3px 18px; font-size:.8rem; }
  .site-header.signed-in .header-actions { width:100%; align-items:flex-start; }
  .site-header.signed-in nav { width:100%; }
  .site-header:not(.signed-in) .nav-detail { display:none; }
  .site-header nav a,.site-header nav .plain { min-height:40px; }
  .site-footer { font-size:.73rem; padding-block:23px; }
  .hero { grid-template-columns:1fr; gap:30px; padding-block:38px; }
  .hero h1 { max-width:500px; font-size:2.25rem; }
  .hero-description { font-size:1rem; }
  .transfer-diagram { max-width:420px; }
  .diagram-connection { padding:13px 0; }
  .workflow { padding-block:28px 34px; }
  .workflow h2 { font-size:1.25rem; }
  .steps { grid-template-columns:1fr; gap:25px; }
  .steps li { position:relative; padding-left:44px; }
  .step-number { position:absolute; left:0; top:0; }
  .privacy-note { padding:22px; }
  .privacy-note h2 { font-size:1.08rem; }
  .privacy-note summary { font-size:.82rem; }
  .landing-main { padding-bottom:36px; }
  .auth-layout { padding-block:30px 45px; }
  .auth-card { padding:25px 22px; }
  .portal-main { padding-block:26px 40px; }
  .page-heading { margin-bottom:20px; }
  .page-heading h1 { font-size:1.7rem; }
  .panel { padding:21px 20px; }
  .device-heading { align-items:flex-start; gap:12px; }
  .device-heading h2 { font-size:1.06rem; }
  .device-create,.policy-form,.activation-panel { grid-template-columns:1fr; }
  .activation-qr { justify-self:center; }
  .grant-form { flex-wrap:wrap; }
  .grant-form label { flex-basis:100%; }
  .profile-details>div { gap:12px; }
  .profile-details dt { font-size:.84rem; }
  .profile-details dd { font-size:.9rem; }
  .settings-row { gap:12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

.removed-list { list-style:none; padding:0; margin:0; }
.removed-list li { padding:12px 0; border-top:1px solid var(--line); font-size:.86rem; overflow-wrap:anywhere; }
.removed-list small { display:block; color:var(--muted); margin-top:3px; }

/* Device overview: one compact card and one clear settings dialog per device. */
.view-devices .page-heading { margin-bottom:16px; }
.device-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px 28px; margin-bottom:24px; }
.device-toolbar p { margin:0; color:var(--muted); font-size:.9rem; }
.device-toolbar-actions { display:flex; align-items:center; flex-shrink:0; gap:20px; }
.device-toolbar-actions>.button { white-space:nowrap; }
.device-toolbar-actions>.device-text-link { font-size:.84rem; }
.recipient-order-list { display:flex; flex-direction:column; gap:10px; list-style:none; padding:0; margin:20px 0 0; }
.recipient-order-tile { display:flex; align-items:center; gap:12px; min-width:0; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.recipient-order-list.is-pointer-dragging, .recipient-order-list.is-pointer-dragging * { cursor:grabbing; }
.recipient-order-tile.is-dragging { opacity:.45; border-style:dashed; }
.recipient-order-tile .device-pictogram { width:40px; height:40px; border-radius:10px; }
.recipient-order-tile .device-pictogram svg { width:25px; height:25px; }
.recipient-order-grip { display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; border:0; border-radius:8px; padding:0; background:transparent; color:#8491a4; font-size:1.35rem; line-height:1; flex-shrink:0; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.recipient-order-grip:hover,.recipient-order-grip:focus-visible { color:var(--blue); background:#f3f6fb; }
.recipient-order-tile { touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:grab; }
.device-dialog.is-reordering { overflow:hidden; }
[data-recipient-order][aria-busy="true"] .recipient-order-tile { cursor:wait; }
[data-order-save]:disabled { background:#edf0f4; color:#69778b; cursor:default; }
.recipient-order-name { flex:1; min-width:0; }
.recipient-order-name strong { display:block; overflow-wrap:anywhere; font-size:.9rem; line-height:1.35; }
.recipient-order-name small { display:block; margin-top:3px; color:var(--muted); font-size:.72rem; }
.recipient-order-position { width:58px; flex-shrink:0; margin:0; font-size:.7rem; }
.recipient-order-position input { width:100%; padding:8px; margin-top:3px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.device-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:18px; }
.device-tile { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 2px 4px #19273703; overflow:hidden; }
.device-tile-main { display:block; flex:1; padding:22px 22px 20px; color:var(--ink); text-decoration:none; }
.device-tile-main:hover { color:var(--ink); background:#fafcff; }
.device-tile-main:focus-visible { outline-offset:-4px; border-radius:16px 16px 0 0; }
.device-tile-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:19px; }
.device-pictogram { display:inline-flex; align-items:center; justify-content:center; width:51px; height:51px; border-radius:14px; color:#3c62cb; background:#edf2ff; flex-shrink:0; }
.device-pictogram svg { width:30px; height:30px; }
.device-tile h2 { margin:0 0 5px; font-size:1.12rem; line-height:1.35; overflow-wrap:anywhere; }
.device-type { display:block; margin:0; color:var(--muted); font-size:.8rem; }
.status-badge.configured { color:#526173; background:#f0f3f8; }
.status-badge.warning { color:#9b442d; background:#fff0e8; }
.status-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:6px; }
.device-access { display:flex; align-items:center; gap:12px; min-height:67px; padding:12px 20px; border-top:1px solid #e7ecf3; color:var(--ink); text-decoration:none; font-size:.77rem; }
.device-access:hover { background:#f7f9fd; color:var(--ink); }
.device-access:focus-visible { outline-offset:-4px; }
.device-access small { display:block; margin-top:1px; color:var(--muted); font-size:.73rem; }
.sender-icons { display:flex; align-items:center; flex-shrink:0; padding-left:3px; }
.sender-icons>span { display:inline-flex; align-items:center; justify-content:center; width:27px; height:31px; border-radius:8px; margin-left:-3px; border:2px solid #fff; background:#edf2ff; color:#5572b0; }
.sender-icons>span.sender-person { background:#eef2f3; color:#61777c; }
.sender-icons svg { width:16px; height:19px; }
.device-chevron { margin-left:auto; color:#718096; font-size:1.4rem; line-height:1; }
.device-tile-note { display:flex; align-items:center; min-height:67px; padding:12px 22px; border-top:1px solid #e7ecf3; color:var(--muted); font-size:.77rem; }
.device-empty { grid-column:1/-1; padding:40px 24px; text-align:center; border:1px dashed #cbd5e2; border-radius:16px; }
.device-empty .device-pictogram { margin-bottom:20px; }
.device-empty h2 { font-size:1.1rem; margin-bottom:8px; }
.device-empty p { margin:0; color:var(--muted); font-size:.9rem; }
.device-archive-link { display:inline-flex; margin-top:24px; min-height:36px; align-items:center; font-size:.8rem; color:var(--muted); }
.device-dialog { width:min(540px,calc(100% - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid #dbe2ec; border-radius:18px; color:var(--ink); background:#fff; box-shadow:0 24px 100px #15263b30; overflow:auto; overscroll-behavior:contain; }
.device-dialog::backdrop { background:#17263865; backdrop-filter:blur(3px); }
.device-dialog[open]:not(:modal) { position:relative; margin:24px auto; box-shadow:none; }
.device-dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:15px 18px 10px; }
.device-dialog-header h2 { margin:2px 0 0; font-size:1.08rem; line-height:1.35; overflow-wrap:anywhere; }
.device-dialog-header>.device-type { margin:0; }
.device-dialog-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.device-dialog-identity .device-pictogram { width:36px; height:36px; border-radius:10px; }
.device-dialog-identity .device-pictogram svg { width:23px; height:23px; }
.device-dialog-close { display:inline-flex; justify-content:center; align-items:center; width:44px; height:44px; margin:-5px -7px 0 0; border-radius:50%; color:#667589; flex-shrink:0; }
.device-dialog-close:hover { background:#f0f3f8; color:var(--ink); }
.device-dialog-close svg { width:20px; height:20px; }
.device-dialog-body { padding:0 18px 14px; }
.device-dialog-body>p { font-size:.9rem; }
.device-dialog-body>.notice { font-size:.84rem; margin-bottom:18px; }
.device-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 18px; border-top:1px solid var(--line); background:#fbfcfe; }
.device-dialog-actions { display:flex; justify-content:flex-end; align-items:center; gap:14px; margin-top:14px; }
.device-text-link { font-size:.86rem; color:var(--muted); }
.device-inline-form { margin:0 0 10px; }
.device-inline-form>label { margin-bottom:4px; font-size:.8rem; }
.device-inline-field { display:flex; min-width:0; border:1px solid #c6d0dd; border-radius:8px; overflow:hidden; background:#fff; }
.device-inline-field:focus-within { border-color:var(--blue); box-shadow:0 0 0 3px #dce5ff; }
.device-inline-field input { border:0; border-radius:0; flex:1; box-shadow:none; outline:0; min-height:36px; padding:6px 10px; font-size:.84rem; }
.device-inline-field input[readonly] { color:var(--ink); background:#fafbfd; cursor:default; }
.device-inline-field input:focus { outline:0; }
.device-inline-field>button { border:0; border-left:1px solid #e0e6f0; border-radius:0; padding:6px 9px; gap:5px; min-height:36px; font-size:.74rem; background:#f5f7fb; color:#495b75; flex-shrink:0; }
.device-inline-field>button:hover { background:#eaf0fb; color:#254daf; }
.device-inline-field>button svg { width:15px; height:15px; }
.device-inline-field>button.is-save { background:var(--blue); color:#fff; }
.device-inline-field>button.is-save svg { display:none; }
.device-inline-field>button.is-save:hover { background:#244cc7; }
.device-edit-cancel,.device-reset-folder,.device-grant-remove { min-height:32px; padding:5px 0; border:0; background:transparent; color:var(--muted); font-size:.76rem; font-weight:450; border-radius:4px; text-decoration:underline; text-underline-offset:3px; }
.device-edit-cancel:hover,.device-reset-folder:hover { background:transparent; color:var(--blue); }
.device-edit-cancel[hidden],[hidden] { display:none!important; }
.device-folder-tools { display:flex; justify-content:space-between; gap:10px; margin-top:0; }
.device-reset-folder { margin-left:auto; }
.device-folder-status { margin:-3px 0 10px; color:var(--muted); font-size:.76rem!important; line-height:1.45; }
@media(min-width:601px) {
  .device-settings-dialog .device-inline-form { display:grid; grid-template-columns:100px minmax(0,1fr); gap:0 10px; align-items:center; }
  .device-settings-dialog .device-inline-form>label { margin:0; }
  .device-settings-dialog .device-inline-form>.device-edit-cancel,
  .device-settings-dialog .device-inline-form>.device-folder-tools { grid-column:2; }
}
.device-folder-status.config-error { color:#a33726; }
.device-folder-status.config-pending { color:#80591d; }
.device-dialog-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; padding:10px 0 0; border-top:1px solid var(--line); color:var(--ink); font-size:.86rem; text-decoration:none; }
.device-dialog-row>span:first-child { display:flex; align-items:center; gap:13px; }
.device-dialog-row svg { width:21px; height:21px; color:#6e819d; flex-shrink:0; }
.device-dialog-row small { display:block; margin-top:3px; color:var(--muted); font-size:.76rem; }
.device-dialog-row:hover { color:var(--blue); }
.device-remove-link { font-size:.8rem; color:#93584d; }
.device-help { color:var(--muted); font-size:.82rem!important; line-height:1.45; margin-bottom:10px; }
.device-people-list { list-style:none; padding:0; margin:0; }
.device-people-list>li { display:flex; align-items:center; gap:12px; min-width:0; padding:8px 0; border-bottom:1px solid #e8edf4; font-size:.84rem; }
.device-people-list>li>span:nth-child(2) { overflow-wrap:anywhere; min-width:0; }
.device-people-list small { display:block; margin-top:2px; color:var(--muted); font-size:.74rem; }
.device-small-icon { display:inline-flex; align-items:center; justify-content:center; width:34px; height:38px; border-radius:9px; color:#5572b0; background:#edf2ff; flex-shrink:0; }
.device-small-icon.person { color:#61777c; background:#eef2f3; }
.device-small-icon svg { width:22px; height:22px; }
.device-own-note { margin-left:auto; font-size:.7rem; color:var(--muted); white-space:nowrap; }
.device-people-list form { margin-left:auto; }
.device-people-list>.device-person-permission { align-items:flex-start; }
.device-grant-details { flex:1; min-width:0; }
.device-grant-person { display:flex; align-items:center; justify-content:space-between; gap:12px; overflow-wrap:anywhere; }
.device-recall-permission { margin-top:10px; }
.device-recall-permission label { display:flex; flex-direction:row; align-items:flex-start; gap:8px; margin:0; font-size:.78rem; line-height:1.45; }
.device-recall-permission input[type=checkbox] { width:16px; min-height:16px; height:16px; flex-shrink:0; margin:1px 0 0; padding:0; accent-color:var(--blue); }
.device-recall-permission small { margin:5px 0 8px 24px; line-height:1.5; }
.device-recall-permission button { padding:6px 11px; font-size:.75rem; }
.device-web-links { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; column-gap:10px; margin:12px 0; }
.device-web-links fieldset { display:flex; flex-wrap:wrap; column-gap:18px; min-width:0; border:0; margin:0; padding:0; }
.device-web-links legend { padding:0; margin-bottom:4px; font-size:.82rem; font-weight:550; }
.device-web-links label { display:flex; flex-direction:row; align-items:center; gap:8px; min-height:28px; margin:0; font-size:.8rem; font-weight:400; }
.device-web-links label + label { margin-top:0; }
.device-web-links input[type=checkbox] { width:17px; min-height:17px; height:17px; flex-shrink:0; margin:0; padding:0; accent-color:var(--blue); }
.device-web-links small { display:block; grid-column:1/-1; margin:3px 0 0; color:var(--muted); font-size:.73rem; }
.device-web-links button { grid-column:2; grid-row:1; min-height:34px; padding:6px 10px; margin:0; font-size:.74rem; }
.device-software { margin:12px 0; border-top:1px solid var(--line); padding-top:10px; }
.device-software h3 { margin:0; font-size:.82rem; font-weight:550; }
.device-software p { margin:3px 0 6px; font-size:.76rem; line-height:1.45; }
.device-software button { min-height:36px; padding:6px 10px; font-size:.74rem; }
.device-software-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:3px 12px; }
.device-software-heading p { margin:0; }
.device-software-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:7px; }
.device-software-actions>form { margin:0; }
.device-software button:disabled { color:var(--muted); background:#edf0f4; cursor:default; }
.device-installer-download { margin:0; }
.device-installer-download>div { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.device-installer-download select { width:auto; max-width:100%; min-height:36px; margin:0; padding:6px 8px; font-size:.74rem; }
.device-installer-note { max-width:60ch; }
.device-update-preference { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin-top:6px; }
.device-update-preference label { display:flex; flex-direction:row; align-items:center; gap:8px; min-height:32px; font-size:.8rem; margin:0; font-weight:400; }
.device-update-preference input[type=checkbox] { width:17px; min-height:17px; height:17px; flex-shrink:0; margin:0; padding:0; accent-color:var(--blue); }
.device-grant-remove { color:#975c4e; white-space:nowrap; }
.device-grant-remove:hover { color:#a33726; background:transparent; }
.device-person-form { margin-top:14px; }
.device-person-form>label { margin-bottom:8px; }
.device-person-form>div { display:flex; align-items:center; gap:10px; }
.device-person-form input { flex:1; }
.device-person-form button { padding-inline:13px; white-space:nowrap; font-size:.8rem; }
.device-kind-choice { padding:0; margin:0 0 14px; border:0; min-width:0; }
.device-kind-choice legend { margin-bottom:12px; font-size:.86rem; font-weight:550; }
.device-kind-choice>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:12px; }
.device-kind-choice label { position:relative; display:block; cursor:pointer; }
.device-kind-choice input { position:absolute; width:18px; height:18px; min-height:0; right:12px; top:12px; margin:0; padding:0; accent-color:var(--blue); }
.device-kind-choice label>span { display:flex; align-items:flex-start; flex-direction:column; padding:12px; border:1px solid var(--line); border-radius:11px; background:#fafbfd; }
.device-kind-choice input:checked+span { border-color:#7f9ce9; background:#f0f4ff; box-shadow:0 0 0 1px #7f9ce9; }
.device-kind-choice input:focus-visible+span { outline:3px solid #dce5ff; outline-offset:3px; }
.device-kind-choice svg { width:24px; height:24px; margin-bottom:7px; color:#5572b0; }
.device-kind-choice strong { font-size:.94rem; font-weight:600; }
.device-kind-choice small { margin-top:3px; color:var(--muted); font-size:.76rem; font-weight:400; }
.device-install-note { padding:12px 14px; background:#f5f7fb; border-radius:8px; font-size:.76rem; }
.device-unsaved { margin-top:20px; padding:15px; border:1px solid #e5d1a8; border-radius:9px; background:#fffbf0; }
.device-unsaved p { margin-bottom:10px; font-size:.83rem; }
.device-unsaved>div { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.device-unsaved button { font-size:.76rem; min-height:36px; padding:7px 10px; }
.device-qr { display:flex; justify-content:center; margin-block:22px 14px; }
.device-qr .activation-qr { width:240px; height:240px; }
.device-qr-dialog .field-hint { text-align:center; }
.device-dialog-open { overflow:hidden; }
@media(max-width:600px) {
  .view-devices input:not([type=radio]):not([type=hidden]) { font-size:16px; }
  .device-toolbar { align-items:flex-start; flex-direction:column; gap:14px; margin-bottom:20px; }
  .device-toolbar-actions { justify-content:space-between; flex-wrap:wrap; width:100%; gap:12px; }
  .recipient-order-tile { gap:9px; padding:12px 10px; }
  .recipient-order-tile .device-pictogram { width:32px; height:36px; }
  .device-grid { grid-template-columns:repeat(auto-fill,minmax(245px,1fr)); gap:14px; }
  .device-tile-main { padding:20px; }
  .device-tile-top { margin-bottom:15px; }
  .device-tile h2 { font-size:1.06rem; }
  .device-dialog { max-height:calc(100dvh - 24px); width:calc(100% - 24px); border-radius:15px; }
  .device-dialog-header { padding:14px 14px 9px; }
  .device-dialog-body { padding:0 14px 12px; }
  .device-dialog-footer { padding:8px 14px; }
  .device-dialog-header h2 { font-size:1.05rem; }
  .device-dialog-identity { gap:11px; }
  .device-inline-field>button { padding-inline:9px; font-size:.72rem; }
  .device-inline-field>button svg { display:none; }
  .device-own-note { font-size:.65rem; }
  .device-person-form>div { align-items:stretch; flex-direction:column; gap:9px; }
  .device-person-form button { align-self:flex-start; }
}
.device-portal-access { border-top:1px solid var(--line); padding-top:10px; }
.device-portal-access h3 { margin:0 0 5px; font-size:.85rem; }
.device-portal-access form { display:grid; gap:7px; margin-top:8px; }
.device-portal-access button { justify-self: start; }

/* Compact one-time account approval on the iPhone. */
.pairing-panel{max-width:40rem;margin-inline:auto}.pairing-identity{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.pairing-identity h2{margin:.25rem 0 0}

@media(pointer:coarse), (max-width:600px) {
  .device-settings-dialog button, .device-settings-dialog .button,
  .device-settings-dialog select, .device-settings-dialog .device-inline-field input,
  .device-settings-dialog .device-inline-field>button { min-height:44px; }
  .device-settings-dialog .device-web-links label,
  .device-settings-dialog .device-update-preference label { min-height:44px; }
}
@media(max-width:380px) {
  .device-web-links { grid-template-columns:minmax(0,1fr); }
  .device-web-links button { grid-column:1; grid-row:auto; justify-self:start; }
  .device-software-heading { display:block; }
}
