:root{--red:#fe0942;--navy:#091a40;--ink:#14213d;--muted:#667085;--line:#dfe5ef;--paper:#fff;--wash:#f5f7fb;--shadow:0 16px 40px rgba(9,26,64,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--wash);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--wash)}button,input,textarea,select{font:inherit}button{cursor:pointer}.skip-link{position:absolute;left:-999px;top:8px;background:#fff;padding:10px 14px;z-index:20}.skip-link:focus{left:8px}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--navy);color:#fff;padding:28px 18px;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:1.08rem;letter-spacing:-.02em}.brand img{width:34px;height:34px;object-fit:contain;filter:brightness(0) invert(1)}.brand small{display:block;color:#b8c6e4;font-size:.69rem;font-weight:500;letter-spacing:.02em}.nav{display:grid;gap:5px}.nav button,.mobile-nav button{border:0;background:transparent;color:#c7d1e5;text-align:left;padding:12px;border-radius:10px;font-weight:650}.nav button:hover,.nav button.active,.mobile-nav button.active{color:#fff;background:rgba(255,255,255,.12)}.sidebar-foot{margin-top:auto;color:#aab7d0;font-size:.78rem;line-height:1.5}.content{min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,56px);gap:18px}.topbar h1{font-size:1rem;margin:0}.user-chip{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.86rem}.avatar{width:34px;height:34px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:800}.main{max-width:1440px;margin:auto;padding:clamp(24px,4vw,56px)}.hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin-bottom:28px}.eyebrow{color:var(--red);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.hero h2{font-size:clamp(2rem,4vw,4rem);line-height:.98;letter-spacing:-.065em;margin:8px 0 14px;max-width:720px}.hero p{color:var(--muted);max-width:640px;margin:0;line-height:1.65}.grid{display:grid;gap:18px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 4px 16px rgba(9,26,64,.03)}.card h3{margin:0 0 8px;font-size:1.05rem}.card p{color:var(--muted);line-height:1.55}.stat{font-size:2.2rem;font-weight:850;letter-spacing:-.06em;margin:14px 0 4px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:30px 0 14px}.section-title h2{font-size:1.2rem;margin:0}.btn{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:10px;padding:11px 15px;font-weight:750;transition:.15s}.btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(9,26,64,.1)}.btn.primary{background:var(--red);border-color:var(--red);color:#fff}.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}.btn.danger{color:#b0002e;border-color:#f4b5c4}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.actions{display:flex;flex-wrap:wrap;gap:9px}.form{display:grid;gap:14px}.form label{display:grid;gap:7px;font-weight:700;font-size:.87rem}.form input,.form textarea,.form select{border:1px solid #cbd5e1;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);width:100%}.form textarea{min-height:150px;resize:vertical}.form input:focus,.form textarea:focus,.form select:focus,.btn:focus-visible,.nav button:focus-visible{outline:3px solid rgba(254,9,66,.28);outline-offset:2px}.notice{border-radius:12px;padding:14px 16px;background:#eef3fb;color:var(--navy);line-height:1.5}.notice.error{background:#fff0f3;color:#a1002d}.notice.success{background:#eef3fb;color:#0c315b}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:800;background:#eef1f7;color:var(--navy)}.pill.red{background:#ffe4eb;color:#b0002e}.pill.dark{background:#dfe8f8}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:650px}.table th,.table td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);vertical-align:top}.table th{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.table tr:last-child td{border-bottom:0}.empty{text-align:center;color:var(--muted);padding:34px 18px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 85% 10%,#ffbed0 0,#fff4f7 22%,var(--wash) 58%)}.auth-layout{width:min(1080px,100%);display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:stretch}.auth-intro{background:var(--navy);color:#fff;border-radius:26px;padding:clamp(28px,6vw,70px);display:flex;flex-direction:column;justify-content:space-between;min-height:570px}.auth-intro h1{font-size:clamp(2.8rem,6vw,5.6rem);line-height:.88;letter-spacing:-.08em;margin:55px 0 22px}.auth-intro p{color:#c8d4ea;line-height:1.65;max-width:420px}.auth-box{background:#fff;border:1px solid var(--line);border-radius:26px;padding:clamp(24px,5vw,52px);box-shadow:var(--shadow);align-self:center}.auth-box h2{margin:0 0 8px;font-size:1.8rem;letter-spacing:-.04em}.auth-box>p{color:var(--muted);line-height:1.5}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:25px 0;padding-bottom:6px}.tabs button{border:0;background:transparent;padding:9px 10px;color:var(--muted);font-weight:750}.tabs button.active{color:var(--red);border-bottom:2px solid var(--red)}.mobile-nav{display:none}.catalog-card{min-height:190px;display:flex;flex-direction:column}.catalog-card .pill{align-self:flex-start;margin-bottom:15px}.catalog-card .actions{margin-top:auto}.progress{height:7px;background:#e9edf4;border-radius:9px;overflow:hidden}.progress i{display:block;height:100%;background:var(--red);width:45%}.signature{border:1px dashed #b9c4d7;background:#fafbfe;border-radius:12px;padding:15px}.signature svg{max-width:100%;height:70px}.drawer{position:fixed;inset:0;background:rgba(9,26,64,.35);display:grid;place-items:center;padding:18px;z-index:10}.drawer-panel{background:#fff;border-radius:18px;padding:24px;width:min(720px,100%);max-height:90vh;overflow:auto}.close{float:right;border:0;background:transparent;font-size:1.5rem;color:var(--muted)}.footer-note{font-size:.78rem;color:var(--muted);margin-top:20px}
@media(max-width:900px){.shell{display:block}.sidebar{display:none}.topbar{height:66px}.main{padding:24px 18px 90px}.grid-3{grid-template-columns:1fr 1fr}.mobile-nav{display:flex;position:fixed;z-index:5;bottom:0;left:0;right:0;background:var(--navy);padding:8px max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{font-size:.7rem;text-align:center;padding:8px 7px}.mobile-nav button span{display:block;font-size:1.15rem;margin-bottom:2px}.auth-layout{grid-template-columns:1fr}.auth-intro{min-height:auto;padding:32px}.auth-intro h1{font-size:3.4rem;margin:38px 0 14px}.auth-intro p{margin-bottom:0}.auth-intro .intro-detail{display:none}}
@media(max-width:560px){.grid-3,.grid-2{grid-template-columns:1fr}.hero{display:block}.hero .actions{margin-top:22px}.topbar{padding:0 16px}.topbar h1{font-size:.9rem}.user-chip .user-email{display:none}.main{padding-left:15px;padding-right:15px}.card{padding:18px}.auth-page{padding:12px}.auth-intro{border-radius:18px}.auth-box{border-radius:18px;padding:24px 19px}.section-title{align-items:flex-start;flex-direction:column}.actions .btn{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Canonical full wordmark: keep the red flame and make the wordmark readable. */
.sidebar .brand,.auth-intro .brand{color:#fff}
.sidebar .brand img,.auth-intro .brand img{width:140px;height:auto;padding:7px 9px;background:#fff;border-radius:8px;filter:none}
.topbar .avatar{border:0}
.drawer-panel:focus{outline:3px solid rgba(254,9,66,.28);outline-offset:3px}

.resource-viewer{display:block;width:100%;height:65vh;min-height:320px;border:1px solid var(--line);border-radius:12px;margin-top:18px;background:#eef0f5}.footer-note{overflow-wrap:anywhere}

.signature-pad{display:block;width:100%;height:auto;aspect-ratio:3/1;border:1px solid #8795aa;border-radius:12px;background:#fff;touch-action:none;margin:12px 0;user-select:none}.is-busy .signature-pad{pointer-events:none}.signature-drawing p{margin:6px 0}

.document-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font:inherit;background:#f4f6fa;padding:18px;border-radius:12px;max-height:45vh;overflow:auto}

.tour-guide{position:fixed;right:22px;bottom:22px;width:min(410px,calc(100vw - 32px));max-height:60vh;overflow:auto;padding:22px;background:#fff;border:2px solid var(--navy);border-radius:18px;box-shadow:var(--shadow);z-index:8}.tour-guide h2{font-size:1.2rem;margin:12px 0 8px}.tour-guide p{line-height:1.55;color:var(--muted)}.tour-guide .btn{padding:9px 12px}.tour-guide h2:focus{outline:2px solid var(--red);outline-offset:4px}
@media(max-width:900px){.mobile-nav{justify-content:flex-start;overflow-x:auto}.mobile-nav button{flex:0 0 auto;min-width:62px}.tour-guide{right:16px;bottom:90px}}
@media print{.sidebar,.topbar,.mobile-nav,.tour-guide,.toast,.drawer-panel .actions,.drawer-panel .close{display:none!important}.drawer{position:static;padding:0;background:transparent}.drawer-panel{max-height:none;width:100%;overflow:visible;border-radius:0}.drawer-panel pre{overflow-wrap:anywhere}.shell:has(+.drawer){display:none!important}.resource-viewer{height:auto}}

.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,10px);max-width:calc(100vw - 32px);width:max-content;padding:12px 18px;border-radius:12px;background:var(--navy);color:#fff;box-shadow:var(--shadow);z-index:20;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s;overflow-wrap:anywhere}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}.notice{overflow-wrap:anywhere}
@media(max-width:900px){.toast{bottom:88px}}
