/* 上網防護 (claude-webguard-20261101): the settings page on the 運算節點／防詐狀態 language; same layout as the App's WebGuardScreen. */
.wg-page{max-width:880px;padding-bottom:24px}
.wg-page .calm-summary{grid-template-columns:minmax(0,1fr)}
.wg-page .calm-summary-title{margin:0}
.wg-page .calm-section>h2{margin:0 0 8px 4px}
.wg-page .ds-foot{margin-top:18px}
.wg-page .calm-row:has(>.calm-icon:empty){grid-template-columns:minmax(0,1fr) auto auto}
.wg-page .calm-summary-lines{gap:4px;line-height:1.6;text-wrap:pretty}
.wg-page .wg-on{display:flex;flex-wrap:wrap;gap:2px 0}
.wg-page .wg-on>span,.wg-page .wg-nw{white-space:nowrap}
.wg-page .calm-row .calm-text small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;text-wrap:pretty}
.wg-page .calm-row.wg-row{grid-template-columns:minmax(0,1fr) auto;min-height:60px}
.wg-page .calm-row.wg-stack{grid-template-columns:1fr;gap:10px;padding-top:12px;padding-bottom:12px}
/* 被擋時: 「跳提示頁｜直接擋掉」 and 「15 分鐘｜1 小時｜4 小時｜1 天」 are the same full-width segmented control, same height and text
   (owner 11/02: the two-choice one was small and its pill clipped); each choice takes an equal share, nothing scrolls or clips. */
