/* 总权限后台：独立作用域，沿用已确认的手机单栏与纸面白卡。 */
body[data-portal-view="accounts"]{background:#f2f3ee;color:#344539}
.account-admin-page{width:100%;max-width:520px;min-height:100svh;margin:0 auto;padding-bottom:calc(88px + env(safe-area-inset-bottom));background:#f6f7f3;box-shadow:0 0 50px #14231c08;font-family:var(--sans,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif);color:#344539;box-sizing:border-box}
.account-admin-page *{box-sizing:border-box}
.account-admin-page h1,.account-admin-page h2,.account-admin-page p,.account-admin-page dl,.account-admin-page dd{margin:0}
.account-admin-page button,.account-admin-page input,.account-admin-page select{font-family:inherit;-webkit-tap-highlight-color:transparent}
.account-admin-page button{cursor:pointer}
.account-admin-page button:focus-visible,.account-admin-page input:focus-visible,.account-admin-page select:focus-visible,.account-admin-table-scroll:focus-visible{outline:2px solid #97aa83;outline-offset:3px}
.account-admin-hero{min-height:222px;padding:17px 22px 34px;background:linear-gradient(90deg,#1d2a21bd,#26332977 65%,#1e2a2240),url('/portal-art/home-heritage-v2.jpg') 75% 60%/cover;color:#fffdf5}
.account-admin-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.account-admin-back{display:inline-flex;align-items:center;gap:3px;min-height:38px;margin-left:-7px;padding:0;border:0;background:none;color:#fffdf4;font-size:12px;line-height:1.5}
.account-admin-back svg{display:block;width:20px;height:20px;flex:none}
.account-admin-brand{display:flex;align-items:center;flex-direction:column;gap:2px;flex:none;width:116px}
.account-admin-brand img{display:block;width:116px;height:38px;object-fit:contain;filter:brightness(0) invert(1)}
.account-admin-brand>span{font-size:9px;line-height:1.5;letter-spacing:.08em;color:#fffdf1}
.account-admin-intro{margin-top:24px}
.account-admin-intro>span{font-size:10px;line-height:1.5;letter-spacing:.12em;color:#e3e9d9}
.account-admin-page .account-admin-intro h1{margin:6px 0;font:400 29px/1.4 "Kaiti SC","STKaiti","Songti SC",serif;letter-spacing:.08em;color:#fffdf5}
.account-admin-intro p{font-size:11px;line-height:1.7;color:#f0f1e8}
.account-admin-content{position:relative;min-width:0;margin-top:-17px;padding:0 18px}
.account-admin-card{min-width:0;max-width:100%;margin-bottom:13px;padding:20px 18px;border:1px solid #eaecdf;border-radius:11px;background:#fff;box-shadow:0 3px 12px #27362903}
.account-admin-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 10px;margin-bottom:15px}
.account-admin-section-heading h2{font-size:15px;line-height:1.6;font-weight:500;color:#506c42}
.account-admin-section-heading>span:not(.account-admin-status){font-size:10px;line-height:1.7;color:#9ca68d}
.account-admin-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid #e7ebdf;border-radius:8px;background:#f8f9f5}
.account-admin-filters button{min-width:0;padding:7px 3px;border:0;border-radius:5px;background:none;color:#8a967d;font-size:12px;line-height:1.6}
.account-admin-filters button[aria-pressed="true"]{background:#e9f0df;color:#6b8457}
.account-admin-search{display:flex;gap:8px;margin-top:14px;min-width:0}
.account-admin-search input{min-width:0;max-width:100%;width:100%;min-height:39px;padding:8px 10px;border:1px solid #e2e7d9;border-radius:6px;background:#f8f9f5;color:#718560;font-size:12px;line-height:1.6}
.account-admin-search input::placeholder{color:#a3ad96}
.account-admin-search button{flex:none;padding:8px 12px;border:1px solid #dce5cf;border-radius:6px;background:#eff4e8;color:#7d916a;font-size:12px;line-height:1.6}
.account-admin-scroll-hint{padding:12px 0 8px;color:#a0a78e;font-size:10px;line-height:1.7}
.account-admin-table-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e7ebdf;border-radius:7px;overscroll-behavior-x:contain}
.account-admin-table{width:850px;min-width:850px;border-collapse:collapse;text-align:left;font-size:11px;line-height:1.7;table-layout:fixed}
.account-admin-table th{padding:11px 10px;background:#f2f6eb;font-weight:500;color:#6b805c;white-space:normal}
.account-admin-table td{padding:12px 10px;border-top:1px solid #edf0e7;vertical-align:middle;color:#718167;overflow-wrap:anywhere}
.account-admin-table th:first-child{width:156px}.account-admin-table th:nth-child(2){width:150px}.account-admin-table th:nth-child(3){width:90px}.account-admin-table th:nth-child(4),.account-admin-table th:nth-child(5){width:113px}.account-admin-table th:nth-child(6){width:100px}.account-admin-table th:last-child{width:78px}
.account-admin-table td>strong{display:block;font-weight:500;color:#718663}.account-admin-table td>small{display:block;margin-top:3px;font-size:10px;color:#a2ab96}
.account-admin-status{display:inline-flex;max-width:100%;padding:2px 7px;border:1px solid #e0e8d5;border-radius:4px;background:#f1f6e9;color:#84996d;font-size:10px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
.account-admin-status[data-status="pending"],.account-admin-status[data-status="not-started"]{border-color:#e8e0cb;background:#f9f6eb;color:#ad9a6b}
.account-admin-status[data-status="disabled"],.account-admin-status[data-status="expired"]{border-color:#e9ded4;background:#f8f1ea;color:#b39781}
.account-admin-row-action{min-height:34px;padding:5px 8px;border:1px solid #dfe7d2;border-radius:5px;background:#f4f8ed;color:#80986a;font-size:11px;line-height:1.7;white-space:nowrap}
.account-admin-empty{padding:25px 10px;text-align:center}
.account-admin-empty>strong{display:block;color:#80916e;font-size:14px;font-weight:500;line-height:1.8}
.account-admin-empty>span{display:block;margin-top:8px;font-size:11px;line-height:1.9;color:#a0a88f}
.account-admin-empty>button{min-height:38px;margin-top:15px;padding:7px 14px;border:1px solid #dfe7d2;border-radius:6px;background:#f2f6e9;color:#82966e;font-size:12px}
.account-admin-facts{display:grid;gap:0;min-width:0}
.account-admin-facts>div{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf0e6}
.account-admin-facts>div:last-child{border-bottom:0}
.account-admin-facts dt{font-size:11px;line-height:1.8;color:#a0a88f}
.account-admin-facts dd{min-width:0;font-size:12px;line-height:1.8;color:#6d805f;overflow-wrap:anywhere}
.account-admin-readonly{color:#98a184;font-size:12px;line-height:1.95}
.account-admin-field{display:block;min-width:0;margin-bottom:14px}
.account-admin-field>span{display:block;margin-bottom:7px;color:#8b9b7b;font-size:11px;line-height:1.7}
.account-admin-field input,.account-admin-field select{display:block;width:100%;min-width:0;max-width:100%;min-height:42px;padding:9px 10px;border:1px solid #e2e7d9;border-radius:7px;background:#f8f9f5;color:#6c805c;font-size:13px;line-height:1.6;color-scheme:light}
.account-admin-field select option{color:#718560;background:#fff}
.account-admin-date-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.account-admin-default-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin-top:-2px}
.account-admin-default-row small{font-size:10px;line-height:1.8;color:#a0a88f}
.account-admin-default-row button{min-height:32px;padding:5px 0;border:0;background:none;color:#8b9e77;font-size:10px;line-height:1.7}
.account-admin-save{display:block;width:100%;min-height:44px;margin-top:16px;padding:10px 14px;border:1px solid #849c70;border-radius:7px;background:#849c70;color:#fffdf5;font-size:13px;line-height:1.7}
.account-admin-state-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.account-admin-state-card>div{min-width:0;flex:1}
.account-admin-state-card h2{font-size:14px;line-height:1.7;font-weight:500;color:#7e936b}
.account-admin-state-card p{margin-top:6px;font-size:10px;line-height:1.9;color:#a0a88f}
.account-admin-disable{flex:none;min-height:38px;padding:8px 12px;border:1px solid #e8ddcf;border-radius:6px;background:#fbf7ef;color:#af9b7b;font-size:11px;line-height:1.7}
.account-admin-feedback{max-width:100%;margin-bottom:12px!important;padding:11px 13px;border:1px solid #dfe8d4;border-radius:7px;background:#f1f7e9;color:#8b9f76;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.account-admin-feedback.is-error{border-color:#ead8ca;background:#fbf2eb;color:#b2977d}
.account-admin-credit{padding:13px 0 8px;text-align:center}
.account-admin-credit strong{display:block;font-size:11px;line-height:1.7;font-weight:400;letter-spacing:.1em;color:#9ca68d}
.account-admin-credit small{display:block;margin-top:4px;font-size:9px;line-height:1.7;color:#abb29c}
.account-admin-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}
body[data-portal-view="accounts"] .portal-bottom-nav{max-width:520px;min-height:70px;border:0;border-top:1px solid #eef1e6;background:#fffffff5;box-shadow:0 -4px 18px #27332904}
body[data-portal-view="accounts"] .portal-bottom-nav a{font:400 13px/1.5 var(--sans,sans-serif);letter-spacing:.025em;color:#8c9881;background:none}
body[data-portal-view="accounts"] .portal-bottom-nav a:before{display:none}
body[data-portal-view="accounts"] .portal-bottom-nav svg{width:21px;height:21px;stroke-width:1.3}
@media(max-width:360px){.account-admin-hero{padding-inline:18px}.account-admin-content{padding-inline:15px}.account-admin-card{padding-inline:15px}.account-admin-date-row{gap:8px}.account-admin-field input,.account-admin-field select{padding-inline:7px;font-size:12px}}

/* 总权限资料目录：区域、医生与已有用户分层查看；不扩展其他页面。 */
.account-admin-directory-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:13px}
.account-admin-directory-entries>button{min-width:0;padding:17px 13px;border:1px solid #e5eadb;border-radius:10px;background:#fff;text-align:left;color:#6d815d;box-shadow:0 3px 12px #27362903}
.account-admin-directory-entries strong{display:block;font-size:13px;font-weight:500;line-height:1.7}
.account-admin-directory-entries span{display:block;margin-top:6px;color:#9ba68d;font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.account-admin-directory-action{display:block;margin-top:7px}
.account-admin-detail-directory{margin-top:13px;padding-top:12px;border-top:1px solid #edf0e6}
.account-admin-detail-directory .account-admin-directory-action{display:inline-flex;margin:0;align-items:center;justify-content:center;min-height:37px;padding:7px 12px}
.account-admin-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;min-width:0;margin:0 0 13px;padding:10px 12px;border:1px solid #e5eadb;border-radius:8px;background:#fdfef9;font-size:10px;line-height:1.8;color:#a0aa92}
.account-admin-breadcrumbs>button{min-width:0;max-width:100%;padding:3px 0;border:0;background:none;font-size:10px;line-height:1.8;color:#8c9e78;overflow-wrap:anywhere;text-align:left}
.account-admin-breadcrumbs>[aria-current]{min-width:0;max-width:100%;color:#6f855e;overflow-wrap:anywhere}
.account-admin-directory-note{margin-top:13px!important;color:#9aa58c;font-size:11px;line-height:1.95;overflow-wrap:anywhere}
.account-admin-doctors-table{width:1040px;min-width:1040px}
.account-admin-doctors-table th:first-child{width:160px}.account-admin-doctors-table th:nth-child(2){width:155px}.account-admin-doctors-table th:nth-child(3){width:80px}.account-admin-doctors-table th:nth-child(4){width:100px}.account-admin-doctors-table th:nth-child(5){width:100px}.account-admin-doctors-table th:last-child{width:310px}
.account-admin-users-table{width:950px;min-width:950px}
.account-admin-users-table th:first-child{width:140px}.account-admin-users-table th:nth-child(2){width:65px}.account-admin-users-table th:nth-child(3){width:115px}.account-admin-users-table th:nth-child(4){width:160px}.account-admin-users-table th:nth-child(5){width:160px}.account-admin-users-table th:nth-child(6){width:160px}.account-admin-users-table th:last-child{width:100px}
.account-admin-assignment{display:flex;align-items:center;gap:8px;min-width:0}
.account-admin-assignment select{display:block;min-width:0;max-width:100%;width:170px;min-height:34px;padding:6px 8px;border:1px solid #e0e8d4;border-radius:5px;background:#f8faf4;color:#7e926c;font-size:11px;line-height:1.7;color-scheme:light}
.account-admin-assignment button{flex:none;min-height:34px;padding:6px 9px;border:1px solid #dce7cd;border-radius:5px;background:#eff6e6;color:#839b6c;font-size:11px;line-height:1.7}
.account-admin-unassign{min-height:28px;margin-top:6px;padding:4px 0;border:0;background:none;color:#ac9c80;font-size:10px;line-height:1.7}
.account-admin-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-top:14px;padding:8px 12px;border:1px solid #e0e7d4;border-radius:6px;background:#f5f8ef;color:#84986f;font-size:11px;line-height:1.7}
@media(max-width:360px){.account-admin-directory-entries{gap:8px}.account-admin-directory-entries>button{padding-inline:11px}.account-admin-directory-entries strong{font-size:12px}}

/* 关系表直接展示名单；三个目录入口纵向排列，不挤成横向按钮行。 */
.account-admin-directory-entries{grid-template-columns:minmax(0,1fr)}
.account-admin-directory-entries>button{padding:14px 15px}
.account-admin-directory-entries span{margin-top:4px}
.account-admin-regions-table{width:830px;min-width:830px}
.account-admin-regions-table th:first-child{width:180px}.account-admin-regions-table th:nth-child(2){width:420px}.account-admin-regions-table th:nth-child(3){width:90px}.account-admin-regions-table th:last-child{width:110px}
.account-admin-doctors-table{width:1280px;min-width:1280px}
.account-admin-doctors-table th:first-child{width:160px}.account-admin-doctors-table th:nth-child(2){width:150px}.account-admin-doctors-table th:nth-child(3){width:275px}.account-admin-doctors-table th:nth-child(4){width:80px}.account-admin-doctors-table th:nth-child(5){width:100px}.account-admin-doctors-table th:nth-child(6){width:105px}.account-admin-doctors-table th:last-child{width:310px}
.account-admin-related-list{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-width:0}
.account-admin-linked-person{display:block;min-width:0;max-width:100%;padding:5px 8px;border:1px solid #e2ead8;border-radius:5px;background:#f6faf0;color:#7f9569;font-size:11px;line-height:1.8;text-align:left;overflow-wrap:anywhere}
.account-admin-linked-person>strong{display:block;font-weight:500}
.account-admin-linked-person>small{display:block;margin-top:2px;color:#a0ad91;font-size:10px;line-height:1.7}
.account-admin-related-empty{color:#a1aa92;font-size:11px;line-height:1.8}
.account-admin-related-more{width:100%;min-width:0;margin-top:3px;font-size:10px;line-height:1.8;color:#9baa8b}
.account-admin-related-more>summary{cursor:pointer;padding:3px 0}
.account-admin-related-more>.account-admin-linked-person{margin-top:6px}
.account-admin-related-all{min-height:28px;margin-top:2px;padding:4px 0;border:0;background:none;color:#94a680;font-size:10px;line-height:1.8;text-align:left}

/* 用户资料只读补充：先天文字表与采购明细，不放先天图形或推荐卡。 */
.account-admin-record-empty{color:#9aa58c;font-size:12px;line-height:1.9}
.account-admin-natal-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;border:1px solid #e4ead9;border-radius:7px}
.account-admin-natal-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.85;text-align:left}
.account-admin-natal-table th,.account-admin-natal-table td{padding:10px 12px;border-bottom:1px solid #edf0e6;overflow-wrap:anywhere}
.account-admin-natal-table thead th{background:#f2f6eb;color:#799063;font-weight:500}
.account-admin-natal-table th:first-child{width:29%}
.account-admin-natal-table tbody th{background:#fafbf7;color:#98a587;font-size:11px;font-weight:400}
.account-admin-natal-table td{color:#7d9368}
.account-admin-natal-table tbody tr:last-child th,.account-admin-natal-table tbody tr:last-child td{border-bottom:0}
.account-admin-natal-reading{margin-top:18px;padding-top:16px;border-top:1px solid #edf0e6}
.account-admin-natal-reading h3{margin:0 0 8px;font-size:13px;line-height:1.7;font-weight:500;color:#81966f}
.account-admin-natal-reading p,.account-admin-natal-summary p{font-size:12px;line-height:2;color:#93a184;overflow-wrap:anywhere}
.account-admin-natal-symptoms{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin-top:12px}
.account-admin-natal-symptoms>span{min-width:0;max-width:100%;padding:4px 8px;border:1px solid #e3ead8;border-radius:4px;background:#f6f9f0;color:#96a685;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.account-admin-natal-summary{margin-top:13px;padding:11px 12px;border-left:2px solid #cad8b8;border-radius:0 5px 5px 0;background:#f5f8ee}
.account-admin-report-details{margin-top:17px;padding-top:13px;border-top:1px solid #e9eedf;color:#a0ad91;font-size:11px;line-height:1.9}
.account-admin-report-details>summary{cursor:pointer;color:#8fa17b}
.account-admin-report-details .account-admin-natal-reading{margin-top:13px;padding-top:12px}
.account-admin-purchase-table{width:900px;min-width:900px}
.account-admin-purchase-table th:first-child{width:225px}.account-admin-purchase-table th:nth-child(2){width:135px}.account-admin-purchase-table th:nth-child(3){width:135px}.account-admin-purchase-table th:nth-child(4){width:155px}.account-admin-purchase-table th:last-child{width:205px}
.account-admin-purchase-table tfoot th,.account-admin-purchase-table tfoot td{padding:12px 10px;border-top:1px solid #e1e9d6;background:#f5f8ef;color:#7a9166;font-size:12px;line-height:1.8;font-weight:500}
.account-admin-purchase-note{display:block;margin-top:4px;color:#a4ad96;font-size:10px;line-height:1.8}

/* Excel导出放在原卡片内的小操作行，不改变手机栏宽与正文比例。 */
.account-admin-export-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;margin:0 0 14px}
.account-admin-facts+.account-admin-export-actions{margin-top:15px;margin-bottom:0}
.account-admin-export-actions>button{flex:1 1 110px;min-width:0;max-width:100%;min-height:37px;padding:8px 10px;border:1px solid #dfe7d3;border-radius:6px;background:#f3f7ec;color:#81966c;font-size:11px;line-height:1.7;text-align:center;white-space:normal;overflow-wrap:anywhere}
.account-admin-export-actions>button:hover{background:#edf4e3;border-color:#cddcbb}
.account-admin-export-actions>button:disabled{cursor:wait;opacity:.6}

/* 注册申请审批沿用原七列表格，手机号留在姓名列内。 */
.account-admin-filters.has-review-filter{grid-template-columns:repeat(4,minmax(0,1fr))}
.account-admin-status[data-status="rejected"]{border-color:#e9ddd0;background:#faf3eb;color:#ad987c}
.account-admin-table .account-admin-phone{color:#9aaa8b;font-size:10px;line-height:1.8}
.account-admin-reject textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:86px;padding:10px 11px;border:1px solid #e5e8dc;border-radius:7px;background:#fafbf7;color:#819174;font:400 13px/1.9 var(--sans,-apple-system,"PingFang SC",sans-serif);resize:vertical}
.account-admin-reject textarea::placeholder{color:#acb29f;font-size:11px}
.account-admin-reject textarea:focus-visible{outline:2px solid #97aa83;outline-offset:3px}
.account-admin-reject-submit{display:block;width:100%;min-height:41px;margin-top:13px;padding:9px 12px;border:1px solid #e8ddcf;border-radius:7px;background:#faf5ec;color:#ad997a;font-size:12px;line-height:1.7}
