:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#172b45;background:#f4f7fb;font-size:15px;font-synthesis:none}
*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#1766c2}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.3;letter-spacing:-.025em;margin-bottom:18px}h2{font-size:19px;line-height:1.4;margin-bottom:17px}h3{font-size:16px;margin-bottom:12px}.muted{color:#6d7d91;line-height:1.65}.small{font-size:12px}.brand{font-weight:800;color:#173f79}
.logo-mark{width:37px;height:37px;flex:none;display:inline-grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#197add,#1547a2);color:#fff;font-size:19px;font-weight:800;box-shadow:0 6px 16px #1e68c12b}
.shell{min-height:100vh}.top{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 34px;background:#fff;border-bottom:1px solid #e6ebf2;position:relative;z-index:2}.top-brand,.top-user{display:flex;align-items:center;gap:12px}.top-brand strong,.user-meta strong{display:block;line-height:1.25}.top-brand strong{font-size:17px;letter-spacing:.01em}.top-brand small,.user-meta small{display:block;color:#8391a3;font-size:11px;margin-top:4px}.user-meta{text-align:right}.user-meta strong{font-size:13px}.user-avatar{width:34px;height:34px;border-radius:50%;background:#e8f0fc;color:#2266b9;display:grid;place-items:center;font-weight:800}.top-user .btn{margin-left:12px}
.layout{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:calc(100vh - 76px)}nav{position:sticky;top:0;height:calc(100vh - 76px);padding:24px 13px 62px;background:#fff;border-right:1px solid #e6ebf2;overflow-y:auto}.nav-caption{padding:0 15px 11px;color:#9aa7b6;font-size:11px;font-weight:800;letter-spacing:.11em}nav button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#526782;padding:12px 15px;border-radius:10px;margin:3px 0;font-size:14px;transition:background .15s,color .15s}nav button:hover{background:#f0f5fc;color:#1b5bab}nav button.active{background:#e8f1fd;color:#165eb2;font-weight:800;box-shadow:inset 3px 0 #2e7ad6}.nav-bottom{position:absolute;bottom:20px;left:27px;color:#8b9bae;font-size:11px;white-space:nowrap}.nav-status-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#26b37c}
.content{width:100%;min-width:0;align-self:start;padding:32px clamp(22px,2.6vw,52px) 64px;margin:0}.content>h1{margin:0 0 19px}.content>.hint{margin-bottom:20px;max-width:2000px}.panel{background:#fff;border:1px solid #e5ebf2;border-radius:15px;padding:24px;margin-bottom:20px;box-shadow:0 5px 20px #263f6208;min-width:0;max-width:2000px}.panel>h2{display:flex;align-items:center;gap:9px}.panel>h2:before{content:"";width:4px;height:18px;border-radius:2px;background:#3d84dc;flex:none}.panel>.muted{margin-bottom:15px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:20px;max-width:2000px}.stat{min-height:126px;padding:23px 25px;border-radius:14px;background:#fff;border:1px solid #e5ebf2;box-shadow:0 5px 20px #263f6208;color:#62758e;font-size:13px;font-weight:600}.stat:before{content:"";display:block;width:30px;height:4px;border-radius:3px;background:#3a87df;margin-bottom:18px}.stat:nth-child(2):before{background:#24a4ad}.stat:nth-child(3):before{background:#e8a342}.stat strong{display:block;font-size:29px;line-height:1.1;margin-top:8px;color:#173a69;font-variant-numeric:tabular-nums}.row{display:flex;gap:11px;align-items:center;flex-wrap:wrap}
.form{display:grid;grid-template-columns:repeat(3,minmax(190px,1fr));gap:18px 20px;max-width:1280px}.form label,.auth label{display:flex;flex-direction:column;gap:8px;color:#344963;font-size:13px;font-weight:700;min-width:0}.form input,.form select,.form textarea,.auth input{border:1px solid #d9e2ec;border-radius:9px;padding:11px 13px;background:#fff;min-width:0;width:100%;min-height:44px;color:#172b45;outline:0;transition:border-color .15s,box-shadow .15s}.form input:focus,.form select:focus,.form textarea:focus,.auth input:focus{border-color:#4c92e4;box-shadow:0 0 0 3px #3383df1a}.form input[type=file]{padding:9px;background:#f9fbfd}.form input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:#2874cf}.form textarea{min-height:80px;resize:vertical}.form button{align-self:end;min-height:44px;justify-self:start}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#236bc7;color:#fff;border:1px solid #236bc7;padding:10px 18px;border-radius:9px;font-weight:800;line-height:1.3;transition:background .15s,transform .15s,box-shadow .15s}.btn:hover{background:#155cb9;box-shadow:0 6px 14px #286fc625}.btn:active{transform:translateY(1px)}.secondary{background:#fff;color:#2364b5;border-color:#cbdcf0}.secondary:hover{background:#f1f6fc;box-shadow:none}.danger{background:#fff;color:#b43e43;border-color:#efc5c8}.mini{padding:6px 11px;min-height:30px;font-size:12px;margin:2px}
.table-wrap{width:100%;overflow:auto;border:1px solid #e9eef4;border-radius:10px}.table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}.table th{text-align:left;color:#63758c;background:#f6f8fb;font-weight:800}.table th,.table td{border-bottom:1px solid #edf1f6;padding:13px 15px}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#f9fbfe}.pill{display:inline-block;background:#edf2f7;color:#43536c;border-radius:30px;padding:5px 10px;font-size:12px;font-weight:700}.pill.active,.pill.approved,.pill.confirmed,.pill.issued{background:#e7f7ed;color:#197044}.pill.pending,.pill.provisional,.pill.draft{background:#fff3db;color:#936113}.pill.superseded{background:#f1f2f4;color:#7a8492}
.hint{padding:13px 16px;background:#fff9eb;border:1px solid #f6e9c8;border-left:4px solid #dfaa47;border-radius:8px;line-height:1.7;color:#785d2e;margin:0 0 18px}.empty{color:#8b9aac;padding:34px;text-align:center}.right{margin-left:auto}code{background:#eef3fa;padding:2px 5px;border-radius:4px}#notice{position:fixed;z-index:9;top:20px;right:20px;max-width:min(520px,calc(100vw - 32px));padding:14px 18px;color:#fff;background:#274663;border-radius:9px;box-shadow:0 10px 30px #1f354844}#notice.error{background:#a1363a}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(460px,.92fr);background:#f7f9fc}.auth-story{min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;padding:43px clamp(40px,5vw,104px);background:linear-gradient(145deg,#082e60 0%,#0d4a8e 58%,#1879b5 100%);color:#fff}.auth-story:before,.auth-story:after{content:"";position:absolute;border:1px solid #ffffff25;border-radius:50%;pointer-events:none}.auth-story:before{width:680px;height:680px;right:-250px;top:-260px;box-shadow:0 0 0 100px #ffffff07,0 0 0 205px #ffffff05}.auth-story:after{width:510px;height:510px;left:-260px;bottom:-320px;box-shadow:0 0 0 95px #ffffff08}.story-logo{display:flex;align-items:center;gap:13px;position:relative;z-index:1;font-size:18px;font-weight:800;letter-spacing:.02em}.story-logo .logo-mark{background:#fff;color:#1263ac;box-shadow:none}.story-main{position:relative;z-index:1;max-width:720px;margin:30px 0}.story-kicker{display:block;margin-bottom:23px;color:#a9d8ff;font-size:12px;letter-spacing:.2em;font-weight:800}.story-main h2{font-size:clamp(37px,3.3vw,66px);line-height:1.2;letter-spacing:-.04em;margin:0 0 27px;font-weight:800}.story-main>p{max-width:600px;color:#d1e7f9;font-size:17px;line-height:1.8;margin:0 0 48px}.story-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.story-flow div{min-height:133px;padding:19px 18px;border:1px solid #ffffff38;background:#ffffff10;backdrop-filter:blur(8px);border-radius:14px}.story-flow span{display:block;color:#9bd4ff;font-size:12px;font-weight:800;margin-bottom:12px}.story-flow strong{display:block;font-size:15px;margin-bottom:6px}.story-flow small{display:block;color:#c0def4;font-size:12px;line-height:1.5}.story-foot{position:relative;z-index:1;color:#b1d7f1;font-size:12px;letter-spacing:.08em}
.auth-main{min-height:100vh;display:grid;place-items:center;padding:48px clamp(28px,5vw,92px)}.auth{width:min(100%,490px)}.auth-mobile-brand{display:none}.auth-eyebrow{display:block;color:#246dc3;font-size:13px;font-weight:800;letter-spacing:.1em;margin-bottom:14px}.auth h1{font-size:38px;letter-spacing:-.04em;margin:0 0 10px;color:#142b49}.auth-subtitle{font-size:15px;color:#72839a;line-height:1.7;margin:0 0 36px}.auth form{display:grid;gap:21px}.auth input{height:52px;font-size:15px;border-radius:10px}.auth input::placeholder{color:#a9b5c2}.auth-submit{width:100%;height:53px;margin-top:7px;font-size:16px;justify-content:space-between;padding:0 19px;box-shadow:0 10px 22px #256bc72a}.auth-submit span{font-size:22px;font-weight:400}.label-note{color:#9aa8b8;font-weight:400}.auth-switch{margin-top:26px;text-align:center;color:#7b8ba0;font-size:14px}.auth .switch{border:0;background:transparent;color:#196ac3;padding:4px;font-weight:800}.auth-footnote{margin:32px 0 0;padding-top:21px;border-top:1px solid #e4eaf1;color:#9caaba;text-align:center;font-size:12px;line-height:1.7}.auth .hint{margin-top:18px}
.initial-loading,.load-error{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center;padding:24px;color:#62758e}.initial-loading{font-weight:700}.load-error h1{margin:0;font-size:24px}.load-error p{margin:0 0 4px;line-height:1.6}
@media(max-width:1100px){.auth-page{grid-template-columns:minmax(0,1fr) minmax(400px,1fr)}.auth-story{padding:36px}.story-flow{grid-template-columns:1fr}.story-flow div{min-height:0;padding:13px 16px}.story-flow span{display:inline-block;margin:0 9px 0 0}.story-flow strong{display:inline-block}.story-flow small{margin-top:4px}.form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.top{height:64px;padding:0 16px}.top-brand small,.user-meta,.user-avatar{display:none}.top-user .btn{margin-left:0}.layout{display:block;min-height:calc(100vh - 64px)}nav{position:sticky;top:0;z-index:2;display:flex;height:auto;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #e6ebf2;padding:8px 12px;gap:5px;scrollbar-width:none}nav::-webkit-scrollbar{display:none}nav button{width:auto;white-space:nowrap;margin:0;padding:10px 13px}nav button.active{box-shadow:inset 0 -3px #2e7ad6}.nav-caption,.nav-bottom{display:none}.content{padding:22px 15px 48px}.content>h1{font-size:24px}.grid{grid-template-columns:1fr;gap:10px}.stat{min-height:100px;padding:16px 20px}.stat:before{margin-bottom:10px}.stat strong{font-size:25px}.panel{padding:18px 15px;margin-bottom:15px}.form{grid-template-columns:1fr;gap:14px}.form button{width:100%}.auth-page{display:block;background:#fff}.auth-story{display:none}.auth-main{min-height:100vh;display:block;padding:28px 24px 38px;background:linear-gradient(180deg,#eef6ff 0,#fff 230px)}.auth-mobile-brand{display:flex;align-items:center;gap:10px;color:#173f79;font-size:17px;margin-bottom:62px}.auth{margin:0 auto}.auth h1{font-size:32px}}
@media(max-width:380px){.top-brand strong{font-size:14px}.top-user .btn{font-size:11px;padding:6px 8px}.auth-main{padding-inline:18px}}
