:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#211d1a;background:#f8f4ef;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(125deg,#f8e8dc,#f7f3ec 45%,#e9f0e9)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:#b8581a;text-decoration:none}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fa7215;color:#fff;font-weight:800}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:700;color:#ac8c74}.muted{color:#766d65;line-height:1.65}.hint{color:#93887e;font-size:12px;line-height:1.6}.message{min-height:20px;color:#ae4e28;font-size:13px}.primary-button,.secondary-button{border:1px solid transparent;border-radius:10px;padding:11px 16px;font-weight:700}.primary-button{background:#fa7215;color:white}.secondary-button{background:white;border-color:#e4d9ce;color:#493c32}.access-body{display:grid;place-items:center;padding:24px}.access-card{width:min(100%,480px);background:#fff;border:1px solid #ebe1d7;border-radius:22px;padding:34px;box-shadow:0 18px 70px #4a2d141c}.access-brand,.admin-brand{display:flex;align-items:center;gap:10px;font-weight:750}.access-brand{margin-bottom:42px}.access-card h1{font-size:27px;margin:8px 0 12px}.access-card .muted{font-size:14px}.notice{background:#faf6f1;border:1px solid #ece3d8;border-radius:12px;padding:13px;color:#665b51;font-size:13px;margin:18px 0}.access-card .primary-button,.access-card .secondary-button{width:100%;display:block;text-align:center}.access-divider{border-top:1px solid #eee4db;margin:22px 0}.admin-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px max(24px,calc((100vw - 1080px)/2));background:#fff;border-bottom:1px solid #eee4db}.admin-topbar nav{display:flex;align-items:center;gap:16px}.admin-topbar button{border:0;background:none;color:#7d7167}.admin-shell{max-width:1080px;margin:0 auto;padding:30px 24px 80px}.admin-intro{margin-bottom:24px}.admin-intro h1{font-size:30px;margin:7px 0}.admin-intro .muted{font-size:13px}.admin-panel{background:#fff;border:1px solid #ebe3da;border-radius:18px;padding:22px;margin:15px 0;box-shadow:0 8px 28px #4a2d1409}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.panel-title h2{font-size:17px;margin:0}.panel-title span{font-size:12px;color:#978b7f}.admin-panel label{font-size:13px;font-weight:650}.create-row{display:flex;gap:10px;margin-top:9px}.create-row input,#invite-url{flex:1;min-width:0;border:1px solid #ded4ca;border-radius:10px;padding:11px 12px;background:#fff}.staff-list{display:grid;gap:10px}.staff-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #eee7df;border-radius:12px;padding:14px}.staff-detail{display:grid;gap:5px}.staff-detail small{color:#8d8278}.staff-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.staff-actions button{border:0;background:none;color:#a9521b;font-size:12px}.staff-actions .danger-link{color:#a83e36}.switch-label{display:flex;gap:6px;align-items:center;color:#5e554d}dialog{border:1px solid #eadfd4;border-radius:18px;padding:0;width:min(95vw,540px);box-shadow:0 20px 80px #0003}dialog::backdrop{background:#140c08a6}.dialog-inner{padding:25px}.dialog-inner h2{margin:4px 0 8px}.dialog-inner .muted{font-size:13px}.dialog-inner input{width:100%;font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}:focus-visible{outline:3px solid #e88948;outline-offset:2px}@media(max-width:680px){.access-card{padding:24px}.admin-topbar{padding:13px 16px}.admin-shell{padding:23px 12px}.admin-panel{padding:17px}.panel-title{align-items:flex-start}.panel-title span{line-height:1.4}.create-row,.staff-row{flex-direction:column;align-items:stretch}.staff-actions{justify-content:space-between}}
.load-more{display:block;margin:18px auto 0}
.provider-form input{font:inherit;min-width:0;width:100%;border:1px solid #ded4ca;border-radius:10px;padding:10px 12px;background:#fff}
.access-brand{margin-bottom:28px}.access-section h2{font-size:17px;margin:0 0 14px}.access-section form{display:grid;gap:9px}.access-section label{font-size:13px;font-weight:650}.access-section input{width:100%;border:1px solid #ded4ca;border-radius:10px;padding:11px 12px;background:#fff}.access-section form button{margin-top:7px}.access-section .muted{font-size:13px}.access-section .notice{margin:14px 0 10px}
.provider-form{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px 18px;align-items:center;max-width:650px}.provider-form select{font:inherit;min-width:0;width:100%;border:1px solid #ded4ca;border-radius:10px;padding:10px 12px;background:#fff}.provider-form .primary-button{grid-column:2;justify-self:start}.key-panel{border-top:1px solid #eee7df;margin-top:24px;padding-top:20px}.key-panel>strong{display:block;font-size:14px;margin-bottom:8px}.key-panel>span{display:block;font-size:13px;color:#766d65}.key-form{margin:14px 0}.key-form .secondary-button{white-space:nowrap}.key-panel .hint{margin-bottom:0}.text-button{border:0;background:none;color:#a83e36;padding:2px 0;font-size:12px}@media(max-width:680px){.provider-form{grid-template-columns:1fr;gap:8px}.provider-form label:not(:first-child){margin-top:8px}.provider-form .primary-button{grid-column:1;margin-top:6px}.key-form .create-row{gap:8px}.key-form .secondary-button{width:100%}}

[data-team-page] .access-section{margin-top:26px}[data-team-page] label{display:grid;gap:7px;margin-bottom:12px}[data-team-page="admin"] input,[data-team-page="admin"] textarea{width:100%;font:inherit;border:1px solid #ded4ca;border-radius:10px;padding:11px;background:white}[data-team-page] textarea{resize:vertical;overflow-wrap:anywhere}[data-team-page] form{display:grid;gap:10px}[data-team-page] .admin-header{display:flex;align-items:center;gap:18px;flex-wrap:wrap}[data-team-page] .admin-panel p{line-height:1.7;color:#766d65}[data-team-page] #results button{padding:8px 14px;border:1px solid #ded4ca;border-radius:8px;background:#fff}
/* Keep account permissions inline; general form inputs are full-width. */
.provider-form .account-generation { display:flex; align-items:center; gap:8px; }
.provider-form .account-generation input { width:auto; margin:0; }

.account-confirm{padding:18px;background:#fff4e5;border:1px solid #edb98b;border-radius:12px;margin:16px 0;overflow-wrap:anywhere}.account-confirm[hidden]{display:none!important}.staff-detail{min-width:0;overflow-wrap:anywhere}.staff-actions label{display:flex;gap:6px;align-items:center}
#profile-form{display:grid;gap:10px}#profile-form h2{margin:0 0 6px}#profile-form label{font-size:13px;font-weight:650}#profile-form input{box-sizing:border-box;width:100%;min-width:0;min-height:42px;font:inherit;padding:10px 12px;border:1px solid #ded4ca;border-radius:10px;background:#fff}#profile-form p{font-size:14px;line-height:1.7;margin:4px 0;color:#766d65}#profile-form .dialog-actions{margin-top:8px}

/* Match the original employee columns while keeping local account controls. */
.staff-table-scroll{max-width:100%;min-width:0;overflow-x:auto;border:1px solid #e5e7eb;background:#fff}
.staff-table{width:100%;min-width:900px;border-collapse:collapse;table-layout:fixed;font-size:13px;color:#211d1a}
.staff-table th{padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#4b5563;background:#f9fafb}
.staff-table td{padding:16px;vertical-align:middle;border-top:1px solid #e5e7eb;overflow-wrap:anywhere}
.staff-table th:nth-child(1){width:18%}.staff-table th:nth-child(2){width:13%}.staff-table th:nth-child(3){width:11%}.staff-table th:nth-child(4){width:14%}.staff-table th:nth-child(5){width:19%}.staff-table th:nth-child(6){width:25%}
.staff-table time{font-size:12px;color:#6b7280;line-height:1.7}.staff-table .staff-actions{justify-content:flex-start;gap:10px 12px}.staff-table .staff-actions button{padding:3px 0;text-align:left;line-height:1.5}.staff-table .staff-actions label,.staff-permission{display:flex;align-items:center;gap:6px;font-size:12px!important;font-weight:400!important}
.staff-status{border:0;background:transparent;padding:5px 0;font-size:13px;text-align:left}.staff-status.is-active{color:#15803d}.staff-status.is-inactive{color:#6b7280}.staff-table input[type=checkbox]{flex:none;margin:0;width:15px;height:15px}

#profile-form .profile-permission{display:flex;align-items:flex-start;gap:8px;font-weight:400;line-height:1.6}#profile-form .profile-permission input{width:16px;height:16px;min-height:0;padding:0;margin:3px 0 0;flex:none}

.account-toolbar{display:flex;align-items:center;gap:10px}
#create-form{display:grid;gap:10px}#create-form h2{margin:0 0 6px}#create-form label{font-size:13px;font-weight:650}#create-form input{box-sizing:border-box;width:100%;min-width:0;min-height:42px;font:inherit;padding:10px 12px;border:1px solid #ded4ca;border-radius:10px;background:#fff}#create-form p{font-size:14px;line-height:1.7;margin:4px 0;color:#766d65}#create-form .dialog-actions{margin-top:8px}
#create-form .profile-permission{display:flex;align-items:flex-start;gap:8px;font-weight:400;line-height:1.6}#create-form .profile-permission input{width:16px;height:16px;min-height:0;padding:0;margin:3px 0 0;flex:none}

.staff-table .staff-actions .staff-delete{color:#b91c1c}
