:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fff;--surface:#f8fafc;--border:#e2e8f0;--text:#0f172a;--muted:#64748b;--primary:#ef4444;--primary-hover:#dc2626;--accent-blue:#2563eb}*{box-sizing:border-box}html,body{color:var(--text);background:#fff;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Kaku Gothic ProN,Hiragino Sans,Meiryo,sans-serif;font-size:14px;line-height:1.5}a{color:#1d4ed8}button,input,select,textarea{font-family:inherit;font-size:14px}.page-shell{max-width:1280px;margin:0 auto;padding:20px 18px 40px}.app-layout{min-height:100vh;display:flex}.sidebar{background:#f0f2f6;border-right:1px solid #e2e8f0;flex-direction:column;flex-shrink:0;gap:10px;width:265px;padding:20px 16px;display:flex}.main-area{flex:1;min-width:0;max-width:1320px;padding:22px 26px 48px}.mobile-topbar{color:#fff;z-index:40;background:#0f172a;justify-content:space-between;align-items:center;padding:10px 14px;display:none;position:sticky;top:0}.mobile-menu-btn{color:#fff;cursor:pointer;background:#1e293b;border:1px solid #475569;border-radius:8px;padding:6px 12px;font-weight:700}@media (width<=860px){.app-layout{flex-direction:column}.mobile-topbar{display:flex}.sidebar{border-bottom:1px solid #cbd5e1;border-right:none;width:100%;display:none}.sidebar.mobile-open{display:flex}.main-area{padding:16px 12px 36px}}.btn{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:9px 14px;font-weight:600;text-decoration:none;transition:background-color .14s,border-color .14s,transform 80ms;display:inline-flex}.btn:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{color:#fff;background:#ff4b4b;border-color:#ff4b4b}.btn-primary:hover:not(:disabled){background:#e63939;border-color:#e63939}.btn-blue{color:#fff;background:#2563eb;border-color:#2563eb}.btn-blue:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.btn-danger{color:#fff;background:#dc2626;border-color:#dc2626}.btn-full{width:100%}.field-label{color:#1e293b;margin-bottom:4px;font-size:13px;font-weight:600;display:block}.input,.select,.textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:8px 11px}.input:focus,.select:focus,.textarea:focus{border-color:#2563eb;outline:2px solid #2563eb40}.card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}@media (width<=820px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}.login-hero{text-align:center;color:#fff;background:linear-gradient(145deg,#0f172a 0%,#1e293b 100%);border-radius:20px;max-width:560px;margin:8px auto 22px;padding:28px 20px;box-shadow:0 10px 25px #0f172a33}.login-card-wrap{max-width:560px;margin:0 auto 22px}.membership-cta-box{background:linear-gradient(145deg,#fffbeb 0%,#fef3c7 100%);border:1px solid #f59e0b;border-radius:10px;margin-top:12px;margin-bottom:10px;padding:12px 14px}.portal-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 26px;display:grid}@media (width<=960px){.portal-tile-grid{grid-template-columns:1fr}}.portal-tile-card{text-align:left;color:#0f172a;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:18px;flex-direction:column;justify-content:flex-start;align-items:stretch;min-height:208px;padding:20px;text-decoration:none;transition:transform .14s cubic-bezier(.4,0,.2,1),filter .14s,box-shadow .14s;display:flex}.portal-tile-card:hover{filter:brightness(1.01);transform:translateY(-3px)}.portal-tile-card:active{transform:translateY(3px)}.portal-tile-top{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.portal-tile-icon{font-size:36px;line-height:1}.portal-tile-badge{color:#fff;letter-spacing:.5px;white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:800;line-height:1.2}.portal-tile-title{color:#0f172a;margin:0 0 8px;font-size:20px;font-weight:900;line-height:1.3}.portal-tile-desc{color:#334155;flex:1;margin:0;font-size:13px;font-weight:500;line-height:1.55}.portal-tile-cta{margin-top:14px;font-size:13px;font-weight:800}.rank-SS{color:#f0f;text-shadow:0 0 5px #ffb3ff;font-weight:700}.rank-S{color:#ff4b4b;font-weight:700}.rank-A{color:#f90;font-weight:700}.rank-B{color:#00c04b;font-weight:700}.rank-C{color:#1e90ff;font-weight:700}.rank-D{color:#888;font-weight:700}.rank-E{color:#555;font-weight:700}.rank-F{color:#333;font-weight:700}.summary-box{text-align:center;background-color:#f8f9fa;border:1px solid #ddd;border-radius:10px;justify-content:space-around;align-items:center;gap:12px;margin-bottom:18px;padding:18px;display:flex}.summary-divider{background-color:#ccc;width:1px;height:60px}@media (width<=720px){.summary-box{flex-direction:column}.summary-divider{width:100%;height:1px}}.alert{border:1px solid #0000;border-radius:8px;margin:10px 0;padding:11px 14px;font-size:13.5px}.alert-info{color:#1e3a8a;background:#eff6ff;border-color:#bfdbfe}.alert-success{color:#14532d;background:#f0fdf4;border-color:#bbf7d0}.alert-warning{color:#78350f;background:#fffbeb;border-color:#fde68a}.alert-error{color:#7f1d1d;background:#fef2f2;border-color:#fecaca}.pedigree-scroll{-webkit-overflow-scrolling:touch;border:1px solid #cbd5e1;border-radius:6px;width:100%;overflow-x:auto}.pedigree-table{border-collapse:collapse;background-color:#fff;border:2px solid #666;width:100%;min-width:960px;font-size:11px}.pedigree-ovr-btn{cursor:pointer;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1.2;transition:transform .1s,filter .1s;display:inline-block}.pedigree-ovr-btn:hover{filter:brightness(.93);transform:translateY(-1px)}.metric-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px}.metric-label{color:#64748b;margin-bottom:4px;font-size:12px}.metric-val{color:#0f172a;font-size:22px;font-weight:800}.data-table-wrap{border:1px solid #e2e8f0;border-radius:10px;width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px}.data-table th,.data-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e2e8f0;padding:9px 12px}.data-table th{color:#334155;background:#f8fafc;font-weight:700}.data-table tr:hover td{background:#f1f5f9}.loading-overlay{z-index:99999;background-color:#fffffff5;flex-direction:column;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.loading-spinner{border:8px solid #f3f3f3;border-top-color:#ff4b4b;border-radius:50%;width:68px;height:68px;margin-bottom:18px;animation:.9s linear infinite dormello-spin}@keyframes dormello-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ad-flex-pair{flex-wrap:wrap;justify-content:center;gap:15px;display:flex}
