:root{--blue:#2860e8;--blue-hover:#184bd0;--ink:#19253b;--muted:#7c879a;--line:#e8edf5;--canvas:#f6f8fc;--light-blue:#edf3ff;--red:#ca3e49;--green:#208469;--radius:16px;--font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;font-family:var(--font);font-size:14px;color:var(--ink);line-height:1.6;background:var(--canvas);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-decoration:none}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;letter-spacing:-.5px}button:focus-visible,a:focus-visible{outline:3px solid #a9c3ff;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:none;border-color:#7b9eef;box-shadow:0 0 0 3px #2860e810}[hidden]{display:none!important}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:#8190aa}.brand{display:inline-flex;align-items:center;gap:11px;font-weight:800;font-size:24px;letter-spacing:1px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;background:var(--blue);border-radius:11px;color:white;font-style:italic;font-weight:800;font-size:26px;letter-spacing:-3px;padding-right:3px;box-shadow:0 4px 9px #2860e81a}.brand-dot{color:var(--blue)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 16px;border:1px solid transparent;border-radius:9px;font-size:13px;line-height:1.5;font-weight:600;transition:background .16s,box-shadow .16s,color .16s}.button .icon{width:17px;height:17px}.button-primary{background:var(--blue);color:#fff;box-shadow:0 3px 6px #2860e817}.button-primary:hover:not(:disabled){background:var(--blue-hover);box-shadow:0 4px 10px #2860e826}.button-secondary{background:#fff;border-color:#e1e7f1;color:#536078}.button-secondary:hover:not(:disabled){background:#f8faff;border-color:#cbd7ed}.button-danger{background:var(--red);color:#fff}.button-danger:hover:not(:disabled){background:#b8323c}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;padding:6px 0;font-size:12px;color:#7a869b}.text-button:hover{color:var(--blue)}.text-button .icon{width:16px;height:16px}.icon-button{border:0;background:transparent;width:34px;height:34px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#8a96aa;flex-shrink:0}.icon-button:hover{background:#edf3ff;color:var(--blue)}.icon-button .icon{width:18px;height:18px}label{display:block;font-size:12px;font-weight:600;color:#4a5870;margin-bottom:8px}input,textarea,select{max-width:100%;border:1px solid #e0e6ef;border-radius:9px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}input,textarea{width:100%;padding:11px 13px}input::placeholder,textarea::placeholder{color:#a3acbc;font-size:13px}textarea{resize:vertical;min-height:100px}small{font-size:11px}.form-error{margin-top:10px;color:var(--red);font-size:12px;line-height:1.6}.form-error:empty{display:none}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #dce5f8;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Entry */
.login-page{min-height:100vh;background:#fcfdff;display:flex;flex-direction:column;position:relative;overflow-x:hidden}.login-page:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 18% 70%,#edf3ff 0,transparent 52%)}.login-header,.login-footer,.login-layout{position:relative;z-index:1}.login-header{height:110px;display:flex;align-items:center;max-width:1280px;width:100%;padding:0 56px;margin:auto}.login-layout{width:100%;max-width:1120px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:90px;padding:50px 35px 60px;flex:1}.login-story{padding-bottom:20px}.login-story .eyebrow{display:flex;align-items:center;gap:12px;color:#6687c7}.eyebrow-line{width:27px;height:2px;background:#6d95ee}.login-story h1{font-size:48px;line-height:1.4;letter-spacing:-1.4px;margin:23px 0 21px;font-weight:700}.login-story h1 span{color:var(--blue)}.gateway-art{height:235px;width:390px;position:relative;margin:14px -4px -22px}.art-orbit{position:absolute;border:1px dashed #d7e2f9;border-radius:50%;left:50%;top:54%;transform:translate(-50%,-50%) rotate(-16deg)}.art-orbit-outer{width:340px;height:170px}.art-orbit-inner{width:245px;height:124px;opacity:.6}.art-core{position:absolute;left:155px;top:85px;width:80px;height:80px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;background:linear-gradient(145deg,#fff,#edf3ff);box-shadow:0 12px 35px #2860e816,inset 0 0 0 1px white;border:1px solid #d8e4ff;border-radius:22px;transform:rotate(-8deg);color:var(--blue)}.art-core .icon{width:27px;height:27px}.art-core span{font-size:9px;letter-spacing:1.6px;font-weight:700}.art-node{position:absolute;width:49px;height:49px;display:grid;place-items:center;border:1px solid #e4eaf6;border-radius:15px;background:#fff;box-shadow:0 8px 22px #5e83cd10}.art-node .icon{width:22px;height:22px}.art-node-one{top:61px;left:36px;color:#5384e3;transform:rotate(-9deg)}.art-node-two{top:39px;right:22px;color:#7767d2;transform:rotate(8deg)}.art-node-three{bottom:15px;right:72px;color:#47a38b;transform:rotate(-5deg)}.art-line{position:absolute;height:1px;transform-origin:0 0;background:linear-gradient(90deg,#cbdaf5,#b5cafa)}.art-line-one{left:79px;top:90px;width:100px;transform:rotate(17deg)}.art-line-two{left:223px;top:109px;width:112px;transform:rotate(-23deg)}.art-line-three{left:219px;top:157px;width:80px;transform:rotate(37deg)}.art-dot{position:absolute;width:7px;height:7px;background:#c2d4fa;border:2px solid #f8faff;border-radius:50%;box-shadow:0 0 0 3px #edf3ff}.art-dot-one{left:98px;bottom:37px}.art-dot-two{right:90px;top:29px}.login-card{background:#fff;border:1px solid #e9eef8;border-radius:22px;padding:38px 38px 0;box-shadow:0 18px 65px #1d3a7008,0 3px 10px #1d3a7003}.login-card-symbol{width:48px;height:48px;background:var(--light-blue);color:var(--blue);border-radius:14px;display:grid;place-items:center;margin-bottom:16px}.login-card-symbol .icon{width:24px;height:24px}.login-card h2{font-size:25px;margin:0 0 20px}.password-field{position:relative}.password-field input{height:48px;padding-left:41px;padding-right:44px;background:#fcfdff}.field-icon{position:absolute;top:15px;left:14px;width:17px;height:17px;color:#a1adc0}.password-toggle{position:absolute;right:6px;top:7px}.login-submit{width:100%;height:47px;margin-top:19px;justify-content:space-between;padding:0 17px}.login-submit span{flex:1;text-align:center;padding-left:20px}.login-help{display:flex;align-items:flex-start;gap:7px;color:#8f9aae;font-size:11px;margin:19px 0 31px;justify-content:center}.login-help .icon{width:14px;height:14px;margin-top:2px}.login-card-footer{border-top:1px solid #f0f3f8;margin:0 -38px;padding:17px 18px;display:flex;justify-content:center;align-items:center;gap:6px;color:#a1aabd;font-size:10px;letter-spacing:.2px}.login-card-footer .icon{width:13px;height:13px}.login-footer{max-width:1280px;width:100%;padding:26px 56px;display:flex;justify-content:space-between;margin:auto;color:#a2adbf;font-size:10px;letter-spacing:1.2px}
/* Workspace */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:224px;background:#fff;border-right:1px solid var(--line);padding:29px 20px 18px;display:flex;flex-direction:column;z-index:30}.sidebar>.brand{margin-left:10px}.sidebar .brand{font-size:23px}.sidebar .brand-mark{width:34px;height:34px;font-size:24px}.workspace-tag{display:flex;align-items:center;gap:10px;background:#f8faff;border:1px solid #edf1f8;border-radius:10px;padding:12px 9px;margin-top:35px;margin-bottom:30px}.workspace-avatar{height:31px;width:31px;display:grid;place-items:center;border-radius:8px;background:#e9f0ff;color:#5b82d6;font-weight:700;font-size:12px}.workspace-tag>div{flex:1}.workspace-tag strong{display:block;font-size:12px;font-weight:600}.workspace-tag div>span{display:block;color:#98a3b7;font-size:9px;margin-top:2px}.workspace-tag>.icon{width:12px;height:12px;color:#aab6c9}.nav-caption{font-size:10px;color:#a0acc0;margin:0 12px 11px;letter-spacing:1px}.navigation{display:flex;flex-direction:column;gap:6px}.nav-item{position:relative;display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:9px;color:#7c879a;font-size:13px}.nav-item>.icon{width:18px;height:18px}.nav-item:hover{background:#f8faff;color:var(--blue)}.nav-item.active{background:#edf3ff;color:var(--blue);font-weight:600}.nav-active-dot{margin-left:auto;background:var(--blue);width:5px;height:5px;border-radius:50%}.nav-item:not(.active) .nav-active-dot{display:none}.nav-count{margin-left:auto;background:#f0f3f8;border-radius:5px;font-size:10px;padding:0 5px;color:#9aa7ba;min-width:19px;text-align:center}.sidebar-bottom{margin-top:auto;padding-top:34px}.sidebar-security{display:flex;align-items:flex-start;gap:9px;background:#f8faff;border:1px solid #edf2fa;border-radius:10px;padding:14px 11px;margin-bottom:19px}.sidebar-security>.icon{color:#7997d0;width:18px;height:18px;margin-top:2px}.sidebar-security strong{font-size:11px;font-weight:500;color:#7387ab}.sidebar-security p{font-size:9px;color:#9aa7bc;margin-top:3px}.account-button{display:flex;align-items:center;gap:10px;background:transparent;border:0;padding:13px 5px 3px;border-top:1px solid var(--line);width:100%;text-align:left}.account-avatar{width:33px;height:33px;border-radius:50%;background:#f0f3f9;display:grid;place-items:center;font-size:12px;color:#8492aa;font-weight:600}.account-button>span:nth-child(2){flex:1}.account-button strong{display:block;font-size:11px;font-weight:600}.account-button small{display:block;font-size:9px;color:#9aa5b8;margin-top:2px}.account-button>.icon{width:15px;height:15px;color:#a6b0c2}.account-button:hover strong,.account-button:hover>.icon{color:var(--blue)}.app-shell{margin-left:224px}.topbar{height:72px;background:#ffffffd9;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.breadcrumbs{display:flex;align-items:center;gap:13px;font-size:11px;color:#9aa6b8}.breadcrumbs strong{font-weight:500;color:#54647f}.breadcrumb-separator{color:#c6cfdd;font-weight:300}.topbar-actions{display:flex;align-items:center;gap:25px}.admin-badge{display:flex;align-items:center;gap:6px;color:#6f85ab;background:#f4f7fd;padding:5px 9px;border:1px solid #e9eff9;border-radius:6px;font-size:10px}.admin-badge>span{width:5px;height:5px;background:#83a6eb;border-radius:50%}.topbar .text-button{font-size:11px}.dashboard-main{max-width:1450px;margin:auto;padding:35px 38px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.page-heading h1{font-size:27px;margin:6px 0 8px;letter-spacing:.1px}.page-heading>.muted,.page-heading div>.muted{font-size:12px}.heading-actions{display:flex;align-items:center;gap:17px;padding-top:14px}.date-label{color:#98a3b6;font-size:11px}.heading-actions .button{font-size:11px;min-height:36px;padding:8px 12px}.heading-actions .icon{width:14px;height:14px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 22px 18px;box-shadow:0 3px 5px #25416b01}.metric-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#7b889e;gap:7px}.metric-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px}.metric-icon>.icon{width:16px;height:16px}.blue{background:#edf3ff;color:#6490ed}.cyan{background:#ecf8fc;color:#65a9bf}.violet{background:#f2effd;color:#9c8bd8}.amber{background:#fff7eb;color:#d4ad6f}.metric-value{display:block;font-size:31px;line-height:1.35;letter-spacing:-1.2px;font-weight:650;margin:11px 0 9px;font-variant-numeric:tabular-nums}.metric-card>p{font-size:9px;color:#a3adbe;display:flex;align-items:center;gap:5px;min-height:16px}.metric-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#96b8ed}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.analytics-panel{padding:23px 25px 0;margin-bottom:29px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading h2,.section-heading h2{font-size:16px;letter-spacing:0}.panel-heading p{font-size:10px;margin-top:4px}.select-wrap{margin:0}.select-wrap select{min-width:126px;font-size:11px;padding:7px 30px 7px 12px;height:34px;color:#6b7c98;background:#fcfdff;cursor:pointer}.chart-toolbar{margin-top:25px;display:flex;align-items:center;justify-content:space-between}.chart-legend{display:flex;gap:21px;font-size:10px;color:#8c98ae}.chart-legend>span{display:flex;align-items:center;gap:6px}.legend-dot{width:6px;height:6px;display:inline-block;border-radius:50%}.legend-pv{background:#5080e9}.legend-uv{background:#99b4e7}.period-chip{display:flex;align-items:center;gap:5px;font-size:9px;color:#9ca8bb}.period-chip .icon{width:12px;height:12px}.chart-container{position:relative;min-height:240px;margin:5px -5px 0}.chart-container svg{display:block;width:100%;height:250px;overflow:visible}.chart-grid-line{stroke:#edf1f7;stroke-width:1;stroke-dasharray:4 5}.chart-axis-label{font-family:var(--font);font-size:10px;fill:#a3aec0}.chart-line-pv{fill:none;stroke:#4b7ee9;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-line-uv{fill:none;stroke:#a2b9e5;stroke-width:2;stroke-dasharray:5 4;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:url(#chart-gradient)}.chart-point{fill:#fff;stroke:#4b7ee9;stroke-width:2}.chart-hover-dot{fill:#4b7ee9;stroke:white;stroke-width:2;opacity:0}.chart-hit:hover .chart-hover-dot,.chart-hit:focus .chart-hover-dot{opacity:1}.chart-empty{position:absolute;inset:28px 30px 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;gap:6px;background:linear-gradient(90deg,#ffffff00,#ffffffe8 25%,#ffffffe8 75%,#ffffff00)}.chart-empty strong{font-weight:500;font-size:13px;color:#8998b2}.chart-empty span{font-size:10px;color:#abb5c6}.chart-footnote{margin:0 -25px;padding:12px 25px;background:#fcfdff;border-top:1px solid #f1f4f9;display:flex;align-items:center;gap:6px;color:#a4afc1;font-size:9px}.chart-footnote>.icon{height:12px;width:12px}.chart-footnote>.text-button{margin-left:auto;font-size:9px;padding:0;white-space:nowrap}.table-wrap{max-height:250px;overflow:auto;border-top:1px solid var(--line);margin:0 -25px}.data-table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}.data-table th{text-align:left;color:#8492a8;font-weight:500;background:#f8faff;position:sticky;top:0}.data-table th,.data-table td{padding:9px 25px;border-bottom:1px solid #f1f4f9}.data-table td{color:#697b98}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:15px}.section-title-line{display:flex;align-items:center;gap:9px}.count-pill{font-size:9px;line-height:20px;min-width:22px;background:#eaf0fa;border-radius:6px;text-align:center;color:#8c9ebc;padding:0 6px}.section-hint{font-size:10px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.project-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:border-color .18s,box-shadow .18s}.project-card:hover{border-color:#d5e0f3;box-shadow:0 5px 18px #20417005}.project-card-main{padding:22px 23px 20px}.project-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.project-symbol{height:45px;width:45px;border-radius:12px;background:#edf3ff;display:grid;place-items:center;color:#5481d9}.project-symbol .icon{height:23px;width:23px}.status-badge{display:inline-flex;align-items:center;gap:5px;background:#eff8f4;border:1px solid #e1f1e8;border-radius:20px;font-size:9px;padding:3px 8px;color:#69a48e}.status-badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status-badge.disabled{background:#f6f7f9;border-color:#e9edf3;color:#a1abba}.status-badge.offline{background:#fff6ec;border-color:#f7e9d9;color:#c09a65}.status-badge.unknown{background:#f3f6fc;border-color:#e6edf9;color:#879ab9}.project-title{font-size:16px;letter-spacing:0;margin:17px 0 6px}.project-description{font-size:11px;color:#8b98ad;line-height:1.9;min-height:42px;overflow-wrap:anywhere}.project-host{display:flex;align-items:center;gap:5px;color:#a2aec0;font-size:10px;margin:13px 0 20px}.project-host .icon{width:11px;height:11px}.project-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid #f0f3f8;padding-top:15px;margin-bottom:19px}.project-metric{display:flex;flex-direction:column;padding-left:20px;border-left:1px solid #edf1f7}.project-metric:first-child{padding-left:0;border:0}.project-metric span{color:#a2aec0;font-size:9px}.project-metric strong{font-size:17px;font-weight:600;margin-top:3px;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.project-action-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-action-row .button{font-size:11px;min-height:35px;padding:7px 13px}.project-action-row .button .icon{height:13px;width:13px}.project-last-visit{font-size:9px;color:#a7b1c1}.project-card-footer{background:#fcfdff;border-top:1px solid #eef2f8;padding:9px 16px;display:flex;align-items:center;gap:4px}.project-card-footer .text-button{font-size:10px;color:#8d9ab0;padding:5px 7px;gap:5px;border-radius:5px}.project-card-footer .text-button:hover{background:#eef3fc;color:var(--blue)}.project-card-footer .text-button .icon{width:12px;height:12px}.project-card-footer .project-toggle{margin-left:auto}.project-card-footer .project-toggle:hover{color:#c18b50;background:#fff6ec}.project-card.is-disabled .project-symbol{background:#f0f3f8;color:#9aa9c2}.project-card.is-disabled .project-title{color:#8b98ad}.project-loading{min-height:210px;display:flex;align-items:center;justify-content:center;gap:10px;grid-column:1/-1;border:1px dashed #dce5f3;border-radius:var(--radius);color:#93a0b6;font-size:12px}.project-empty{padding:45px 25px;text-align:center;border:1px dashed #dce5f3;background:#fafcff;border-radius:var(--radius)}.empty-symbol{width:49px;height:49px;border-radius:15px;background:#edf3ff;color:#97b0df;display:grid;place-items:center;margin:0 auto 16px}.project-empty h3{font-size:14px;color:#7386a5}.project-empty p{margin-top:8px;font-size:11px;color:#9ba9c0;line-height:1.9}.dashboard-footer{display:flex;justify-content:space-between;margin-top:37px;padding-top:16px;border-top:1px solid #e8edf5;color:#a8b2c3;font-size:9px;letter-spacing:.2px}.footer-divider{color:#c6cfdd;margin:0 9px}.banner-error{display:flex;align-items:center;gap:10px;padding:11px 14px;background:#fff4f3;border:1px solid #f2dedc;border-radius:10px;color:#bd6a68;font-size:12px;margin-bottom:20px}.banner-error .icon{width:16px;height:16px}.banner-error .text-button{margin-left:auto;color:var(--red);white-space:nowrap}.mobile-menu,.sidebar-backdrop{display:none}
/* Dialogs */
.modal{border:1px solid #e5ebf5;border-radius:18px;padding:26px;width:min(520px,calc(100vw - 32px));color:var(--ink);box-shadow:0 25px 100px #142b5829;max-height:calc(100vh - 40px);overflow:auto}.modal-small{width:min(440px,calc(100vw - 32px))}.modal::backdrop{background:#15264646;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:23px}.modal-heading .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:6px}.modal-heading h2{font-size:20px;letter-spacing:0}.modal-heading>.icon-button{margin-right:-6px;margin-top:-5px}.modal form>label{margin-top:17px}.modal form>label:first-of-type{margin-top:0}.modal form>small{display:block;margin-top:6px;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.modal-actions .button{font-size:12px}.form-row{display:grid;grid-template-columns:1fr 1.7fr;gap:22px;margin-top:18px}.form-row small{display:block;margin-top:6px}.readonly-field span{display:block;font-size:11px;color:#7687a2;background:#f8faff;border:1px solid #edf1f8;border-radius:9px;padding:13px 10px;word-break:break-all}.confirm-description{font-size:13px;color:#7b8aa2;line-height:1.9;white-space:pre-line}.key-display{display:flex;align-items:center;gap:8px;padding:15px 13px;background:#f3f7ff;border:1px solid #dfe9fb;border-radius:10px;margin:18px 0}.key-display code{font-size:15px;color:#4776cf;word-break:break-all;flex:1;user-select:all}.key-warning{display:flex;align-items:flex-start;gap:8px;color:#ad986f;font-size:11px;line-height:1.9}.key-warning .icon{width:15px;height:15px;margin-top:3px}.small-note{font-size:11px;color:#98a3b6;margin-top:15px;line-height:1.8}.toast-region{position:fixed;bottom:26px;left:calc(50% + 112px);transform:translateX(-50%);z-index:100;max-width:calc(100vw - 40px);pointer-events:none}.toast{display:flex;align-items:center;gap:9px;box-shadow:0 7px 30px #162c531a;border:1px solid #e4ebf6;background:#fff;padding:12px 20px;border-radius:10px;color:#60779c;font-size:12px;animation:toast-in .2s ease-out}.toast .icon{width:17px;height:17px;color:#64a58f}.toast.is-error .icon{color:var(--red)}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1650px){.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-main{padding-top:40px}.page-heading{margin-bottom:32px}.metric-card{padding-top:23px;padding-bottom:23px}.analytics-panel{padding-top:27px}.chart-container svg{height:275px}}
@media(max-width:1150px){.dashboard-main{padding:29px 26px 20px}.topbar{padding:0 26px}.metric-grid{gap:12px}.metric-card{padding:16px}.metric-label{font-size:11px}.metric-value{font-size:29px}.metric-card>p{font-size:8px}.date-label{display:none}.project-card-main{padding:20px}.project-last-visit{max-width:150px;text-align:right}.login-layout{gap:45px;padding-left:45px;padding-right:45px}.login-story h1{font-size:42px}.gateway-art{transform:scale(.9);transform-origin:left center;margin-right:-40px}.login-card{padding:32px 30px 0}.login-card-footer{margin-left:-30px;margin-right:-30px}.login-card h2{font-size:23px}}
@media(max-width:940px){.sidebar{width:195px;padding-left:14px;padding-right:14px}.app-shell{margin-left:195px}.sidebar>.brand{margin-left:9px}.workspace-tag{gap:7px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:18px 20px}.metric-card>p{font-size:9px}.metric-value{font-size:30px;margin-top:7px;margin-bottom:7px}.project-grid{grid-template-columns:1fr}.page-heading h1{font-size:25px}.heading-actions{padding-top:5px}.toast-region{left:calc(50% + 97px)}.login-layout{gap:30px;padding:35px}.login-story h1{font-size:36px}.gateway-art{transform:scale(.77);margin-right:-80px;margin-top:-6px;margin-bottom:-45px}.login-card{padding:29px 25px 0}.login-card-footer{margin-left:-25px;margin-right:-25px}.login-card h2{font-size:21px}.login-header{padding:0 36px}.login-footer{padding-left:36px;padding-right:36px}}
@media(max-width:700px){html{scroll-padding-top:80px}.sidebar{transform:translateX(-100%);transition:transform .2s;width:224px;z-index:50}.sidebar.is-open{transform:translateX(0)}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;border:0;background:#18315740;z-index:40;backdrop-filter:blur(2px)}.app-shell{margin-left:0}.mobile-menu{display:inline-flex;width:30px;height:30px;margin-left:-5px}.topbar{height:63px;padding:0 20px}.breadcrumbs{gap:9px;font-size:10px}.topbar-actions{gap:15px}.admin-badge{font-size:9px;padding:4px 7px}.topbar .text-button{font-size:10px}.dashboard-main{padding:25px 20px 20px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:25px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.7px}.page-heading div>.muted{font-size:10px}.heading-actions .button{padding:8px;min-height:32px}.heading-actions .button span{display:none}.heading-actions .button .icon{width:15px;height:15px}.metric-card{padding:16px 18px;border-radius:13px}.metric-grid{gap:12px;margin-bottom:20px}.metric-label{font-size:10px}.metric-icon{height:27px;width:27px;border-radius:8px}.metric-value{font-size:28px}.analytics-panel{padding:19px 17px 0;border-radius:13px}.panel-heading h2,.section-heading h2{font-size:15px}.panel-heading p{font-size:9px;max-width:195px}.select-wrap select{font-size:10px;min-width:100px;max-width:130px;height:32px;padding-left:9px;padding-right:18px}.chart-toolbar{margin-top:21px}.chart-container{min-height:190px;margin-top:4px}.chart-container svg{height:195px}.chart-empty{inset:25px 5px 35px}.chart-empty strong{font-size:11px}.chart-empty span{font-size:9px;max-width:235px;text-align:center}.chart-footnote{margin-left:-17px;margin-right:-17px;padding:11px 17px;font-size:8px;align-items:flex-start}.chart-footnote>.icon{margin-top:2px}.chart-footnote>.text-button{font-size:8px;margin-top:0}.chart-legend{gap:15px;font-size:9px}.period-chip{font-size:8px}.table-wrap{margin-left:-17px;margin-right:-17px}.data-table th,.data-table td{padding:9px 17px}.section-hint{font-size:9px}.project-title{font-size:16px}.project-card{border-radius:13px}.dashboard-footer{font-size:8px;margin-top:29px}.toast-region{left:50%;bottom:18px}}
@media(max-width:380px){.dashboard-main{padding-left:14px;padding-right:14px}.topbar{padding-left:14px;padding-right:14px}.metric-card{padding:14px}.metric-card>p{font-size:8px}.metric-label{font-size:9px}.metric-icon{width:24px;height:24px}.metric-value{font-size:27px}.project-card-main{padding:18px}.project-card-footer{padding-left:8px;padding-right:8px}.project-metric{padding-left:12px}.project-last-visit{max-width:130px;font-size:8px}.form-row{gap:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Projects are the home screen. Analytics belong to the selected project. */
.projects-first .dashboard-main{padding-top:40px}
.admin-entry-badge{font-size:10px;color:#6f63a4;background:#f3f0fa;border:1px solid #e7e1f3;border-radius:20px;padding:3px 8px;white-space:nowrap}.project-topline:has(.admin-entry-badge){flex-wrap:wrap}.project-topline:has(.admin-entry-badge) .project-symbol{margin-right:auto}
.projects-first .page-heading{margin-bottom:30px}
.page-title-line{display:flex;align-items:center;gap:12px}
.page-title-line .count-pill{font-size:11px;min-width:27px;line-height:25px;margin-top:0}
.projects-first .project-grid.single-project{grid-template-columns:minmax(0,640px)}
.projects-first .project-card{display:flex;flex-direction:column}.projects-first .project-card-main{flex:1}
.projects-first .project-card-main{padding:26px}
.projects-first .project-title{font-size:19px;margin-top:20px;overflow-wrap:anywhere}
.projects-first .project-description{font-size:12px;line-height:1.9;min-height:45px}
.projects-first .project-host{font-size:11px;margin-bottom:23px;overflow-wrap:anywhere}
.projects-first .project-metrics{padding-top:20px;margin-bottom:18px}
.projects-first .project-metric span{font-size:10px}
.projects-first .project-metric strong{font-size:23px;margin-top:5px;overflow-wrap:anywhere}
.projects-first .project-last-visit{display:flex;align-items:center;gap:6px;margin:0 0 23px;max-width:none;text-align:left;font-size:10px}
.projects-first .project-last-visit .icon{width:12px;height:12px}
.projects-first .project-action-row{justify-content:flex-start;gap:10px}
.projects-first .project-action-row .button{font-size:12px;min-height:39px;padding:9px 15px}
.projects-first .project-card-footer{padding:11px 19px}
.projects-first .project-card-footer .text-button{font-size:11px}
.stats-modal{width:min(850px,calc(100vw - 32px));padding:27px}
.stats-modal .modal-heading{margin-bottom:22px}
.stats-modal .modal-heading h2{font-size:20px;overflow-wrap:anywhere}
.stats-project-host{font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.stats-loading{display:flex;justify-content:center;align-items:center;gap:10px;padding:70px 20px;color:#8b9ab1;font-size:12px}
.stats-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stats-summary>div{padding:16px 19px;background:#f7f9fe;border:1px solid #eaf0fa;border-radius:11px;min-width:0}
.stats-summary span{display:block;font-size:11px;color:#8493ac}
.stats-summary strong{display:block;font-size:25px;font-weight:650;margin-top:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats-last-visit{display:flex;align-items:center;gap:6px;font-size:10px;color:#97a5bb;margin:13px 0 22px}
.stats-last-visit .icon{height:12px;width:12px}
.stats-modal .analytics-panel{padding:21px 20px 0;margin-bottom:0;border-radius:12px}
.stats-modal .panel-heading h3{font-size:14px;letter-spacing:0}
.stats-modal .chart-toolbar{margin-top:18px}
.stats-modal .chart-footnote{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
.stats-modal .table-wrap{margin-left:-20px;margin-right:-20px}
.stats-modal .modal-actions{margin-top:20px}
@media(max-width:700px){
  .projects-first .dashboard-main{padding-top:27px}
  .projects-first .page-heading{margin-bottom:24px}
  .projects-first .project-card-main{padding:22px}
  .projects-first .project-title{font-size:18px}
  .projects-first .project-description{font-size:11px}
  .projects-first .project-metric strong{font-size:22px}
  .projects-first .project-action-row .button{font-size:11px;padding:8px 12px;min-height:37px}
  .projects-first .project-card-footer{padding:10px 13px}
  .projects-first .project-card-footer .text-button{font-size:10px}
  .stats-modal{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
  .stats-modal .modal-heading h2{font-size:17px}
  .stats-modal .modal-heading{margin-bottom:17px}
  .stats-summary{gap:8px}
  .stats-summary>div{padding:12px 10px}
  .stats-summary span{font-size:9px;min-height:28px}
  .stats-summary strong{font-size:22px}
  .stats-modal .analytics-panel{padding:16px 13px 0}
  .stats-modal .chart-footnote{margin-left:-13px;margin-right:-13px;padding:10px 13px}
  .stats-modal .table-wrap{margin-left:-13px;margin-right:-13px}
  .stats-modal .data-table th,.stats-modal .data-table td{padding-left:13px;padding-right:13px;font-size:10px}
  .stats-last-visit{margin-bottom:17px}
}
@media(max-width:380px){
  .projects-first .project-card-main{padding:18px}
  .projects-first .project-metric span{font-size:9px}
  .projects-first .project-action-row .button{padding:8px 10px}
  .stats-modal{padding:17px}
  .stats-summary>div{padding:11px 8px}
  .stats-summary strong{font-size:20px}
}

/* Project selection contains only the current password's accessible projects. */
.picker-topbar{height:82px;padding-left:max(28px,calc((100vw - 1100px)/2));padding-right:max(28px,calc((100vw - 1100px)/2))}
.picker-topbar .brand{font-size:22px}.picker-topbar .brand-mark{width:33px;height:33px;font-size:24px}
.project-picker .picker-main{max-width:1160px;padding-top:48px}
.project-picker .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-picker .project-description{margin-bottom:25px}
.project-picker .project-empty h2,.access-page .project-empty h2{font-size:16px;color:#7386a5}

/* Ordinary access passwords are managed independently of projects. */
.access-note{display:flex;align-items:flex-start;gap:9px;margin-bottom:22px;padding:13px 16px;border:1px solid #e3ebf9;border-radius:10px;background:#f0f5ff;color:#758aaa;font-size:12px}
.access-note>.icon{width:16px;height:16px;margin-top:2px}
.credential-list{display:grid;gap:14px}
.credential-card{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:23px 24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.credential-card.is-disabled{background:#fcfdff}
.credential-details{min-width:0;flex:1}
.credential-heading{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.credential-heading h2{font-size:16px;letter-spacing:0;overflow-wrap:anywhere;min-width:0}
.credential-symbol{width:31px;height:31px;display:grid;place-items:center;color:#6588c9;background:#edf3ff;border-radius:9px;flex-shrink:0}
.credential-symbol>.icon{width:17px;height:17px}
.credential-grants{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 0 42px}
.project-chip{border:1px solid #e4ebf7;background:#f8faff;color:#788ba8;border-radius:6px;padding:3px 8px;font-size:11px;overflow-wrap:anywhere}
.project-chip.is-disabled{color:#99a3b4;background:#f7f8fa;border-color:#e9edf2}
.no-permissions{font-size:11px}
.credential-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.credential-actions .text-button{font-size:11px;white-space:nowrap}
.credential-actions .icon{width:14px;height:14px}
.credential-actions .danger-text{color:#b9787c}.credential-actions .danger-text:hover{color:var(--red)}
.password-options{margin-top:18px}
.password-options select,#password-form select{width:100%;padding:10px 12px;font-size:13px}
.custom-password-field{margin-top:15px}.custom-password-field small{display:block;margin-top:6px}
.project-permissions{margin:22px 0 0;padding:0;border:0;min-width:0}
.project-permissions legend{font-size:12px;font-weight:600;color:#4a5870;margin-bottom:7px;padding:0}
.permissions-hint{font-size:11px;line-height:1.8;margin-bottom:11px}
.project-options{display:grid;gap:8px;max-height:230px;overflow:auto}
.check-label{display:flex;align-items:center;gap:10px;margin:0;font-weight:500;font-size:12px;cursor:pointer}
.check-label>input{width:16px;height:16px;margin:0;padding:0;flex-shrink:0;accent-color:var(--blue)}
.check-label>span{min-width:0;overflow-wrap:anywhere}
.project-option{padding:11px 12px;border:1px solid #e6ecf6;border-radius:8px;background:#fbfcff}
.project-option:has(input:checked){border-color:#adc4f3;background:#f0f5ff}
.permission-disabled{display:inline-block;margin-left:8px;color:#9ba6b7;font-size:10px}
.enabled-field{margin-top:20px!important}
.account-button:not(button):hover strong{color:inherit}
@media(max-width:1150px){.credential-card{align-items:flex-start;flex-direction:column;gap:17px}.credential-actions{padding-top:12px;border-top:1px solid #edf1f7;width:100%;justify-content:flex-start;gap:22px}}
@media(max-width:700px){
  .picker-topbar{height:68px;padding-left:22px;padding-right:22px}
  .project-picker .picker-main{padding-top:30px}
  .project-picker .project-grid{grid-template-columns:1fr}
  .access-page .page-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .access-page .heading-actions{width:100%;justify-content:flex-end}
  .access-page .heading-actions .button span{display:inline}
  .access-page .heading-actions .button{padding:8px 12px}
  .access-note{padding:12px;font-size:11px}
  .credential-card{padding:18px;gap:14px}
  .credential-heading{gap:9px}.credential-heading h2{font-size:15px}
  .credential-grants{margin-left:0}
  .credential-actions{justify-content:space-between;gap:8px}
  .credential-actions .text-button{font-size:10px;gap:5px}
  .credential-actions .icon{width:13px;height:13px}
}

.login-footer,.dashboard-footer{flex-wrap:wrap;row-gap:8px}
.icp-link{flex-basis:100%;text-align:center;color:#536078;font-size:12px;letter-spacing:normal}
.icp-link:hover,.icp-link:focus-visible{text-decoration:underline}

@media (max-width: 820px), (max-width: 1000px) and (max-height: 540px) {
  .login-page {
    --page-inset: clamp(16px, 5vw, 28px);
    --card-inset: clamp(16px, 5vw, 24px);
    min-height: 100dvh;
  }
  .login-header, .login-layout, .login-footer {
    max-width: 500px;
    margin: 0 auto;
    padding-left: max(var(--page-inset), env(safe-area-inset-left));
    padding-right: max(var(--page-inset), env(safe-area-inset-right));
  }
  .login-header {
    height: auto;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }
  .login-header .brand { min-height: 44px; gap: 9px; font-size: 21px; }
  .login-header .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 23px; }
  .login-layout {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-top: clamp(14px, 4vh, 38px);
    padding-bottom: 20px;
  }
  .login-story { padding: 0; }
  .login-story .eyebrow { gap: 8px; font-size: 10px; letter-spacing: 1.4px; color: #526b9c; }
  .login-story .eyebrow-line { width: 20px; }
  .login-story h1 { margin: 10px 0 0; font-size: clamp(29px, 8vw, 38px); line-height: 1.25; }
  .gateway-art { display: none; }
  .login-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: var(--card-inset) var(--card-inset) 0;
    border-radius: 18px;
  }
  .login-card-symbol { width: 38px; height: 38px; margin: 0; border-radius: 11px; }
  .login-card-symbol .icon { width: 20px; height: 20px; }
  .login-card h2 { margin: 0; font-size: clamp(19px, 5vw, 23px); line-height: 1.4; }
  #login-form, .login-help, .login-card-footer { grid-column: 1 / -1; }
  #login-form { min-width: 0; margin-top: 20px; }
  #login-form label { font-size: 14px; }
  .password-field input {
    height: 50px;
    padding-right: 50px;
    font-size: 16px;
    scroll-margin-block: 16px;
  }
  .password-field input::placeholder { color: #66748a; font-size: 14px; }
  .password-field .field-icon { top: 50%; transform: translateY(-50%); }
  .password-toggle { top: 3px; right: 3px; width: 44px; height: 44px; }
  .login-submit { height: 48px; margin-top: 14px; font-size: 15px; }
  .login-help, .login-card-footer { font-size: 12px; line-height: 1.5; color: #606e84; }
  .login-help { margin: 16px 0 18px; }
  .login-card-footer { margin: 0 calc(-1 * var(--card-inset)); padding: 12px var(--card-inset); }
  .login-footer { padding-top: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .login-footer .icp-link { display: grid; place-items: center; min-height: 44px; }
}

@media (min-width: 560px) and (max-width: 1000px) and (max-height: 540px) {
  .login-header, .login-layout, .login-footer { max-width: 900px; }
  .login-header { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 0; }
  .login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 1.4fr);
    align-items: center;
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 8px;
  }
  .login-story h1 { font-size: clamp(25px, 4vw, 34px); }
  .login-card { --card-inset: 16px; }
  #login-form { margin-top: 12px; }
  .login-help { margin: 10px 0; }
  .login-card-footer { padding-block: 8px; }
}
