.dc-access {min-height:100dvh;background:#f3f4f6;color:#06245a;font:14px/1.6 Inter,system-ui,sans-serif;padding:20px;}
.dc-access *, .dc-dialog * {box-sizing:border-box;}
.dc-access button,.dc-dialog button,.dc-plan-chip,.dc-admin-chip {font:600 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer;border:1px solid #dde5ee;border-radius:9px;background:#fff;color:#06245a;padding:11px 15px;min-height:42px;}
.dc-access button:hover,.dc-dialog button:hover {background:#eaf3fe;}
.dc-access button:disabled,.dc-dialog button:disabled {opacity:.5;cursor:default;}
.dc-access :is(button,input,select,textarea):focus-visible,.dc-dialog :is(button,input,select,textarea):focus-visible {outline:3px solid #68aaea;outline-offset:3px;}
.dc-header {max-width:1360px;margin:auto;padding:12px 22px;background:#fff;border:1px solid #dde5ee;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 26px #06245a08;}
.dc-header img {width:118px;height:42px;object-fit:contain;}
.dc-header > div {display:flex;gap:10px;}
.dc-gate {max-width:620px;margin:clamp(55px,12vh,150px) auto;padding:40px;background:#fff;border:1px solid #dde5ee;border-radius:20px;}
.dc-small {font-size:9px;letter-spacing:.13em;font-weight:600;color:#476987;}
.dc-gate h1 {font-size:clamp(29px,4vw,42px);line-height:1.12;letter-spacing:-.045em;font-weight:600;margin:18px 0;}
.dc-gate p {color:#476987;}
.dc-email {padding:14px 0;margin:22px 0;border-block:1px solid #dde5ee;overflow-wrap:anywhere;font-size:12px;}
.dc-actions {display:flex;flex-wrap:wrap;gap:10px;}
.dc-access .dc-primary,.dc-dialog .dc-primary {background:#126fc5;border-color:#126fc5;color:#fff;}
.dc-access .dc-primary:hover,.dc-dialog .dc-primary:hover {background:#07539f;border-color:#07539f;}
.dc-feedback {font-size:12px;min-height:20px;color:#476987;}
.dc-admin {max-width:1240px;margin:28px auto;}
.dc-admin-intro {display:flex;align-items:center;justify-content:space-between;gap:25px;padding:30px 34px;background:linear-gradient(115deg,#071d40,#082a59);color:#fff;border:1px solid #193c63;border-radius:20px;}
.dc-admin-intro .dc-small {color:#9dbadd;}
.dc-admin-intro h1 {font-size:clamp(27px,3.6vw,39px);line-height:1.15;letter-spacing:-.045em;font-weight:550;margin:10px 0;}
.dc-admin-intro p {color:#b9cfe8;margin:0;font-size:13px;}
#adminIdentity {font-size:12px;color:#b9cfe8;overflow-wrap:anywhere;}
.dc-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0;}
.dc-counts > div {background:#fff;border:1px solid #dde5ee;border-radius:13px;padding:18px 22px;}
.dc-counts span {display:block;font-size:11px;color:#476987;}
.dc-counts strong {display:block;font-size:31px;font-weight:550;line-height:1.25;margin-top:8px;}
.dc-filters {display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:28px 0 12px;}
.dc-filters label:first-child {flex:1;min-width:220px;}
.dc-filters label,.dc-fields label {display:grid;gap:7px;color:#476987;font-size:11px;}
.dc-filters :is(input,select),.dc-fields :is(input,select,textarea) {width:100%;min-height:43px;padding:10px 12px;border:1px solid #cbd9e6;border-radius:8px;background:#fff;color:#06245a;font:14px Inter,system-ui,sans-serif;}
.dc-user {display:grid;grid-template-columns:minmax(0,1fr) 105px 180px auto;align-items:center;gap:22px;padding:21px 24px;background:#fff;border-bottom:1px solid #dde5ee;}
.dc-user:first-child {border-radius:14px 14px 0 0;}
.dc-user:last-child {border-radius:0 0 14px 14px;border-bottom:0;}
.dc-user:only-child {border-radius:14px;}
.dc-user-main,.dc-user-plan {min-width:0;}
.dc-user-main strong {display:block;font-weight:550;font-size:13px;overflow-wrap:anywhere;}
.dc-user-main span,.dc-user-plan span {display:block;color:#476987;font-size:12px;margin-top:3px;}
.dc-user small {display:block;color:#526d84;font-size:10px;margin-top:5px;}
.dc-user-plan strong {font-size:13px;font-weight:550;}
.dc-badge {display:inline-flex;justify-content:center;align-items:center;min-height:29px;max-width:max-content;border-radius:20px;padding:4px 10px;font-size:10px;white-space:nowrap;}
.dc-pending {background:#fff4df;color:#7d5817;}
.dc-active {background:#e8f5ed;color:#28603f;}
.dc-suspended {background:#fcebed;color:#922d40;}
.dc-pagination {display:flex;align-items:center;justify-content:end;gap:16px;margin:18px 0 35px;font-size:11px;color:#476987;}
.dc-audit {background:#fff;border:1px solid #dde5ee;border-radius:14px;padding:25px;}
.dc-audit h2 {margin:0;font-size:20px;font-weight:550;letter-spacing:-.025em;}
.dc-audit > p {font-size:12px;color:#476987;margin:7px 0 20px;}
.dc-audit article {display:flex;justify-content:space-between;gap:25px;padding:16px 0;border-top:1px solid #dde5ee;}
.dc-audit article strong,.dc-audit article span {display:block;font-size:11px;overflow-wrap:anywhere;}
.dc-audit article span {color:#476987;margin-top:4px;}
.dc-audit small {font-size:10px;color:#526d84;overflow-wrap:anywhere;}
.dc-dialog {width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;background:#fff;color:#06245a;border:1px solid #dde5ee;border-radius:18px;box-shadow:0 30px 100px #071d4033;font:13px/1.65 Inter,system-ui,sans-serif;}
.dc-dialog::backdrop {background:#04172d99;backdrop-filter:blur(7px);}
.dc-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:20px;}
.dc-dialog-head h2 {margin:0;font-size:25px;font-weight:550;letter-spacing:-.035em;}
.dc-dialog-head button {min-height:34px;padding:5px 10px;font-size:22px;}
#adminEditEmail {overflow-wrap:anywhere;color:#476987;margin:15px 0 22px;}
.dc-fields {display:grid;gap:16px;}
.dc-fields small,.dc-note {font-size:10px;color:#526d84;line-height:1.7;}
.dc-wide {width:100%;}
.dc-plan-usage {margin:24px 0;padding:0 20px;background:linear-gradient(115deg,#071d40,#082a59);border-radius:12px;color:#fff;}
.dc-plan-usage > div {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;}
.dc-plan-usage > div + div {border-top:1px solid #b9cfe82b;}
.dc-plan-usage span {font-size:12px;color:#b9cfe8;}
.dc-plan-usage strong {font-size:21px;font-weight:550;white-space:nowrap;}
#appView .chat-topbar .dc-plan-chip,#appView .chat-topbar .dc-admin-chip {border:1px solid #dde5ee;background:#f7f9fc;color:#06245a;white-space:nowrap;min-height:35px;padding:8px 12px;font-size:11px;}
#appView .chat-topbar .dc-admin-chip {background:#082a59;border-color:#193c63;color:#fff;}
#appView [aria-disabled="true"][data-chat-voice] {opacity:.6;}
.dc-empty {padding:30px;background:#fff;border-radius:12px;color:#476987;}
body:has(#accessView:not(.hidden)),body:has(#adminView:not(.hidden)) {background:#f3f4f6;}
@media(max-width:720px) {
  .dc-access {padding:12px;}
  .dc-header {padding:10px 14px;border-radius:16px;}
  .dc-header img {width:90px;height:35px;}
  .dc-header button {font-size:10px;padding:9px;}
  .dc-gate {padding:27px;margin-top:55px;}
  .dc-admin-intro {padding:25px;align-items:start;flex-direction:column;gap:14px;}
  .dc-counts {gap:9px;}
  .dc-counts > div {padding:14px;}
  .dc-user {grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:20px;}
  .dc-user-plan {grid-column:1;}
  .dc-user > button {grid-column:2;grid-row:2;}
  .dc-filters label:nth-child(2) {flex:1;}
  .dc-audit {padding:20px;}
  .dc-audit article {flex-direction:column;gap:8px;}
  #appView .chat-topbar {flex-wrap:wrap;}
  #appView .chat-topbar .dc-plan-chip,#appView .chat-topbar .dc-admin-chip {padding:7px 9px;font-size:10px;}
}
