@font-face{font-family:"BigVesta";src:url("../assets/fonts/BigVesta-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"BigVesta";src:url("../assets/fonts/BigVesta-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Hiragino";src:url("../assets/fonts/Hiragino-W3.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Hiragino";src:url("../assets/fonts/Hiragino-W6.woff2") format("woff2");font-weight:600;font-display:swap}
:root{--blue:#123fa7;--blue-2:#0d68c8;--blue-soft:#eef5ff;--ink:#132033;--muted:#6f7c91;--line:#dfe7f1;--bg:#f4f8fd;--ok:#18835b;--ok-bg:#e9f7f1;--bad:#c93628;--bad-bg:#fff0ed;--shadow:0 18px 50px rgba(33,67,128,.10)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#f8fbff 0,#f3f7fd 42%,#eef4fb 100%);color:var(--ink);font-family:"Hiragino","BigVesta",system-ui,-apple-system,sans-serif}button,input,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#portal-root{min-height:100vh}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:32px 18px}.auth-wrap{width:min(720px,100%)}.auth-wrap.wide{width:min(920px,100%)}.auth-brand{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:18px}.auth-brand img{width:118px;height:62px;object-fit:contain}.auth-brand div{display:flex;flex-direction:column;gap:2px}.auth-brand b{font-size:24px;color:var(--blue)}.auth-brand span{font-family:"BigVesta";font-size:14px;color:var(--muted)}.auth-card{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:30px}.auth-heading{margin-bottom:18px}.auth-heading h1{font-family:"BigVesta";font-size:30px;margin:0 0 7px}.auth-heading p{margin:0;color:var(--muted);line-height:1.8}.portal-nav{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px}.auth-nav-btn{border:0;border-radius:999px;background:#eef3fb;color:var(--blue);padding:9px 14px;font-weight:600;font-size:12px}.auth-nav-btn:hover{background:#e1ecff}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.field.full{grid-column:1/-1}.field label{font-family:"BigVesta";font-weight:700;font-size:13px}.field input,.field select{width:100%;height:50px;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:var(--blue-2);box-shadow:0 0 0 4px rgba(13,104,200,.08)}.btn{border:0;border-radius:13px;min-height:48px;padding:0 18px;background:var(--blue);color:#fff;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:var(--blue-2)}.btn.block{width:100%}.btn.secondary{background:#edf4ff;color:var(--blue)}.btn.secondary:hover{background:#e0ecff}.btn.compact{min-height:40px;padding:0 14px;font-size:12px}.notice{padding:13px 15px;border-radius:13px;background:#f4f7ff;border:1px solid #dfe7fb;color:#32415c;margin:14px 0;line-height:1.7}.notice.error{background:var(--bad-bg);border-color:#ffd7d0;color:#8d291b}.notice.ok{background:var(--ok-bg);border-color:#cce8dc;color:#245f45}.auth-footnote{text-align:center;color:var(--muted);font-size:11px;margin-top:15px}
.app-shell{width:min(1460px,calc(100% - 34px));margin:0 auto;padding:18px 0 42px}.app-topbar{min-height:82px;background:rgba(255,255,255,.88);border:1px solid rgba(223,231,241,.9);border-radius:0 0 22px 22px;box-shadow:0 10px 30px rgba(33,67,128,.06);display:grid;grid-template-columns:1fr auto;align-items:center;padding:10px 24px;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.top-brand{display:flex;align-items:center;gap:12px;justify-self:start}.top-brand img{width:148px;height:58px;object-fit:contain}.top-brand .brand-label{font-family:"BigVesta";font-size:15px;color:var(--muted);white-space:nowrap}.user-area{position:relative;justify-self:end}.user-menu-button{border:0;background:transparent;display:flex;align-items:center;gap:11px;border-radius:16px;padding:8px 10px;color:var(--ink)}.user-menu-button:hover{background:#f2f6fc}.avatar{width:78px;height:78px;border-radius:50%;background:linear-gradient(145deg,#e8f4ff,#d7eafe);display:grid;place-items:center;color:var(--blue-2);border:7px solid rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px #d5e4f5}.avatar svg{width:38px;height:38px;stroke-width:1.7}.avatar.small{width:42px;height:42px;border-width:4px}.avatar.small svg{width:22px;height:22px}.user-copy{display:flex;flex-direction:column;text-align:right;min-width:110px}.user-copy b{font-size:14px}.user-copy small{font-size:10px;color:var(--muted);margin-top:1px}.menu-glyph{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;color:var(--blue)}.profile-menu{position:absolute;top:58px;right:0;width:230px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 45px rgba(28,52,105,.16);padding:8px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:.18s;z-index:30}.profile-menu.open{opacity:1;visibility:visible;transform:translateY(0)}.profile-menu button{width:100%;border:0;background:transparent;padding:12px;border-radius:11px;display:flex;align-items:center;gap:10px;color:var(--ink);text-align:right}.profile-menu button:hover{background:#f3f7fd}.profile-menu .danger-link{color:var(--bad)}.menu-separator{height:1px;background:var(--line);margin:5px 8px}
.profile-hero{margin-top:20px;min-height:210px;border:1px solid #d8e3ef;border-radius:24px;background:radial-gradient(circle at 82% 30%,rgba(67,150,226,.15),transparent 28%),linear-gradient(105deg,#f8fbff 0,#edf6ff 42%,#fff 72%);box-shadow:0 12px 32px rgba(33,67,128,.06);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;padding:32px 42px;overflow:hidden;position:relative}.profile-hero:after{content:"";position:absolute;left:-40px;bottom:-90px;width:360px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(18,63,167,.08),transparent 70%)}.hero-copy{z-index:1}.hero-copy .welcome{display:block;color:var(--blue-2);font-size:15px;font-weight:600;margin-bottom:5px}.hero-copy h1{font-family:"BigVesta";font-size:38px;margin:0 0 8px}.hero-copy p{margin:0;color:var(--muted);font-size:15px}.hero-message{min-width:200px;text-align:center;color:#4e6794;display:flex;flex-direction:column;gap:11px;font-family:"BigVesta";z-index:1}.hero-message strong,.hero-message span{font-size:25px;font-weight:400;line-height:1.05}.hero-message:after{content:"";width:64px;height:3px;border-radius:3px;background:var(--blue-2);margin:7px auto 0}
.profile-tabs{display:flex;justify-content:flex-start;gap:8px;margin-top:22px;padding:0 18px}.profile-tabs button{min-width:190px;height:58px;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;background:#f5f8fd;color:#5f6f88;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:600;position:relative}.profile-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 -8px 24px rgba(33,67,128,.05)}.profile-tabs button.active:after{content:"";position:absolute;bottom:0;left:28px;right:28px;height:3px;border-radius:3px;background:var(--blue-2)}.profile-content{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow);display:grid;grid-template-columns:280px 1fr;gap:18px;min-height:360px}.info-card{background:linear-gradient(160deg,#f7fbff,#e7f3ff);border:1px solid #d7e6f6;border-radius:18px;padding:28px;display:flex;flex-direction:column;align-items:flex-start;min-height:320px}.info-icon{width:48px;height:48px;border-radius:14px;background:#e6f0ff;color:var(--blue);display:grid;place-items:center;margin-bottom:24px}.info-icon svg{width:25px;height:25px}.info-card h3{font-family:"BigVesta";font-size:20px;margin:0 0 8px}.info-card p{color:var(--muted);line-height:1.8;margin:0}.mini-stat{margin-top:auto;border-top:1px solid #d9e6f4;width:100%;padding-top:20px;display:flex;align-items:end;gap:8px}.mini-stat b{font-size:30px;color:var(--blue)}.mini-stat span{font-size:12px;color:var(--muted);padding-bottom:5px}.details-card,.files-card{border:1px solid #e2eaf3;border-radius:18px;padding:24px}.section-heading{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}.heading-icon{width:44px;height:44px;border-radius:12px;background:#eef5ff;color:var(--blue);display:grid;place-items:center}.section-heading h2{font-family:"BigVesta";font-size:22px;margin:0 0 4px}.section-heading p{margin:0;color:var(--muted);font-size:12px}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.detail-item{min-height:88px;border:1px solid var(--line);border-radius:15px;background:#fff;display:flex;align-items:center;gap:13px;padding:16px}.detail-item.wide{grid-column:1/-1}.detail-icon{width:42px;height:42px;flex:0 0 auto;border-radius:12px;background:#f0f6ff;color:var(--blue-2);display:grid;place-items:center}.detail-icon svg{width:21px;height:21px}.detail-item div{min-width:0;display:flex;flex-direction:column;gap:5px}.detail-item label{font-size:11px;color:var(--muted)}.detail-item b{font-size:14px;font-weight:600;overflow-wrap:anywhere}.ltr{direction:ltr;text-align:right}.access-pill{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 12px;font-size:11px;font-weight:600}.access-pill.approved{background:var(--ok-bg);color:var(--ok)}.access-pill.pending{background:#fff7df;color:#9b6a00}
.files-card{grid-column:1/-1}.files-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.files-head .section-heading{flex:1}.linked-section,.documents-section{margin-top:22px}.linked-section>h3,.documents-section>h3{font-family:"BigVesta";font-size:16px;margin:0 0 12px}.linked-files-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.linked-file{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;align-items:center;gap:12px;background:linear-gradient(180deg,#fff,#fbfdff)}.file-icon{width:46px;height:46px;border-radius:13px;background:#eef5ff;color:var(--blue);display:grid;place-items:center}.file-copy{min-width:0;flex:1}.file-copy h3{font-family:"BigVesta";font-size:16px;margin:0 0 3px}.file-copy p{margin:0 0 5px;color:var(--muted);font-size:11px}.file-copy span{font-size:11px;color:#53637b}.document-list{display:flex;flex-direction:column;gap:10px}.document-row{border:1px solid var(--line);border-radius:15px;padding:13px 15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;background:#fff}.document-icon{width:42px;height:42px;border-radius:12px;background:#f0f6ff;color:var(--blue-2);display:grid;place-items:center}.document-main{display:flex;flex-direction:column;gap:4px;min-width:0}.document-main b{font-size:13px;overflow-wrap:anywhere}.document-main span{font-size:11px;color:var(--muted)}.document-meta{display:flex;flex-direction:column;gap:3px;align-items:flex-end;color:#64748b;font-size:11px}.document-meta small{font-size:10px}.empty-state{min-height:250px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted)}.empty-state>svg{width:42px;height:42px;color:#9db2cc;margin-bottom:10px}.empty-state h3{font-family:"BigVesta";color:var(--ink);margin:0 0 6px}.empty-state p{margin:0;font-size:12px}.compact-empty{min-height:150px}.spinner{width:28px;height:28px;border:3px solid #d8e5f6;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:10px}@keyframes spin{to{transform:rotate(360deg)}}
.logged-subpage{place-items:start center;padding-top:24px}.subpage-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.subpage-brand{display:flex;align-items:center;gap:10px}.subpage-brand img{width:132px;height:54px;object-fit:contain}.subpage-brand span{font-family:"BigVesta";font-size:14px;color:var(--muted)}.back-btn{border:1px solid var(--line);background:#fff;color:var(--blue);min-height:42px;padding:0 14px;border-radius:12px;display:flex;align-items:center;gap:8px;font-weight:600}.back-btn:hover{background:#f3f7fd}.account-note{background:#f5f8fd;border:1px solid var(--line);border-radius:12px;padding:11px 13px;color:var(--muted);font-size:12px;margin-bottom:16px}.account-note b{color:var(--ink)}
.loading-page{min-height:100vh;display:grid;place-items:center;align-content:center;gap:12px}.loading-logo img{width:150px}.loading-line{width:180px;height:3px;border-radius:999px;background:linear-gradient(90deg,#d7e5f6,var(--blue),#d7e5f6);animation:pulse 1.1s infinite ease-in-out}.loading-page p{color:var(--muted);font-size:12px}@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}
@media(max-width:980px){.app-topbar{grid-template-columns:1fr auto;gap:10px}.profile-hero{grid-template-columns:auto 1fr;padding:28px}.hero-message{display:none}.profile-content{grid-template-columns:1fr}.info-card{min-height:auto}.mini-stat{margin-top:24px}.linked-files-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.auth-card{padding:22px;border-radius:19px}.grid,.details-grid{grid-template-columns:1fr}.field.full,.detail-item.wide{grid-column:auto}.app-shell{width:min(100% - 18px,1460px)}.app-topbar{padding:8px 12px;min-height:70px}.top-brand img{width:108px;height:48px}.top-brand .brand-label{font-size:12px}.user-copy{display:none}.menu-glyph{display:none}.profile-menu{right:auto;left:0}.profile-hero{min-height:170px;padding:22px;gap:16px}.avatar{width:64px;height:64px}.hero-copy h1{font-size:27px}.hero-copy p{font-size:12px}.profile-tabs{padding:0 4px}.profile-tabs button{min-width:0;flex:1}.profile-content{padding:10px;border-radius:18px}.details-card,.files-card{padding:16px}.linked-files-grid{grid-template-columns:1fr}.files-head{align-items:flex-start;flex-direction:column}.document-row{grid-template-columns:auto 1fr}.document-meta{grid-column:2;align-items:flex-start}.subpage-bar{align-items:center}.subpage-brand img{width:108px}}
