:root{color:#1f2933;background:#e9eef2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button,select{border:0}.app-shell{min-height:100vh;padding:18px;background:linear-gradient(180deg,#ffffffb8,#e9eef2eb),#e9eef2}.app-layout{display:grid;grid-template-columns:minmax(224px,280px) minmax(0,1fr) minmax(284px,340px);gap:16px;max-width:1520px;margin:0 auto}.control-rail,.team-board,.insight-panel{border:1px solid #d8e0e8;border-radius:8px;background:#fff;box-shadow:0 16px 36px #1f293312}.control-rail,.insight-panel{align-self:start;display:grid;gap:14px;padding:18px}.control-rail__header h1,.team-board__header h2,.team-board__empty h2,.insight-panel h2,.insight-section h3{margin:0;color:#16202a;letter-spacing:0}.control-rail__header h1{font-size:1.65rem;line-height:1.1}.eyebrow{margin:0 0 8px;color:#0f766e;font-size:.78rem;font-weight:700;text-transform:uppercase}.control-rail__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.control-rail__meta span{display:inline-flex;min-height:34px;align-items:center;justify-content:center;border:1px solid #d8e0e8;border-radius:6px;background:#f8fafc;color:#52616f;font-size:.78rem;font-weight:800}.field{display:grid;gap:7px;color:#405261;font-size:.9rem;font-weight:700}.field select{width:100%;min-height:40px;padding:0 12px;border:1px solid #cbd5df;border-radius:6px;background:#f8fafc;color:#1f2933}.field select:disabled{color:#7b8794;cursor:not-allowed}.generate-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:6px;background:#0f766e;color:#fff;font-weight:800;cursor:pointer}.theme-toggle,.copy-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid #cbd5df;border-radius:6px;background:#fff;color:#334155;font-weight:800;cursor:pointer}.theme-toggle{width:100%}.generate-button:disabled{background:#9aa6b2;cursor:not-allowed}.team-board{min-height:calc(100vh - 40px);padding:18px}.team-board__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.team-board__summary-actions{display:flex;align-items:center;gap:8px}.team-board__header h2{font-size:1.28rem}.team-board__header p{margin:4px 0 0;color:#64748b;font-size:.92rem}.team-board__metrics{display:flex;gap:8px;margin:0}.team-board__metrics div{min-width:76px;padding:7px 10px;border:1px solid #d8e0e8;border-radius:6px;background:#f8fafc}.team-board__metrics dt{color:#64748b;font-size:.7rem;font-weight:800;text-transform:uppercase}.team-board__metrics dd{margin:2px 0 0;color:#16202a;font-size:.95rem;font-weight:900}.team-board__empty{display:grid;min-height:360px;align-content:center;justify-items:center;gap:8px;padding:24px;border:1px dashed #b7c4d1;border-radius:8px;background:#f8fafc;text-align:center}.team-board__empty p{max-width:320px;margin:0;color:#64748b}.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(236px,1fr));gap:12px}.pokemon-card{position:relative;display:grid;min-height:252px;gap:12px;padding:13px;border:1px solid #d8e0e8;border-radius:8px;background:#f8fafc;overflow:hidden}.pokemon-card:before{position:absolute;inset:0 auto 0 0;width:4px;background:#d97706;content:""}.pokemon-card--locked{border-color:#0f766e;background:#eefcf8}.pokemon-card--locked:before{background:#0f766e}.pokemon-card__topline{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:12px;align-items:start}.pokemon-sprite{display:block;width:82px;height:70px;border-radius:8px;background:#eef2f5;object-fit:contain}.pokemon-sprite--pixelated{image-rendering:pixelated}.pokemon-card__identity{min-width:0}.pokemon-card__identity h3{margin:0 0 7px;color:#16202a;font-size:1rem;letter-spacing:0}.pokemon-card__identity p{margin:0 0 4px;color:#52616f;font-size:.88rem;overflow-wrap:anywhere}.pokemon-card__evs{font-size:.78rem;font-weight:800}.pokemon-card__actions{display:grid;gap:6px}.pokemon-card__actions button{display:inline-grid;width:34px;height:34px;place-items:center;border:1px solid #cbd5df;border-radius:6px;background:#fff;color:#334155;cursor:pointer;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}.pokemon-card__actions button:hover:not(:disabled){transform:translateY(-1px)}.pokemon-card__actions button[aria-pressed=true]{border-color:#0f766e;background:#ccfbef;color:#0f766e}.pokemon-card__actions button:disabled{cursor:not-allowed;opacity:.42}.role-chip-list{display:flex;flex-wrap:wrap;gap:6px;min-height:28px}.role-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid #9bcac0;border-radius:999px;background:#e9f7f3;color:#0f5d56;font-size:.75rem;font-weight:800}.role-chip--muted{border-color:#d8e0e8;background:#eef2f5;color:#64748b}.move-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}.move-list li{min-height:32px;padding:7px 8px;border:1px solid #d8e0e8;border-radius:6px;background:#fff;color:#334155;font-size:.82rem;font-weight:700;overflow-wrap:anywhere}.insight-panel{position:sticky;top:18px}.insight-panel__header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.insight-panel h2{font-size:1.25rem}.insight-panel__header p,.insight-kicker{margin:0;color:#64748b;font-size:.86rem}.insight-empty{padding:14px;border:1px dashed #b7c4d1;border-radius:8px;background:#f8fafc}.insight-empty p{margin:0;color:#64748b}.insight-section{display:grid;gap:10px}.insight-section__header{display:flex;align-items:center;justify-content:space-between;gap:10px}.insight-section h3{font-size:.92rem}.score-grid{display:grid;gap:5px;margin:0}.score-row,.threat-list__main,.synergy-list li{display:flex;align-items:center;justify-content:space-between;gap:10px}.score-row{min-height:29px;padding:0 10px;border-radius:6px;background:#f8fafc}.score-row dt{color:#52616f;font-size:.82rem;font-weight:700}.score-row dd{margin:0;color:#16202a;font-weight:900}.threat-list,.synergy-list,.warning-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}.threat-list li,.synergy-list li,.warning-list li{min-height:30px;padding:7px 10px;border:1px solid #d8e0e8;border-radius:6px;background:#fff;color:#334155;font-size:.82rem}.threat-list span{min-width:0;overflow-wrap:anywhere}.threat-list li{display:grid;gap:4px}.threat-answer{margin:0;color:#64748b;font-size:.76rem;line-height:1.35}.synergy-list span{min-width:0;overflow-wrap:anywhere}.synergy-list strong{color:#d97706;font-size:.76rem}.validation-summary{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;color:#0f766e}.validation-summary--invalid,.validation-summary--unavailable{color:#b45309}.validation-summary p{margin:2px 0 0;color:#64748b;font-size:.78rem;line-height:1.35}.status-pill{font-size:.76rem;text-transform:uppercase}.status-pill--covered{color:#0f766e}.status-pill--open{color:#b45309}.showdown-import{width:100%;min-height:190px;resize:vertical;padding:10px;border:1px solid #cbd5df;border-radius:6px;background:#f8fafc;color:#1f2933;font-family:Cascadia Mono,SFMono-Regular,Consolas,monospace;font-size:.78rem;line-height:1.45}.error-banner{max-width:1440px;margin:0 auto 14px;padding:12px 14px;border:1px solid #f4b4b4;border-radius:8px;background:#fff1f1;color:#9b1c1c;font-weight:700}.app-shell--dark{color:#d9e2ec;background:linear-gradient(180deg,#111827f5,#0c121cfa),#111827}.app-shell--dark .control-rail,.app-shell--dark .team-board,.app-shell--dark .insight-panel{border-color:#334155;background:#17202d;box-shadow:0 16px 36px #00000040}.app-shell--dark .control-rail__header h1,.app-shell--dark .team-board__header h2,.app-shell--dark .team-board__empty h2,.app-shell--dark .insight-panel h2,.app-shell--dark .insight-section h3,.app-shell--dark .pokemon-card__identity h3,.app-shell--dark .team-board__metrics dd,.app-shell--dark .score-row dd{color:#f8fafc}.app-shell--dark .field,.app-shell--dark .team-board__header p,.app-shell--dark .pokemon-card__identity p,.app-shell--dark .score-row dt,.app-shell--dark .insight-panel__header p,.app-shell--dark .insight-kicker,.app-shell--dark .threat-answer,.app-shell--dark .validation-summary p{color:#a8b6c7}.app-shell--dark .control-rail__meta span,.app-shell--dark .team-board__metrics div,.app-shell--dark .score-row,.app-shell--dark .team-board__empty,.app-shell--dark .insight-empty,.app-shell--dark .pokemon-sprite{border-color:#334155;background:#111827}.app-shell--dark .field select,.app-shell--dark .theme-toggle,.app-shell--dark .copy-button,.app-shell--dark .pokemon-card__actions button,.app-shell--dark .move-list li,.app-shell--dark .threat-list li,.app-shell--dark .synergy-list li,.app-shell--dark .warning-list li,.app-shell--dark .showdown-import{border-color:#3f4f63;background:#0f172a;color:#e5edf6}.app-shell--dark .pokemon-card{border-color:#334155;background:#111827}.app-shell--dark .pokemon-card--locked{border-color:#2dd4bf;background:#112621}.app-shell--dark .role-chip{border-color:#2dd4bf;background:#123b36;color:#99f6e4}.app-shell--dark .role-chip--muted{border-color:#3f4f63;background:#1f2937;color:#a8b6c7}@media(max-width:1120px){.app-layout{grid-template-columns:minmax(220px,300px) minmax(0,1fr)}.insight-panel{grid-column:1 / -1;position:static}}@media(max-width:760px){.app-shell{padding:12px}.app-layout{grid-template-columns:1fr}.team-board{min-height:420px}.team-board__header{display:grid;gap:4px}.team-board__summary-actions{display:grid;gap:8px}.team-board__metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.pokemon-card__topline{grid-template-columns:72px minmax(0,1fr) auto}.pokemon-sprite{width:72px;height:64px}.move-list{grid-template-columns:1fr}}
