*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;height:100%}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,Helvetica Neue,Arial,sans-serif;background:#f3f5fb;color:#0f172a}.app-page{min-height:100vh}.app-header{border-bottom:1px solid #e2e8f0;background:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.app-header-inner{max-width:1500px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.app-brand{display:flex;align-items:center;gap:10px}.app-icon{width:36px;height:36px;border-radius:14px;background:#dcfce7;color:#166534;display:flex;align-items:center;justify-content:center;font-weight:700;border:1px solid #bbf7d0}.app-title-row{display:flex;align-items:center;gap:6px}.app-title{font-size:1.25rem;font-weight:600;letter-spacing:-.02em}.app-badge{border-radius:999px;padding:2px 8px;font-size:.7rem;font-weight:500;background:#ecfdf3;color:#15803d;border:1px solid #bbf7d0}.app-subtitle{margin:0;font-size:.8rem;color:#64748b}.app-version{font-size:.7rem;color:#94a3b8}.app-nav-group{display:flex;align-items:center;gap:10px}.app-nav{display:flex;align-items:center;gap:6px;padding:4px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;box-shadow:inset 0 1px #fff9}.app-nav-link{padding:8px 12px;border-radius:10px;text-decoration:none;color:#0f172a;font-weight:600;font-size:.9rem;transition:all .16s ease}.app-nav-link:hover{background:#eef2ff;color:#1e3a8a}.app-nav-link.active{background:linear-gradient(135deg,#ecfdf3,#eef2ff);color:#0f172a;box-shadow:0 4px 10px #0f172a14;border:1px solid #cbd5e1}.app-nav-toggle{display:none;flex-direction:column;justify-content:center;gap:4px;width:42px;height:36px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer}.app-nav-toggle span{display:block;height:2px;width:100%;background:#0f172a;border-radius:999px}.app-nav-mobile{display:none;position:fixed;top:64px;left:0;right:0;padding:12px 16px 16px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 10px 24px #0f172a14;flex-direction:column;gap:8px;z-index:90}.app-nav-mobile.open{display:flex}.app-nav-overlay{display:none}.app-nav-overlay.open{display:block;position:fixed;inset:0;background:#0f172a40;z-index:80}.app-main{max-width:1500px;margin:0 auto;padding:20px 16px 32px}.page-header{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.page-meta{display:flex;align-items:center;gap:10px}.page-kicker{margin:0;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8}.page-title{margin:2px 0 0;font-size:1.4rem;font-weight:700;letter-spacing:-.02em;color:#0f172a}.page-subtitle{margin:4px 0 0;font-size:.85rem;color:#475569}.page-pill{padding:6px 10px;border-radius:999px;background:#ecfdf3;border:1px solid #bbf7d0;color:#15803d;font-weight:600;font-size:.8rem}.page-version{font-size:.8rem;color:#94a3b8}.hero{margin-bottom:16px;border-radius:16px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 10px 25px #0f172a0a;overflow:hidden}.hero-header{padding:14px 18px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#ecfdf3,#eff6ff 32%,#fdf2ff)}.hero-title{margin:0;font-size:1rem;font-weight:600}.hero-text{margin:4px 0 0;font-size:.8rem;color:#64748b}.hero-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr);gap:16px;padding:14px 18px 16px}.hero-desc{font-size:.82rem;color:#475569}.hero-desc+.hero-desc{margin-top:4px;font-size:.75rem;color:#64748b}.hero-config{border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;padding:10px 12px;font-size:.78rem}.hero-config-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.hero-config-main{margin:2px 0;font-weight:600;color:#0f172a}.hero-config-sub{margin:2px 0 0;color:#475569}.card{border-radius:16px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 8px 20px #0f172a08;padding:16px}.card+.card{margin-top:0}.main-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1.3fr);gap:20px}@media(max-width:900px){.hero-body,.main-grid{grid-template-columns:minmax(0,1fr)}.app-nav{display:none}.app-nav-toggle{display:inline-flex}.app-main{padding:16px 12px 28px}}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title-block h3{margin:0;font-size:.95rem;font-weight:600}.section-title-block p{margin:2px 0 0;font-size:.75rem;color:#64748b}.btn-pill{display:inline-flex;align-items:center;border-radius:999px;border:none;padding:6px 12px;font-size:.75rem;font-weight:500;cursor:pointer;background:#0f172a;color:#fff;box-shadow:0 4px 10px #0f172a33;text-decoration:none}.btn-pill:hover{background:#111827}.btn-pill:disabled{background:#cbd5e1;box-shadow:none;cursor:not-allowed}.btn-pill-primary{width:100%;justify-content:center;background:#10b981;box-shadow:0 8px 18px #10b98159}.btn-pill-primary:hover{background:#059669}.input-text{width:100%;border-radius:8px;border:1px solid #e2e8f0;padding:6px 8px;font-size:.78rem;outline:none;background:#fff}.input-text::placeholder{color:#cbd5e1}.input-text:focus{border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f633}.input-number{width:52px;border-radius:7px;border:1px solid #e2e8f0;padding:4px;font-size:.75rem;text-align:center;outline:none;background:#fff}.input-number:focus{border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f633}.input-number-wide{width:72px}.settings-list{margin-top:14px;display:flex;flex-direction:column;gap:12px;font-size:.8rem}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-label{color:#0f172a}.settings-checkbox{width:16px;height:16px}.roster-table-wrapper{margin-top:14px;overflow-x:auto;border-radius:16px;border:1px solid #e2e8f0;background:#f8fafc}.roster-table{min-width:100%;border-collapse:collapse;font-size:.75rem}.roster-table th,.roster-table td{padding:6px 8px;border-bottom:1px solid #e2e8f0}.roster-table th{background:#e2e8f0;text-align:left;color:#64748b;font-weight:600}.roster-table th.pos{text-align:center}.roster-table td.index-cell{color:#94a3b8;width:28px}.roster-table tr:nth-child(2n){background:#fff}.roster-table tr:nth-child(odd){background:#f9fafb}.roster-remove{font-size:.7rem;font-weight:500;color:#dc2626;background:none;border:none;padding:0;cursor:pointer}.roster-remove:disabled{color:#cbd5e1;cursor:not-allowed}.csv-help{margin-top:10px;font-size:.8rem;color:#475569;display:flex;flex-direction:column;gap:4px}.csv-help-title{font-weight:700;color:#0f172a}.csv-template-link{color:#7f1d1d;font-weight:600;text-decoration:none}.csv-template-link:hover{text-decoration:underline;color:#b91c1c}.preview-empty{margin-top:8px;font-size:.75rem;color:#64748b}.preview-message{margin-top:8px;font-size:.8rem;color:#0f172a}.lineup-top{margin-top:14px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}.lineup-settings{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;box-shadow:inset 0 1px #ffffffb3}.settings-row.compact{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-block{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}.settings-block-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.settings-block-title{font-weight:700;color:#0f172a;font-size:.95rem}.settings-block-hint{font-size:.75rem;color:#94a3b8}.weight-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.weight-cell{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.85rem;color:#0f172a}.weight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.weight-chip{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.weight-label{font-weight:600;color:#0f172a}.lineup-actions{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px}.card-subtle{border:1px solid #e2e8f0;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 6px 16px #0f172a0d}.actions-title{margin:0;font-size:.9rem;font-weight:700;color:#0f172a}.actions-text{margin:4px 0 0;font-size:.8rem;color:#475569}.actions-error{margin:0;font-size:.78rem;color:#b91c1c}@media(max-width:900px){.lineup-top{grid-template-columns:minmax(0,1fr)}.app-nav-mobile{top:58px}}.inning-list{margin-top:10px;display:flex;flex-direction:column;gap:8px}.inning-card{border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;padding:8px 10px}.inning-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}.inning-summary::-webkit-details-marker{display:none}.inning-left{display:flex;align-items:center;gap:8px}.inning-badge{width:26px;height:26px;border-radius:999px;background:#0f172a;color:#f9fafb;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600}.inning-title{font-size:.85rem;font-weight:600;color:#0f172a}.inning-hint{font-size:.7rem;color:#94a3b8}.inning-content{margin-top:8px;display:flex;flex-direction:column;gap:8px}.inning-field-table{width:100%;border-collapse:collapse;font-size:.72rem;background:#fff;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0}.inning-field-table th,.inning-field-table td{padding:6px 8px;border-bottom:1px solid #e2e8f0}.inning-field-table th{background:#f1f5f9;color:#64748b;text-align:left}.inning-field-table tr:nth-child(odd){background:#fff}.inning-field-table tr:nth-child(2n){background:#f8fafc}.bench-block{border-radius:8px;border:1px solid rgba(245,158,11,.3);background:#fef3c7b3;padding:6px 8px}.bench-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#92400e}.bench-text{margin-top:4px;font-size:.72rem;color:#92400e}.home-main{display:flex;flex-direction:column;gap:16px}.home-hero{border-radius:18px;border:1px solid #e2e8f0;background:linear-gradient(135deg,#ecfdf3,#e0f2fe 40%,#eef2ff 85%,#fff);box-shadow:0 12px 28px #0f172a0f;padding:24px 24px 92px;display:flex;flex-direction:column;gap:12px;position:relative}.home-hero-content{display:flex;flex-direction:column;gap:10px}.home-hero-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#0f172a;color:#f8fafc;font-weight:600;font-size:.75rem;width:fit-content;box-shadow:0 6px 16px #0f172a40}.home-hero-title{margin:0;font-size:1.8rem;line-height:1.2;letter-spacing:-.02em}.home-hero-text{margin:0;color:#334155;font-size:.95rem;max-width:680px}.home-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.btn-pill-ghost{background:#fff;color:#0f172a;border:1px solid #e2e8f0;box-shadow:none}.btn-pill-ghost:disabled{opacity:.8;cursor:not-allowed}.home-cta{position:absolute;right:24px;bottom:24px;width:auto;min-width:200px;padding:14px 20px;font-size:1rem;font-weight:700;box-shadow:0 12px 24px #10b98173;text-align:center}.home-cta:hover{transform:translateY(-1px)}.home-hero-hints{display:flex;gap:8px;flex-wrap:wrap}.pill-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e2e8f0;color:#0f172a;font-size:.75rem;font-weight:600}.home-section{padding:18px}.home-grid{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.home-tile{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc;box-shadow:0 6px 14px #0f172a08}.home-tile h4{margin:0 0 6px;font-size:.95rem;font-weight:600}.home-tile p{margin:0;color:#475569;font-size:.85rem;line-height:1.4}.home-tile.muted{background:#fff;border-style:dashed;color:#94a3b8}.home-tile.muted p{color:#94a3b8}@media(max-width:900px){.home-hero{padding:18px}.home-cta{position:static;width:100%;min-width:0;margin-top:6px}.app-nav-mobile{top:56px}}
