/* Enterprise console extends the established light blue Chipwork visual language. */
#enterprise-root{min-height:80vh;padding-top:120px;padding-bottom:72px;color:var(--ink)}
.ep-kicker{display:block;color:#496780;font-size:12px;font-weight:650;letter-spacing:1.5px;margin-bottom:18px}
.ep-label{display:inline-block;color:#28618e;background:#edf6ff;border:1px solid #d8eafd;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600}
.ep-auth-layout{display:grid;grid-template-columns:1.1fr 1fr;max-width:1120px;margin:30px auto 48px;min-height:620px;border:1px solid #dfebf5;border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 22px 70px #1e568211}
.ep-auth-story{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;padding:58px 48px;background:#eaf4fb}
.ep-auth-story:before{content:"";position:absolute;inset:0;z-index:-2;background:url('./assets/law-library-hero.png') 30% center/cover}
.ep-auth-story:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(130deg,#e8f5fff5,#e8f5ffbb)}
.ep-auth-story h1{font-family:var(--sans);font-size:43px;line-height:1.4;letter-spacing:-1px;margin:15px 0 24px;font-weight:750}
.ep-auth-story>p{font-size:15px;color:#3a5c77;line-height:2.1;margin:0}
.ep-story-note{display:flex;flex-wrap:wrap;gap:8px;margin-top:68px}
.ep-story-note span{font-size:11px;background:#ffffffa6;border:1px solid #fff;border-radius:7px;padding:7px 9px;color:#3a5c77}
.ep-auth-card{padding:48px 50px;display:flex;flex-direction:column;justify-content:center}
.ep-auth-card>.ep-label{align-self:flex-start}
.ep-auth-card h2{font-size:30px;line-height:1.4;margin:20px 0 10px}
.ep-auth-description{font-size:14px;color:var(--muted);margin-bottom:25px;line-height:1.8}
.ep-field{margin-bottom:20px;min-width:0}
.ep-field label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;color:#223e57}
.ep-field input,.ep-field select,.ep-history-controls input{min-height:48px;border:1px solid #c4d7e7;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:16px;width:100%;padding:11px 13px;box-sizing:border-box}
.ep-field input:focus,.ep-field select:focus,.ep-history-controls input:focus{outline:3px solid #cce5ff;outline-offset:2px;border-color:#0874d4}
.ep-field input::placeholder{font-size:13px;color:#6a7e90}
.ep-field p{font-size:12px;color:#5d7489;margin-top:7px;line-height:1.7}
.ep-input-wrap{position:relative}.ep-input-wrap input{padding-right:64px}
.ep-reveal{position:absolute;right:4px;top:2px;min-width:54px;min-height:44px;background:transparent;border:0;color:#1266ae;font-size:12px;cursor:pointer;border-radius:8px}
.ep-submit{width:100%;justify-content:space-between;margin-top:7px;font-size:14px!important;min-height:48px!important}
.ep-error{color:#a52b37;font-size:13px;line-height:1.7;min-height:0;margin:0}.ep-error:not(:empty){margin:14px 0;padding:11px 13px;background:#fff3f3;border-radius:8px}
.ep-login-help{font-size:12px;color:#5e7488;line-height:1.9;margin-top:22px}
.ep-back{display:inline-block;align-self:flex-start;font-size:13px;color:#1266ae;padding-block:12px;margin-top:7px}
.ep-text-button{font:inherit;font-size:13px;min-height:44px;padding:8px 10px;background:transparent;border:0;color:#1266ae;cursor:pointer;border-radius:8px}
.ep-text-button:hover,.ep-reveal:hover{background:#edf6ff}.ep-danger{color:#a52b37}
.ep-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:15px 0 32px}
.ep-dashboard-heading h1{font-size:34px;margin:0;line-height:1.5;letter-spacing:-.6px}
.ep-dashboard-heading .ep-kicker{margin-bottom:10px}
.ep-dashboard-heading p{font-size:14px;color:#577087;margin-top:10px}.ep-dashboard-heading p span{margin-inline:12px}
.ep-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid #d6e5f1;margin-bottom:28px;padding-bottom:12px;flex-wrap:wrap}
.ep-tabs>button{min-height:44px;padding:10px 16px;font:inherit;font-size:14px;background:transparent;border:0;border-radius:9px;color:#496780;cursor:pointer}
.ep-tabs>button[aria-current="page"]{background:#e5f2ff;color:#075ca6;font-weight:650}
.ep-tabs>button:hover{background:#edf6ff}.ep-service-status{margin-left:auto;color:#496780;font-size:12px;padding:8px 0}
.ep-alert:not(:empty){font-size:14px;color:#a52b37;border:1px solid #f1ccd1;border-radius:10px;padding:14px 18px;margin-bottom:20px;background:#fff5f5}
.ep-quota-panel{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center;background:linear-gradient(120deg,#fff,#f0f8ff);border:1px solid #d2e5f5;border-radius:20px;padding:34px 38px}
.ep-quota-main .ep-label{background:transparent;border:0;padding:0;font-size:13px;color:#4b6c86}
.ep-quota-number{font-size:64px;font-weight:700;letter-spacing:-2px;line-height:1.5;margin:8px 0;color:#123c60;overflow-wrap:anywhere}
.ep-quota-number>span{font-size:16px;margin-left:12px;font-weight:500;letter-spacing:0;color:#58758d}
.ep-quota-main>p{font-size:12px;color:#5e778e;margin-bottom:20px}
.ep-quota-main progress{width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;display:block;background:#dfeefa}
.ep-quota-main progress::-webkit-progress-bar{background:#dfeefa}.ep-quota-main progress::-webkit-progress-value{background:#1475c7;border-radius:8px}.ep-quota-main progress::-moz-progress-bar{background:#1475c7}
.ep-quota-detail{display:grid;gap:17px;border-left:1px solid #d4e5f3;padding-left:38px}
.ep-quota-detail>div{display:flex;justify-content:space-between;gap:18px;align-items:center}
.ep-quota-detail span{font-size:14px;color:#526e85}.ep-quota-detail strong{font-size:24px;font-weight:600}.ep-quota-detail small{font-size:12px;font-weight:400;color:#526e85;margin-left:4px}
.ep-policy{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:26px 6px 32px}
.ep-policy>div{border-left:2px solid #b9dbf6;padding-left:13px}.ep-policy strong{display:block;font-size:13px;font-weight:650;margin-bottom:7px}.ep-policy span{display:block;color:#587087;font-size:12px;line-height:1.9}
.ep-panel{background:white;border:1px solid #d8e6f1;border-radius:20px;padding:28px 30px;margin-bottom:26px}
.ep-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.ep-panel h2{font-size:19px;line-height:1.6;margin:0 0 7px}.ep-panel-heading p,.ep-connection p{font-size:13px;color:#566f84;line-height:1.9}
.ep-history-controls{display:flex;gap:10px;align-items:center;font-size:12px}.ep-history-controls input{width:auto;max-width:175px;font-size:14px;min-height:44px}
.ep-table-wrap{overflow-x:auto}.ep-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}
.ep-table th{color:#557086;font-size:12px;font-weight:500;padding:12px 15px;background:#f5f9fc;white-space:nowrap}
.ep-table td{padding:17px 15px;border-bottom:1px solid #e8eff5;vertical-align:top;min-width:92px}
.ep-table td strong{font-size:13px;font-weight:600}.ep-table td small{display:block;margin-top:5px;font-size:11px;color:#60788e;overflow-wrap:anywhere;max-width:300px}
.ep-table time{font-size:12px;white-space:nowrap}.ep-charge{white-space:nowrap;font-variant-numeric:tabular-nums}
.ep-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#5e7181;background:#f0f3f6;border-radius:6px;padding:4px 8px;white-space:nowrap}
.ep-ok{color:#16664e;background:#eaf5ee}.ep-status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.ep-empty{text-align:center;padding:46px 20px 54px;color:#61798d}.ep-empty h3{font-size:16px;color:#3b5c76;font-weight:600;margin:10px 0}.ep-empty p{font-size:13px;line-height:1.9;max-width:410px;margin-inline:auto}.ep-empty-icon{width:42px;height:42px;border:1px solid #d2e5f4;border-radius:12px;margin:auto;display:grid;place-items:center;font-size:22px;color:#387eb5;background:#f4faff}
.ep-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.ep-pagination>span{font-size:11px;color:#60788e}.ep-pagination>div{display:flex;gap:8px}.ep-dashboard .btn.small{min-height:44px;font-size:12px}
.ep-key-form{display:grid;grid-template-columns:1fr 180px auto;align-items:start;gap:18px;border-bottom:1px solid #e3edf5;padding-bottom:24px}.ep-key-form .btn{margin-top:31px;font-size:13px;min-height:48px}.ep-key-form .ep-error{grid-column:1/-1}.ep-key-form .ep-field{margin:0}
.ep-key{display:flex;justify-content:space-between;gap:20px;padding:25px 0;border-bottom:1px solid #e6eef5}.ep-key:last-child{border:0;padding-bottom:0}.ep-key h3{font-size:15px;margin:0 0 10px}.ep-key code{font-size:13px;color:#4b6d88;background:#f1f7fc;border-radius:5px;padding:5px 8px}.ep-key p{font-size:12px;color:#60768b;margin-top:13px;line-height:1.9}.ep-key-actions{display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.ep-connection code{font-size:12px;overflow-wrap:anywhere;background:#f1f7fc;padding:3px 6px;border-radius:4px}.ep-connection .ep-kicker{margin-bottom:10px}
.ep-muted{color:#5d7489!important;font-size:13px;line-height:1.9}.ep-account{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding:36px}.ep-account h2{margin-bottom:18px}.ep-account-list{display:grid;grid-template-columns:auto 1fr;gap:14px 24px;font-size:14px;margin:25px 0}.ep-account-list dt{color:#5d7489}.ep-account-list dd{margin:0;overflow-wrap:anywhere}
.ep-modal{padding:30px;border:1px solid #d5e5f2;border-radius:20px;max-width:580px;width:calc(100% - 36px);box-sizing:border-box}.ep-modal::backdrop{background:#0c25445e;backdrop-filter:blur(5px)}.ep-modal h2{font-size:23px;margin:0 0 15px}.ep-modal p{font-size:14px;color:#4c687f;line-height:1.9;margin-bottom:18px}.ep-modal-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.ep-modal .btn{font-size:13px;min-height:44px}.ep-secret{display:block;overflow-wrap:anywhere;font-size:14px;line-height:1.9;padding:18px;background:#edf6ff;color:#174e7d;border:1px solid #cce4f8;border-radius:10px;margin-bottom:18px;user-select:all}
.ep-loading{padding:100px 30px;text-align:center;color:#58748c}.ep-dashboard button:disabled,#enterprise-root button:disabled{opacity:.5;cursor:wait}.ep-pagination button:disabled{cursor:default!important}
#enterprise-root button:focus-visible,.ep-modal button:focus-visible{outline:3px solid #90c7ff;outline-offset:3px}
@media(max-width:1000px){.ep-auth-layout{margin:25px 28px;grid-template-columns:1fr 1fr}.ep-auth-story,.ep-auth-card{padding:38px 30px}.ep-auth-story h1{font-size:34px}.ep-account{gap:30px}.ep-service-status{margin-left:0;width:100%}.ep-quota-panel{gap:28px;padding:28px}.ep-key-form{grid-template-columns:1fr 150px}.ep-key-form .btn{grid-column:1/-1;justify-self:start;margin-top:0}}
@media(max-width:650px){#enterprise-root{padding-top:95px;padding-bottom:35px}.ep-auth-layout{grid-template-columns:1fr;margin:14px 18px 30px;border-radius:20px;min-height:0}.ep-auth-story{padding:30px 26px}.ep-auth-story h1{font-size:28px;line-height:1.4;margin:10px 0}.ep-auth-story h1 br{display:none}.ep-auth-story>p{font-size:12px;line-height:1.9}.ep-auth-story>p br{display:none}.ep-auth-story .ep-kicker{font-size:10px;margin-bottom:5px}.ep-story-note{margin-top:18px;gap:6px}.ep-story-note span{font-size:10px;padding:5px 7px}.ep-auth-card{padding:28px 25px}.ep-auth-card h2{font-size:26px}.ep-auth-description{font-size:13px}.ep-field{margin-bottom:18px}.ep-field label{font-size:13px}.ep-dashboard{padding-inline:20px!important}.ep-dashboard-heading{margin:13px 0 24px;align-items:flex-start}.ep-dashboard-heading h1{font-size:26px}.ep-dashboard-heading .ep-kicker{font-size:10px;margin-bottom:8px}.ep-dashboard-heading p{font-size:12px}.ep-logout{white-space:nowrap;padding-inline:12px!important}.ep-tabs{gap:2px;margin-bottom:20px}.ep-tabs>button{font-size:13px;padding:9px 13px}.ep-service-status{font-size:11px}.ep-quota-panel{grid-template-columns:1fr;padding:24px;gap:23px;border-radius:16px}.ep-quota-number{font-size:54px}.ep-quota-detail{border-left:0;border-top:1px solid #d4e5f3;padding:20px 0 0;gap:12px}.ep-quota-detail>div{gap:15px}.ep-quota-detail strong{font-size:20px}.ep-quota-detail span{font-size:13px}.ep-policy{grid-template-columns:1fr;gap:16px;padding:25px 3px}.ep-policy strong{font-size:13px;margin-bottom:3px}.ep-policy span{font-size:12px}.ep-panel{padding:23px 19px;border-radius:16px}.ep-panel h2{font-size:18px}.ep-panel-heading{gap:16px}.ep-history-controls{gap:8px;flex-wrap:wrap}.ep-history-controls input{font-size:13px;max-width:155px}.ep-table{min-width:530px}.ep-table td,.ep-table th{padding:13px 11px}.ep-pagination{align-items:flex-start;flex-direction:column}.ep-pagination>div{align-self:flex-end}.ep-empty{padding:30px 4px}.ep-key-form{grid-template-columns:1fr;gap:16px}.ep-key-form .btn{width:100%;justify-content:center}.ep-key-form .ep-field label{font-size:13px}.ep-key{gap:8px}.ep-key h3{font-size:14px;overflow-wrap:anywhere}.ep-key code{font-size:11px}.ep-key p{font-size:11px}.ep-key-actions{flex-shrink:0}.ep-account{grid-template-columns:1fr;padding:25px 21px;gap:34px}.ep-account-list{font-size:13px;gap:12px 16px}.ep-modal{padding:25px 22px}.ep-modal h2{font-size:21px}.ep-modal p{font-size:13px}.ep-secret{font-size:12px}}
@media(prefers-reduced-motion:reduce){#enterprise-root *, .ep-modal *{scroll-behavior:auto!important;transition:none!important}}
