/* Shared protected surface; contents and business labels arrive only after page authorization. */
.profile-button .avatar { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.protected-overlay {position:fixed;inset:0;z-index:2000;background:#fafbfd;overflow:auto;overscroll-behavior:contain;color:#181b24;}
.protected-header {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px clamp(20px,5vw,80px);border-bottom:1px solid #e7eaf0;background:#ffffffed;backdrop-filter:blur(16px);}
.protected-header h2 {margin:0;font-size:24px;}
.protected-content {max-width:1200px;margin:0 auto;padding:36px clamp(20px,4vw,60px);}
.protected-login {max-width:440px;margin:5vh auto;display:flex;flex-direction:column;gap:22px;padding:32px;background:white;border:1px solid #e5e9f2;border-radius:22px;box-shadow:0 12px 50px #19284a08;}
.protected-login label {display:flex;flex-direction:column;gap:10px;font-size:14px;color:#596376;}
.protected-login input {width:100%;min-height:48px;border:1px solid #dbe1eb;border-radius:10px;padding:12px;color:#181b24;background:white;}
.protected-login input:focus-visible {outline:3px solid #dfe6ff;border-color:#657eec;}
.protected-login .form-error:empty {display:none;}
.protected-message {color:#78839a;line-height:1.7;}
.protected-tabs {display:flex;gap:10px;flex-wrap:wrap;margin:24px 0;}
.protected-body {min-height:240px;}
.recovery-code {display:block;max-width:720px;overflow-wrap:anywhere;padding:24px;margin:24px 0;background:white;border:1px solid #dbe1eb;border-radius:14px;font-size:20px;line-height:1.8;user-select:all;}
@media(max-width:650px){.protected-header{padding:16px 20px}.protected-login{margin:12px 0;padding:24px}.protected-content{padding-top:20px}}

.protected-totals{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0}.protected-totals .panel{min-width:180px;display:grid;gap:12px;padding:24px}.protected-totals strong{font-size:30px;font-weight:650;font-variant-numeric:tabular-nums}.protected-records{display:grid;gap:16px;margin-top:20px}.protected-record{display:flex;align-items:center;gap:24px;padding:24px}.protected-record dl{display:flex;gap:24px;flex:1;flex-wrap:wrap;margin:0}.protected-record dt{font-size:12px;color:#8992a3;margin-bottom:8px}.protected-record dd{margin:0;font-variant-numeric:tabular-nums}.protected-editor{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:28px}.protected-editor h3,.protected-editor .form-error,.protected-editor .row{grid-column:1/-1}.protected-editor label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#6f798c}.protected-editor input,.protected-editor select,.protected-editor textarea{padding:12px;border:1px solid #dce2ed;border-radius:10px;background:white;min-width:0;width:100%;font:inherit;color:#202634}.protected-record:hover{border-color:#c7d1e7;box-shadow:0 8px 30px #14265908}.protected-record{transition:border-color .16s,box-shadow .16s}@media(max-width:650px){.protected-editor{grid-template-columns:1fr;padding:20px}.protected-record{align-items:flex-start}.protected-record dl{display:grid;grid-template-columns:1fr 1fr;gap:16px}.protected-totals .panel{min-width:140px}.protected-totals strong{font-size:24px}}@media(prefers-reduced-motion:reduce){.protected-record{transition:none}}

.protected-batch{padding:28px}.protected-batch-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;align-items:end;margin:20px 0}.protected-batch-row label{display:grid;gap:10px}.protected-batch-row input{min-width:0;width:100%;padding:12px;border:1px solid #dce2ed;border-radius:10px;background:#fff;font:inherit}@media(max-width:650px){.protected-batch-row{grid-template-columns:1fr 1fr}.protected-batch-row span{grid-column:1/-1}.protected-batch{padding:20px}}

.protected-record dl>div:first-child dd{font-weight:600}@media(max-width:650px){.protected-record dl>div:first-child{grid-column:1/-1}}

.protected-filters{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.protected-filters label{display:grid;gap:6px;min-width:120px;font-size:12px;color:var(--muted)}.protected-filters select{padding:9px 28px 9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}.protected-record{transition:border-color .18s,box-shadow .18s}.protected-record:hover{border-color:#aebce5;box-shadow:0 8px 26px #24345b08}.protected-note{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.protected-note summary{cursor:pointer;font-size:13px;color:var(--muted)}.protected-note summary:hover{color:var(--text)}.protected-note p{white-space:pre-wrap;overflow-wrap:anywhere}.protected-record .row{flex-wrap:wrap}.protected-filters+ .protected-records{margin-top:12px}@media(prefers-reduced-motion:reduce){.protected-record{transition:none}}

.protected-field-group{border:1px solid #e1e5ee;border-radius:14px;padding:18px;margin:8px 0;background:#fff;min-width:0}.protected-field-group>div,.protected-field-group>label{display:grid;gap:12px}.protected-field-group input[type=checkbox]{width:auto;min-height:0;margin-right:8px}.protected-field-group>div[hidden]{display:none}.protected-repeat{display:grid;gap:8px}.protected-editor label:has(>.protected-repeat),.protected-editor label:has(>.protected-field-group){grid-column:1/-1}.protected-field-group label{display:grid;gap:6px}.protected-field-group input,.protected-field-group select,.protected-field-group textarea{width:100%;box-sizing:border-box}.protected-field-group label:has(>input[type=checkbox]){display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end}.protected-records:empty{display:none}

.protected-estimate{margin:24px 0;padding:26px 0;border-bottom:1px solid var(--line);display:grid;gap:12px}.protected-estimate strong{font-size:clamp(28px,5vw,48px);letter-spacing:-1.2px;line-height:1.1;font-variant-numeric:tabular-nums}.protected-estimate small{color:var(--muted)}.protected-search{display:flex;gap:8px;margin:16px 0}.protected-search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;background:white}.protected-secret{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.protected-secret code{overflow-wrap:anywhere;white-space:pre-wrap;flex:1;min-width:120px}.protected-image{display:block;max-width:100%;max-height:560px;object-fit:contain;margin:16px 0}.protected-pair small{color:var(--muted)}.protected-pair p{white-space:pre-wrap;overflow-wrap:anywhere}

.protected-field{display:grid;gap:7px}.protected-field[hidden]{display:none}.protected-editor>.protected-field:has(>.protected-repeat),.protected-editor>.protected-field:has(>.protected-field-group){grid-column:1/-1}.protected-field-group>.protected-field{margin:8px 0}

.protected-tabs button[aria-current=true]{background:#181b23;color:#fff;border-color:#181b23}.protected-tabs button{transition:background .15s,color .15s,border-color .15s}.protected-content button:focus-visible,.protected-content summary:focus-visible{outline:3px solid #94a8ed;outline-offset:3px}.protected-content .protected-field input:focus,.protected-content .protected-field textarea:focus,.protected-content .protected-field select:focus{border-color:#8b9cdc;box-shadow:0 0 0 3px #8b9cdc18}

.protected-totals:empty,.protected-filters:empty{display:none;margin:0}.protected-editor>label:has(>input[type=checkbox]){flex-direction:row-reverse;align-items:center;justify-content:flex-end}.protected-editor input[type=checkbox]{width:auto}

.has-protected-talk .assistant-fab,.has-protected-talk .assistant-dock{z-index:2100}.talks-protected-label{display:flex;align-items:center;gap:6px;background:#f1f4ff;border-bottom:1px solid #dee4f3;padding:9px 18px;font-size:11px;color:#536493}.talks-protected-label .icon{width:13px;height:13px}.chat-message.protected .chat-label:after{content:'受保护';color:#7584a1;font-size:10px}.has-protected-talk .dock-head small{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-protected-talk .assistant-dock,.has-protected-talk .assistant-fab{z-index:2100}
