.action-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.action-heading h3{margin-bottom:6px}
#toast{margin:0;right:auto;bottom:auto;border:0;max-height:none;overflow-wrap:anywhere;pointer-events:none}
#toast::backdrop{display:none}
.action-heading .primary{white-space:nowrap}
.action-dialog{border:1px solid #e6ece6;border-radius:20px;box-shadow:0 26px 85px #142b2233,0 3px 12px #142b220a;background:#fafcfa;max-height:min(85dvh,780px);overflow-y:auto;width:min(620px,calc(100vw - 28px));padding:30px}
.action-dialog::backdrop{background:rgba(18,36,28,.5);backdrop-filter:blur(3px)}
.action-dialog h2{font-size:19px;margin:0 0 8px}
.action-dialog p{font-size:12px}
.action-dialog label{margin:0;font-weight:600;color:#435548}
.action-dialog .form-grid{margin:22px 0;gap:16px}
.action-dialog input,.action-dialog select{background:#f4f7f4;border:1px solid #dce7dd;box-shadow:inset 2px 2px 5px #d5e0d878,inset -2px -2px 5px #fff;border-radius:11px;margin-top:8px}
.action-dialog input:focus,.action-dialog select:focus{outline:2px solid #80b196;outline-offset:1px;background:#fff}
.action-dialog .dialog-actions{margin-top:24px}
.action-dialog .copy-result{margin:22px 0 0;border:1px solid #dfebdf;border-radius:10px;max-width:100%;word-break:break-all}
.mode-dialog{max-width:480px}
.mode-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;width:100%;border:1px solid #dce9df;background:#fff;margin-top:12px;padding:16px;border-radius:12px;box-shadow:4px 4px 9px #dfe8df99,-3px -3px 7px #fff}
.mode-option:hover,.mode-option:focus-visible{border-color:#4c9b70;background:#f4faf6}
.mode-option strong{font-size:14px}
.mode-option span{font-size:12px;line-height:1.6;color:var(--muted)}
.full-option strong{color:#9f4d22}
.approval-picker{border:0;color:#4b7059;padding:6px 9px;font-size:11px;background:#f2f6f1;border-radius:8px;white-space:nowrap}
.approval-picker.full-access{color:#a45024;background:#fff1e6}
.approval-mode-note{font-size:10px;color:var(--muted);margin:8px 0 0;line-height:1.5}
.invited-email{background:#f1f6f1;padding:10px 13px;border:1px solid #e0eae2;border-radius:9px;color:#315c43;font-size:13px;word-break:break-all}
.compose-bottom{flex-wrap:wrap}
@media(max-width:600px){.action-heading{align-items:flex-start;flex-direction:column}.action-dialog{padding:22px 17px}.action-dialog .form-grid{grid-template-columns:1fr}.compose-bottom{gap:7px}.approval-picker{order:1}.compose-bottom #send{order:2}}
#site-dialog.site-dialog{width:min(560px,calc(100vw - 28px));max-width:560px;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 24px 80px #0f172a26;letter-spacing:0;max-height:calc(100dvh - 32px)}
.site-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px 28px 0}
.site-dialog .site-dialog-eyebrow{font-size:11px;color:var(--muted);margin:0 0 5px}
.site-dialog h2{font-size:20px;line-height:1.4;margin:0;letter-spacing:0}
.site-dialog .site-dialog-dismiss{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--muted);border-radius:6px}
.site-dialog-dismiss [data-icon]{transform:rotate(45deg)}
.site-dialog .site-auth-tabs{display:flex;gap:4px;margin:20px 28px 0;padding:4px;background:var(--soft);border:1px solid var(--line);border-radius:6px}
.site-auth-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid transparent;border-radius:4px;background:transparent;padding:8px;font-size:13px;color:var(--muted)}
.site-auth-tabs button[aria-selected="true"]{border-color:var(--line);background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px #0f172a08}
.site-auth-tabs button[aria-selected="true"] [data-icon]{color:var(--green)}
#site-key-panel,#site-qr-panel,#site-token-panel{padding:0 28px}
#site-token-panel .site-token-secret{grid-column:1/-1}
#site-token-status,#site-token-expiry,#site-token-selection{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#site-token-error{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#site-token-editor-consent{margin:12px 0 18px;padding:12px;border:1px solid #cce9dd;border-radius:7px;background:#f4fbf7}
#site-token-editor-consent label{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;font-weight:600}
#site-token-editor-enable{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;padding:0;box-shadow:none;accent-color:var(--green)}
#site-token-editor-consent p{margin:8px 0;color:var(--muted);font-size:11px;line-height:1.8}
#site-token-editor-origin{display:block;font-size:10px;overflow-wrap:anywhere;color:var(--muted)}
.site-token-form{margin-top:22px}
.site-dialog .site-token-form .form-grid{margin:0 0 14px}
.site-token-verification-row{display:flex;align-items:center;gap:14px}
.site-token-verify{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;min-height:38px;padding:9px 15px;white-space:nowrap}
.site-token-verify [data-icon]{width:15px;height:15px}
#site-token-status{min-width:0;margin:0;color:var(--muted)}
#site-token-status:empty{display:none}
#site-token-status:not(:empty){display:flex;align-items:center;gap:7px}
#site-token-status:not(:empty)::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#94a3b8}
.site-token-verified{display:flex;align-items:center;gap:8px;min-width:0}
.site-token-verified>div{min-width:0}
.site-token-verified-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;border-radius:50%;background:#059669;color:#fff}
.site-token-verified-icon [data-icon]{width:14px;height:14px}
.site-token-verified strong{display:block;color:#065f46;font-size:12px;line-height:1.5}
.site-token-verified #site-token-expiry{margin:2px 0 0;color:#4b7a63;font-size:11px;line-height:1.5}
.site-token-sites-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:0 2px;font-size:11px}
.site-token-sites-heading .site-qr-select-all{color:var(--ink);font-weight:600}
.site-token-sites-heading #site-token-total{font-size:11px;white-space:nowrap}
.site-token-sites-frame{margin-top:9px;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}
.site-token-sites-frame .site-qr-sites{max-height:218px;margin:0;border:0;padding:0 12px;scrollbar-color:#cbd5e1 transparent}
.site-token-sites-frame .site-qr-site{padding:12px 2px}
.site-token-selection-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px}
.site-token-selection-row p{margin:0;font-size:11px}
.site-token-selection-hint{color:#94a3b8;font-size:10px;white-space:nowrap}
.task-auth-token-form{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.task-auth-token-form input{flex:1;min-width:0;width:100%;font-size:13px}
.task-auth-token-form button{font-size:12px}
.task-auth-card[data-auth-type="token"] .task-auth-body{display:none}
.task-auth-card.resolved .task-auth-token-form,.task-auth-card.failed .task-auth-token-form{display:none}
@media(max-width:480px){#site-token-panel{padding:0 20px}.site-auth-tabs button{gap:4px;padding:8px 4px;font-size:12px}.task-auth-token-form button{min-height:36px}.site-token-sites-frame .site-qr-sites{max-height:190px}.site-token-selection-hint{display:none}}
@media(max-width:380px){.site-auth-tabs button{white-space:nowrap}.site-auth-tabs button [data-icon]{display:none}}
.site-dialog .form-grid{gap:18px;margin:24px 0 18px}
.site-dialog label{font-size:12px;color:var(--ink)}
.site-dialog input:not([type="checkbox"]){border:1px solid var(--line);border-radius:5px;background:#fff;box-shadow:none;min-height:40px;margin-top:7px;padding:10px 12px;font-size:13px}
.site-dialog input:not([type="checkbox"]):focus{outline:2px solid #05966926;border-color:var(--green)}
.site-key-hint{display:flex;align-items:center;gap:7px;margin:0;font-size:11px!important}
.site-qr-steps{display:flex;justify-content:space-between;gap:12px;padding:0;list-style:none;margin:22px 0 24px}
.site-qr-steps li{display:flex;align-items:center;gap:7px;font-size:11px;color:#94a3b8;white-space:nowrap}
.site-qr-steps li span{width:20px;height:20px;display:grid;place-items:center;border:1px solid var(--line);border-radius:4px;font:11px var(--mono)}
.site-qr-steps li[data-state="current"]{color:var(--green);font-weight:600}
.site-qr-steps li[data-state="current"] span{background:#ecfdf5;border-color:#a7f3d0}
.site-qr-steps li[data-state="done"]{color:var(--ink)}
.site-qr-steps li[data-state="done"] span{color:var(--green);background:var(--soft)}
.site-qr-scan{text-align:center;padding:0 0 8px}
.site-qr-image{position:relative;width:232px;height:232px;max-width:100%;margin:0 auto;display:grid;place-items:center;background:#fff;border:1px solid var(--line);padding:11px;border-radius:6px;overflow:hidden}
.site-qr-image img{display:block;width:208px;height:208px;max-width:100%;object-fit:contain}
.site-qr-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--soft);color:var(--muted);font-size:12px}
.site-qr-spinner{width:24px;height:24px;color:var(--green);animation:site-qr-spin 1.4s linear infinite}
#site-qr-panel[data-phase="error"] .site-qr-spinner{animation:none;color:var(--muted)}
.site-qr-confirmation{position:absolute;inset:0;background:#fffffff5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:12px;color:var(--muted)}
.site-qr-confirmation>[data-icon]{width:38px;height:38px;color:var(--green)}
.site-qr-confirmation>[data-icon] svg{width:38px;height:38px}
.site-qr-confirmation strong{color:var(--ink);font-size:15px}
.site-qr-state{margin-top:18px;min-height:44px}
.site-qr-state p{font-size:14px;font-weight:600;line-height:1.5;margin:0 0 5px;color:var(--ink)}
.site-qr-state>span{font:11px/1.5 var(--mono)}
.site-qr-guidance{text-align:center;color:var(--muted);line-height:1.9;margin:14px 0 0;font-size:12px}
.site-qr-guidance a{display:inline-flex;align-items:center;gap:3px;color:var(--green);text-decoration:none;margin:0 4px}
.site-qr-guidance a:hover{text-decoration:underline}
.site-qr-guidance a [data-icon]{width:12px;height:12px;transform:rotate(-45deg)}
.site-qr-account{display:flex;align-items:flex-start;gap:12px;padding:0 0 20px;margin:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.site-qr-account-icon{width:32px;height:32px;display:grid;place-items:center;background:#ecfdf5;color:var(--green);border:1px solid #a7f3d0;border-radius:6px}
.site-qr-account>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.site-qr-account-label{color:var(--muted);font-size:11px}
#site-qr-account{font-size:15px;line-height:1.5;font-weight:600}
#site-qr-expiry{font-size:11px;line-height:1.6}
.site-qr-account-badge{color:var(--green);font-size:11px;padding:3px 7px;background:#ecfdf5;border-radius:4px;white-space:nowrap}
#site-qr-sync{font-size:12px;color:var(--green);background:#f0fdf4;padding:9px 12px;border-left:2px solid #86efac;margin:16px 0;line-height:1.7}
.site-qr-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px}
.site-dialog .site-qr-select-all,.site-dialog .site-qr-site{display:flex;align-items:center;gap:11px;font-size:12px;font-weight:400}
.site-dialog .site-qr-select-all input,.site-dialog .site-qr-site input{width:16px;height:16px;flex:0 0 16px;margin:0;padding:0;box-shadow:none;border-radius:3px;accent-color:var(--green)}
.site-qr-sites{max-height:260px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:12px 0 0;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}
.site-dialog .site-qr-site{padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}
.site-qr-site:last-child{border-bottom:0}
.site-qr-site-info{flex:1;min-width:0}
.site-qr-site span{min-width:0;overflow-wrap:anywhere}
.site-qr-site-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.site-qr-site strong{font-size:12px;font-weight:600;line-height:1.6}
.site-qr-site small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:3px}
.site-qr-site .site-qr-site-ids{color:#94a3b8;font:10px/1.6 var(--mono)}
.site-qr-site-reason{font-size:10px;color:var(--muted);line-height:1.6}
.site-dialog .site-qr-site[data-unavailable="true"]{cursor:default}
.site-qr-site[data-unavailable="true"] strong{color:var(--muted)}
.site-qr-selection-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;margin:10px 0 0}
.site-qr-selection-row p{margin:0;font-size:11px}
#site-qr-switch{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;font-size:11px;color:var(--muted);padding:6px 0;flex:none}
#site-qr-switch:hover{color:var(--green)}
#site-qr-switch [data-icon]{width:13px;height:13px}
#site-qr-error{overflow-wrap:anywhere;margin:14px 0 0;padding:10px 12px;background:#fef2f2;border-left:2px solid #fca5a5;line-height:1.7;font-size:12px}
.site-dialog .site-dialog-footer{margin:24px -28px 0;padding:16px 28px;border-top:1px solid var(--line);background:var(--soft);display:flex;align-items:center;gap:8px}
.site-dialog-footer button{font-size:12px;min-height:36px;border-radius:5px;padding:8px 13px}
.site-dialog-security{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;margin-right:auto}
.site-dialog-security [data-icon]{width:12px;height:12px}
@keyframes site-qr-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.site-qr-spinner{animation:none}}
@media(max-width:480px){.site-dialog-header{padding:20px 20px 0}.site-dialog .site-auth-tabs{margin:18px 20px 0}#site-key-panel,#site-qr-panel{padding:0 20px}.site-dialog .site-dialog-footer{margin:20px -20px 0;padding:14px 20px;flex-wrap:wrap}.site-dialog-security{flex:1 0 100%;margin-bottom:2px}.site-dialog-footer button:first-of-type{margin-left:auto}.site-qr-steps{gap:8px}.site-qr-steps li{gap:5px;font-size:10px}.site-qr-account{gap:9px}.site-qr-sites{max-height:210px}.site-qr-site-heading{gap:4px}.site-qr-account-badge{font-size:10px}}
.sites-batch{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0 18px}
.sites-batch label{display:inline-flex;align-items:center;gap:8px;font-size:12px}
.sites-batch button{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.sites-batch input,#sites-list input[type="checkbox"]{width:16px;height:16px;margin:0;accent-color:var(--green);flex:0 0 16px}
#sites-list td:has(input[type="checkbox"]),#sites-list th:first-child:empty{width:36px}
.task-auth-card{margin:18px 0;padding:18px;border:1px solid #a7f3d0;border-radius:14px;background:#f6fef9;max-width:470px}
.task-auth-card.resolved{border-color:#bbf7d0;background:#f0fdf4}
.task-auth-card.failed{border-color:#fecaca;background:#fef2f2}
.task-auth-title{font-size:13px;font-weight:600;color:#065f46}
.task-auth-body{display:flex;gap:16px;align-items:flex-start;margin-top:14px}
.task-auth-frame{position:relative;width:132px;height:132px;flex:none;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.task-auth-image{width:116px;height:116px;display:block}
.task-auth-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;font-size:11px;color:var(--muted);background:var(--soft)}
.task-auth-info{min-width:0;display:flex;flex-direction:column;gap:8px}
.task-auth-status{font-size:12px;font-weight:600;color:#065f46;line-height:1.6}
.task-auth-hint{font-size:11px;color:var(--muted);line-height:1.8}
.task-auth-hint a{color:var(--green);text-decoration:none;font-weight:600;margin:0 3px}
.task-auth-hint a:hover{text-decoration:underline}
.task-auth-note{font-size:11px;color:#94a3b8;line-height:1.7}
.task-auth-card.resolved .task-auth-frame,.task-auth-card.failed .task-auth-frame,
.task-auth-card.resolved .task-auth-hint,.task-auth-card.failed .task-auth-hint,
.task-auth-card.resolved .task-auth-note,.task-auth-card.failed .task-auth-note{display:none}
.task-auth-card.resolved .task-auth-body,.task-auth-card.failed .task-auth-body{margin-top:8px}
@media(max-width:600px){.task-auth-body{flex-direction:column;gap:12px}.task-auth-frame{margin:0 auto}.task-auth-info{text-align:center;align-items:center}}