.wg-page .wg-stack .segmented{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;box-sizing:border-box;justify-self:stretch}
.wg-page .calm-row.wg-stack{container-type:inline-size}
/* every label the same size — the largest at which 「15 分鐘」 still fits a narrow phone at 1.3× text (the App's NodesScreen.evenFit) */
.wg-page .wg-stack .segmented button{min-height:40px;padding:8px 2px;font-size:clamp(12px,4.2cqi,15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wg-page .wg-switch{min-height:44px;min-width:44px}
/* main page rows (claude-switch-labels-20261102): the value stays on the right on one line, the line under the title wraps beside it */
.wg-page .calm-row.wg-main-row .calm-value{white-space:nowrap}
.wg-page .wg-status.wg-bad .calm-summary-title{color:var(--danger,#b42318)}
:root[data-theme=dark] .wg-page .wg-status.wg-bad .calm-summary-title{color:#ffb4ab}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .wg-page .wg-status.wg-bad .calm-summary-title{color:#ffb4ab}}
.wg-page .ds-switch .memory-toggle{transition:background 200ms}
.wg-page .wg-will{margin:6px 0 0;padding-left:18px;color:var(--muted);line-height:1.8}
.wg-page .wg-bar{height:10px;border-radius:5px;background:var(--surface);overflow:hidden;margin:8px 0 4px;border:1px solid var(--line)}
.wg-page .wg-bar i{display:block;height:100%;background:var(--accent);border-radius:5px;transition:width 240ms cubic-bezier(.2,0,0,1)}
.wg-page .wg-domain .calm-text strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13.5px;font-weight:550;overflow-wrap:anywhere}
.wg-page .wg-plan-card{border:1px solid var(--line);border-radius:18px;padding:14px 18px 16px}
.wg-page .wg-steps{margin:0;padding-left:22px;display:grid;gap:8px;font-size:14.5px;line-height:1.65}
.wg-page .wg-steps li{padding-left:2px;text-wrap:pretty}
.wg-page .wg-plan-id{margin:12px 0 0}
.wg-page .wg-approve{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.wg-page .wg-approve .primary{min-height:44px}
.wg-page .wg-approve-line{margin:0;flex:1;min-width:200px}
.wg-page .wg-devices{margin:14px 0 4px;max-width:100%;overflow-x:auto}
.wg-page .wg-devices button{min-height:40px;padding:8px 16px}
.wg-page .wg-devices button[aria-checked=true]{font-weight:650;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.wg-page .wg-guide-intro{margin:16px 4px 4px}
.wg-page .wg-guide-card{border:1px solid var(--line);border-radius:18px;padding:16px 18px 18px;margin-top:12px}
.wg-page .wg-guide-card>h2{font-size:17px;margin:0 0 12px;font-weight:650}
.wg-page .wg-detail{border:1px solid var(--line);border-radius:14px;padding:0 16px;margin-top:10px}
.wg-page .wg-detail summary{min-height:48px;display:flex;align-items:center;font-size:15px;font-weight:550;cursor:pointer}
.wg-page .wg-detail[open] summary{border-bottom:1px solid var(--line);margin-bottom:12px}
.wg-page .wg-detail .wg-steps{padding-bottom:14px}
.wg-page .wg-check{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--muted);font-size:13px;color:var(--muted)}
.wg-page .wg-check.done{border-color:var(--accent);background:var(--accent);color:var(--inverse)}
.wg-page .calm-note{font-size:13px;color:var(--muted);line-height:1.65;margin:10px 4px 0;text-wrap:pretty}
.wg-page .wg-approve-line,.wg-page .calm-text strong,.wg-page .wg-will li{text-wrap:pretty}
@media(max-width:560px){.wg-page .wg-steps{font-size:14px}.wg-page .wg-guide-card,.wg-page .wg-plan-card{padding:14px 14px 16px}}
/* A value never squeezes a row's description into a narrow column (owner's 1.3×／narrow-phone rule, same as the App's WebGuardScreen.fit):
   on a phone the value goes under the description and the text keeps the row's width. */
@media(max-width:560px){
 .wg-page .calm-row:has(>.calm-value:not(:empty)):not(.wg-row):not(.wg-main-row){grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"i t c" "i v c";row-gap:2px}
 .wg-page .calm-row:has(>.calm-value:not(:empty)):has(>.calm-icon:empty):not(.wg-row):not(.wg-main-row){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t c" "v c"}
 .wg-page .calm-row:has(>.calm-value:not(:empty)):not(.wg-row):not(.wg-main-row)>.calm-icon{grid-area:i}
 .wg-page .calm-row:has(>.calm-value:not(:empty)):not(.wg-row):not(.wg-main-row)>.calm-text{grid-area:t}
 .wg-page .calm-row:has(>.calm-value:not(:empty)):not(.wg-row):not(.wg-main-row)>.calm-value{grid-area:v;justify-self:start;text-align:start;font-size:13px}
 .wg-page .calm-row:has(>.calm-value:not(:empty)):not(.wg-row):not(.wg-main-row)>.calm-chevron{grid-area:c}
}
/* Phase B: 核准 dialog with the exact lists and rules, and the progress while the background work writes to Cloudflare. */
.wg-page .wg-progress{flex:1;min-width:0;display:grid;gap:6px}
.wg-page .wg-progress .wg-bar{margin:2px 0 0}
.wg-page .wg-progress-line{margin:0;display:flex;align-items:center;gap:8px;text-wrap:pretty}
.wg-page .wg-progress-line .choice-spinner{flex:none}
.wg-page .wg-approve-done{margin:0;display:flex;align-items:center;gap:10px;font-size:14.5px;line-height:1.6}
.wg-page .wg-approve-done .wg-check{flex:none}
.wg-page .wg-overlap .calm-text small{color:var(--warn,var(--muted))}
.wg-approve-dialog{max-width:min(560px,calc(100vw - 32px))}
.wg-approve-dialog .wg-approve-body{max-height:min(60vh,520px);overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.wg-approve-dialog .wg-approve-lead{margin:0 0 10px;font-size:15px;line-height:1.65;text-wrap:pretty}
.wg-approve-dialog h3{font-size:14px;font-weight:650;margin:14px 0 6px}
.wg-approve-dialog .wg-approve-list{margin:0;padding-left:20px;display:grid;gap:4px;font-size:14px;line-height:1.6}
.wg-approve-dialog .wg-approve-list li{text-wrap:pretty}
.wg-approve-dialog .confirm-actions button{min-height:44px}
.wg-approve-dialog .confirm-ok{background:var(--accent);border-color:var(--accent);color:var(--inverse);font-weight:650}
.wg-approve-dialog .confirm-ok:hover{filter:brightness(1.08)}
/* 家裡的設備 (phase B): one row per device — name, IP／ports／who／last seen, the state in words and a mark (never colour alone), actions. */
.wg-page .calm-row.wg-dev{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t s" "a a";row-gap:10px;padding-top:12px;padding-bottom:12px}
.wg-page .wg-dev>.calm-text{grid-area:t}
.wg-page .wg-dev-state{grid-area:s;align-self:start;font-size:13.5px;font-weight:600;white-space:nowrap;padding:3px 10px;border-radius:999px;border:1px solid var(--line)}
.wg-page .wg-dev-active{color:var(--accent)}
.wg-page .wg-dev-mismatch,.wg-page .wg-dev-missing{color:var(--warn,#b45309)}
.wg-page .wg-dev-actions{grid-area:a;display:flex;gap:8px;flex-wrap:wrap}
.wg-page .wg-dev-actions button{min-height:44px;min-width:72px}
.wg-page .wg-dev-warn{color:var(--warn,#b45309)!important;font-weight:550}
.wg-page .wg-dev-form{display:grid;gap:12px;border:1px solid var(--line);border-radius:18px;padding:16px 18px;margin-top:4px}
.wg-page .wg-field{display:grid;gap:6px;font-size:14px;font-weight:550}
.wg-page .wg-field input{min-height:44px;font-size:16px;margin:0}
.wg-page .wg-dev-form .primary{min-height:44px;justify-self:start}
.wg-page .wg-dev-error:empty{display:none}
.wg-page .wg-ads .fine,.wg-page .wg-learned .fine{color:var(--muted)}
@media(max-width:560px){.wg-page .wg-dev-form .primary{justify-self:stretch}}
/* 地點 (phase C): each location is its own section — a heading with its one-line state, then its checks, devices and 加入設備. */
.wg-page .wg-loc{margin-top:22px}
.wg-page .wg-loc-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 8px 4px}
.wg-page .wg-loc-head h2{margin:0;font-size:17px;font-weight:650}
.wg-page .wg-loc-line{margin:0;text-wrap:pretty}
.wg-page .wg-loc-sub{font-size:14px;font-weight:600;color:var(--muted);margin:16px 0 8px 4px}
.wg-page .wg-loc .calm-list+.calm-list{margin-top:10px}
.wg-page .wg-shared{margin-top:18px}
/* phase C: fixed 「LP636-」 prefix on the device name, location actions (繼續安裝／刪除這個地點, blocked with its reason), the key box and 操作紀錄. */
.wg-page .wg-prefixed{display:flex;align-items:stretch;min-height:48px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg)}
.wg-page .wg-prefixed .wg-prefix{display:flex;align-items:center;padding:0 2px 0 16px;font-size:16px;font-weight:600;color:var(--ink);white-space:nowrap}
.wg-page .wg-prefixed input.monitor-search{border:0;border-radius:0;flex:1;min-width:0;margin:0;padding:10px 16px 10px 2px;background:transparent;outline:none}
.wg-page .wg-prefixed:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.wg-page .wg-loc-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0 4px}
.wg-page .wg-loc-actions button{min-height:44px}
.wg-page .wg-loc-delete.is-blocked{opacity:.55;cursor:not-allowed}
.wg-page .wg-loc-blocked{margin:8px 0 0 4px;text-wrap:pretty;display:grid;justify-items:start}
.wg-page .wg-loc-blocked .link-button{min-height:44px;padding:0 6px;background:none;border:0;color:var(--accent);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.wg-page .wg-flash{animation:wgFlash .6s ease}
@keyframes wgFlash{0%{color:var(--warn,#b45309)}100%{color:inherit}}
@media(prefers-reduced-motion:reduce){.wg-page .wg-flash{animation:none}}
.wg-page .wg-add-loc{display:grid;gap:8px;margin:22px 0 0 4px}
.wg-page .wg-add-loc button{min-height:44px;justify-self:start}
.wg-page .wg-key{margin-top:26px}
.wg-page .wg-key-box{border:1px solid var(--line);border-radius:18px;padding:14px 18px;display:grid;gap:6px}
.wg-page .wg-key-box h3{font-size:14px;font-weight:650;margin:8px 0 0}
.wg-page .wg-key-box ul{margin:0;padding-left:20px;display:grid;gap:4px;font-size:14px;line-height:1.6}
.wg-page .wg-key-box li{text-wrap:pretty}
.wg-page .wg-key-perms li{display:grid;gap:2px}
.wg-page .wg-log{margin-top:22px}
.wg-page .wg-log-row{grid-template-columns:minmax(0,1fr) auto}
.wg-page .wg-log-result{font-size:13.5px;font-weight:600;color:var(--accent);white-space:nowrap;align-self:start}
.wg-page .wg-log-result.bad{color:var(--warn,#b45309)}
.wg-loc-wizard .wg-sample{margin-top:-4px}
.wg-loc-wizard .wg-stepup,.wg-dev-dialog .wg-stepup{color:var(--muted)}
.wg-loc-wizard .wizard-body input{min-height:44px;font-size:16px;width:100%}
.wg-loc-wizard .node-actions button,.wg-loc-wizard .wizard-body>button{min-height:44px}
@media(max-width:560px){.wg-page .wg-add-loc button,.wg-page .wg-loc-actions button{flex:1 1 auto}.wg-page .wg-log-row{grid-template-columns:1fr}.wg-page .wg-log-result{white-space:normal}}
.wg-loc-wizard .wg-nw{white-space:nowrap}
/* phase D (claude-webguard-d-20261102): 家裡的設備 as list → sub-page → sheet, like 運算節點. */
.wg-page .wg-dev-root.wg-slide-in{animation:wgSlideIn .22s cubic-bezier(.2,0,0,1)}
.wg-page .wg-dev-root.wg-slide-back{animation:wgSlideBack .22s cubic-bezier(.2,0,0,1)}
@keyframes wgSlideIn{from{opacity:.4;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes wgSlideBack{from{opacity:.4;transform:translateX(-28px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.wg-page .wg-dev-root.wg-slide-in,.wg-page .wg-dev-root.wg-slide-back{animation:none}}
.wg-page .wg-dev-status.wg-bad{border-color:#c73b3b}
.wg-page .wg-dev-status.wg-bad .calm-summary-title{color:#c73b3b}
:root[data-theme=dark] .wg-page .wg-dev-status.wg-bad .calm-summary-title{color:#ffb4ab}
.wg-page .wg-fix,.wg-page .wg-card-actions .primary{margin-top:12px;min-height:44px}
.wg-page .wg-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px 4px}
.wg-page .wg-sec-head h2{margin:0;font-size:15px;font-weight:600;color:var(--muted)}
.wg-page .link-button,.wg-sheet .link-button{min-height:44px;padding:0 6px;background:none;border:0;color:var(--ink);font:inherit;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.wg-page .wg-add-place{text-decoration:none;font-size:14px}
.wg-page .wg-empty{margin:4px 4px 0;color:var(--muted)}
.wg-page .wg-badge{display:inline-block;font-size:12px;font-weight:600;color:#b75a08;border:1px solid currentColor;border-radius:999px;padding:1px 8px;margin-right:6px;white-space:nowrap}
:root[data-theme=dark] .wg-page .wg-badge{color:#f5a35d}
.wg-page .wg-foot{margin:18px 4px 0}
.wg-page .wg-place-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 4px}
.wg-page .wg-place-actions button{min-height:44px}
.wg-page .wg-search{margin:0 0 10px}
.wg-page .calm-row.wg-dev-row{width:100%;text-align:left;border:0;background:transparent;font:inherit;color:inherit;display:flex;align-items:center;gap:12px}
.wg-page .wg-dev-row .calm-text{flex:1;min-width:0}
.wg-page .wg-dev-row .calm-text small{overflow-wrap:anywhere}
.wg-page .wg-prefix-muted{color:var(--muted);font-weight:500}
.wg-page .wg-dev-tail{display:flex;align-items:center;gap:8px;flex:none}
.wg-page .calm-chev{color:var(--muted);font-size:18px}
.wg-page .wg-danger{margin-top:34px}
.wg-page .wg-danger h2{font-size:15px;color:var(--muted)}
.wg-page .wg-danger .wg-loc-delete{min-height:44px;color:#c73b3b;border:1px solid var(--line);border-radius:12px;padding:0 16px;background:var(--bg)}
:root[data-theme=dark] .wg-page .wg-danger .wg-loc-delete{color:#ffb4ab}
.wg-page .wg-danger .wg-loc-delete.is-blocked{opacity:.5}
.wg-page .wg-key h3,.wg-sheet .wg-key h3{font-size:15px;margin:18px 0 6px}
.wg-sheet .wg-key h4{font-size:13px;margin:12px 0 4px}
/* sheets */
.wg-sheet{width:min(560px,calc(100vw - 24px))}
.wg-sheet .wg-sheet-body{display:grid;gap:12px;margin-top:12px}
.wg-sheet .wg-sheet-foot{display:grid;gap:8px;margin-top:16px;position:sticky;bottom:-24px;background:var(--bg);padding:10px 0 4px}
.wg-sheet .wg-sheet-foot .primary{width:100%;min-height:48px}
.wg-sheet .wg-sheet-sub{font-size:15px;margin:10px 0 0}
.wg-sheet .wg-field{display:grid;gap:6px;font-size:14px;font-weight:550}
.wg-sheet .wg-field input,.wg-sheet .wg-paste{margin:0;min-height:44px;font-size:16px}
.wg-sheet .wg-prefixed{display:flex;align-items:stretch;min-height:48px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg)}
.wg-sheet .wg-prefixed .wg-prefix{display:flex;align-items:center;padding:0 2px 0 16px;font-size:16px;font-weight:600;white-space:nowrap}
.wg-sheet .wg-prefixed input.monitor-search{border:0;border-radius:0;flex:1;min-width:0;margin:0;padding:10px 16px 10px 2px;background:transparent;outline:none}
.wg-sheet .wg-prefixed:focus-within{outline:2px solid var(--muted);outline-offset:1px}
.wg-sheet .wg-kind{margin:-4px 2px 0}
.wg-sheet .wg-opt{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}
.wg-sheet .wg-opt input{width:20px;height:20px;accent-color:var(--accent)}
.wg-sheet .wg-all-warn{margin:-6px 0 0 30px;color:#b75a08}
:root[data-theme=dark] .wg-sheet .wg-all-warn{color:#f5a35d}
.wg-sheet .wg-chips{display:grid;gap:6px;margin-left:30px}
.wg-sheet .wg-chips.is-off{opacity:.55}
.wg-sheet .wg-tier{margin:8px 0 0;font-size:12px;font-weight:650;color:var(--muted)}
.wg-sheet .wg-chip{display:grid;grid-template-columns:22px 1fr;column-gap:8px;align-items:start;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);padding:10px 12px;min-height:44px;font:inherit}
.wg-sheet .wg-chip[aria-pressed=true]{border-color:var(--ink);background:var(--surface)}
.wg-sheet .wg-chip-mark{grid-row:1/3;width:20px;height:20px;border:1.5px solid var(--muted);border-radius:6px;display:grid;place-items:center;font-size:13px;line-height:1}
.wg-sheet .wg-chip[aria-pressed=true] .wg-chip-mark{background:var(--accent);border-color:var(--accent);color:var(--inverse)}
.wg-sheet .wg-chip-text{font-size:14px;font-weight:600;line-height:1.5}
.wg-sheet .wg-chip-why{color:var(--muted);font-size:12px;line-height:1.5;text-wrap:pretty}
.wg-sheet .wg-chip-no .wg-chip-text{color:var(--muted)}
.wg-sheet .wg-extra-err:empty{display:none}
.wg-sheet .wg-advice{border:1px solid var(--line);border-radius:14px;padding:4px 14px}
.wg-sheet .wg-advice:empty{display:none}
.wg-sheet .wg-advice-title{font-size:13px;font-weight:650;margin:8px 0 2px}
.wg-sheet .wg-key-list{margin:0 0 8px;padding-left:20px;display:grid;gap:4px;font-size:13px;line-height:1.6}
.wg-sheet .wg-key-list li{text-wrap:pretty}
.wg-sheet .wg-progress{height:6px;border-radius:999px;background:var(--surface);overflow:hidden;margin-top:6px}
.wg-sheet .wg-progress-fill{display:block;height:100%;background:var(--accent);transition:width .4s ease}
.wg-sheet .wg-probe p{margin:0}
.wg-sheet .wg-device-more{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.wg-sheet .wg-device-more button{min-height:44px}
.wg-sheet .quiet-action.danger{color:#c73b3b}
:root[data-theme=dark] .wg-sheet .quiet-action.danger{color:#ffb4ab}
.wg-sheet .wg-scan-list{display:grid;gap:8px}
.wg-sheet .wg-scan-row{border:1px solid var(--line);border-radius:14px;padding:8px 12px;display:grid;gap:8px}
.wg-sheet .wg-scan-row.is-added{opacity:.6}
.wg-sheet .wg-scan-row-top{display:flex;align-items:center;gap:12px;min-height:44px}
.wg-sheet .wg-scan-row-top input{width:22px;height:22px;accent-color:var(--accent);flex:none}
.wg-sheet .wg-scan-text{display:grid;min-width:0}
.wg-sheet .wg-scan-text small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.wg-sheet .wg-scan-text .wg-scan-svc,.wg-sheet .wg-scan-text .wg-added{margin-top:2px}
.wg-sheet .wg-svc-link{justify-self:start;text-align:left;font-weight:500;font-size:14px}
.wg-sheet .wg-paste{min-height:180px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px;line-height:1.6;padding:12px}
.wg-sheet .wg-paste-errors{margin:0;padding-left:20px;display:grid;gap:2px}
.wg-sheet .wg-paste-errors:empty{display:none}
@media(max-width:560px){.wg-page .wg-place-actions button{flex:1 1 auto}.wg-sheet .wg-chips{margin-left:0}.wg-sheet .wg-all-warn{margin-left:0}}
.wg-sheet .dialog-heading h2,.wg-dev-dialog .dialog-heading h2{text-wrap:balance}
.wg-sheet .wg-services>.wg-field{margin-top:10px}
.wg-sheet .wg-opt-text{display:grid;line-height:1.4}
.wg-sheet .wg-opt-text small{color:var(--muted);font-size:12px}

/* phase D review (coordinator 11/02) */
/* padding, not margin: nothing shared can collapse or reset it */
.wg-sheet .wg-services>.wg-probe:not(:empty),.wg-services>.wg-probe:not(:empty){margin:0;padding:0 0 14px}
.wg-probe .wg-probe-done{margin:0;font-size:15px;color:var(--ink)}
.wg-probe .wg-probe-done+.fine{margin:2px 0 0}
.wg-help-mark{display:inline-grid;place-items:center;width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%;font-size:12px;font-weight:600;line-height:1}
.wg-details{margin-top:10px}
.wg-details summary{cursor:pointer;color:var(--muted);font-size:13px;min-height:32px;display:flex;align-items:center;list-style:none}
.wg-details summary::-webkit-details-marker{display:none}
.wg-details summary::after{content:'›';margin-left:6px;transition:transform .2s}
.wg-details[open] summary::after{transform:rotate(90deg)}
.wg-details .wg-key-list{color:var(--muted);font-size:13px}
@media (prefers-reduced-motion:reduce){.wg-details summary::after{transition:none}}
.wg-dev-dialog .wg-approve-list li,.wg-dev-dialog .wg-stepup,.wg-dev-dialog .wg-approve-lead{text-wrap:pretty}

/* 先顯示較早的資料 (claude-webguard-devices-fix-20261114): one muted line above the page with 〔重試〕, never a wall or a red box */
.wg-page .wg-stale{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap;margin:0 4px 12px;font-size:13px;line-height:1.6;color:var(--muted)}
.wg-page .wg-stale-text{flex:1 1 220px;min-width:0}
.wg-page .wg-stale-retry{flex:none;font-size:13px;padding:0 4px;min-height:36px}
/* 好用度巡頁第 2 批（claude-uxpatrol-2-20261125）：1.3 倍字時「這台裝置」那一列的字（Cloudflare One）跟右邊「● 有受保護」疊在一起——
   清單不到 440 px 時狀態換到字的下面；長的英文字放不下才拆 */
.wg-page .calm-list{container-type:inline-size}
.wg-page .calm-row .calm-text small{overflow-wrap:break-word}
@container (max-width:440px){
 .wg-page .calm-row[data-row=self]{grid-template-columns:auto minmax(0,1fr) auto}
 .wg-page .calm-row[data-row=self]>.calm-value{grid-column:2;grid-row:2;justify-self:start}
}
