:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#1f2937;background:#f5f7fb}*{box-sizing:border-box}body{margin:0;background:#f5f7fb}button,input,select{font:inherit}.shell{min-height:100vh;background:radial-gradient(1200px 600px at 0% 0%,#fff,#f3f6fb 55%,#ecf1f8)}.appHeader{display:flex;align-items:center;gap:16px;min-height:70px;padding:9px 24px;background:linear-gradient(180deg,#fff,#f7f9fd);border-bottom:1px solid #e5ebf5;box-shadow:0 4px 18px #0f172a0d}.appHeaderMain{flex:1;min-width:0;display:grid;gap:6px}.productTitle{color:#0f172a;font-size:18px;font-weight:600;line-height:1.2}.stepNav{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin}.step{align-items:center;background:transparent;border:0;border-radius:10px;color:#334155;cursor:pointer;display:inline-flex;flex:0 0 auto;gap:8px;min-height:42px;padding:8px 10px;white-space:nowrap}.step:hover,.step:focus-visible{background:#e9eef8;color:#1d4ed8;outline:none}.step span{align-items:center;background:#edf2f8;border:1px solid #dbe5f2;border-radius:999px;color:#64748b;display:inline-flex;font-size:12px;height:24px;justify-content:center;width:24px}.step.active{background:#e8f1ff;color:#1d4ed8;font-weight:600}.step.active span{background:#2563eb;border-color:#2563eb;color:#fff}.brandBlock{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:6px;text-align:right;line-height:1.35}.brandTitle,.brandLink{color:#334155;text-decoration:none}.brandTitle{display:inline-flex;align-items:baseline;gap:6px;width:fit-content;margin-left:auto;padding:2px 8px;border-radius:8px;color:#0f172a;font-weight:600;transition:background-color .18s ease,color .18s ease}.brandTitle:hover,.brandTitle:focus-visible,.brandLink:hover,.brandLink:focus-visible{background:#e9eef8;color:#1d4ed8;outline:none}.brandMuted{color:#64748b;font-size:12px;font-weight:500}.brandContacts{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap}.brandLink{align-items:center;border-radius:8px;display:inline-flex;font-size:13px;gap:6px;padding:2px 8px;transition:background-color .18s ease,color .18s ease}.workspace{padding:24px}.fileLayout{display:grid;gap:16px;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);align-items:start}.topbar{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}h1,h2,h3,p{margin:0}.topbar h1{color:#0f172a;font-size:26px;line-height:1.2;margin-bottom:4px}.topbar p{color:#64748b}.iconButton{align-items:center;background:#fff;border:1px solid #d8e1ee;border-radius:10px;color:#334155;cursor:pointer;display:inline-flex;height:40px;justify-content:center;width:40px}.iconButton:hover,.iconButton:focus-visible{background:#e9eef8;color:#1d4ed8;outline:none}.panel,.upload,.result{background:#ffffffeb;border:1px solid #e1e8f2;border-radius:8px;box-shadow:0 8px 24px #0f172a0d;padding:20px}.panelHeader,.mappingHeader{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:16px}.panelHeader{color:#0f172a;justify-content:flex-start}.mappingActions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.mappingActions button{align-items:center;display:inline-flex;gap:6px}.stack{display:grid;gap:18px}.grid{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(160px,1fr))}.scenarioGrid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(220px,1fr))}.scenarioCard{align-content:start;display:grid;gap:8px;min-height:150px;padding:14px;text-align:left}.scenarioCard.active{background:#eff6ff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.scenarioTitle{color:#0f172a;font-weight:700}.scenarioSummary{color:#475569;font-size:13px;line-height:1.45}.scenarioEntities{align-self:end;color:#1d4ed8;font-size:13px;font-weight:600}.scenarioFlow{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;display:grid;gap:14px;padding:16px}.scenarioFlow.compact{grid-template-columns:minmax(220px,.55fr) minmax(0,1fr)}.scenarioFlow h3{color:#0f172a;font-size:18px;margin-bottom:4px}.scenarioFlow p,.scenarioFlow li{color:#475569;line-height:1.45}.scenarioFlow ol{display:grid;gap:8px;margin:0;padding-left:22px}label{color:#475569;display:grid;gap:6px;font-size:14px}input,select{background:#fff;border:1px solid #cfd9e8;border-radius:8px;color:#1f2937;min-height:38px;padding:8px 10px}input:focus,select:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1f;outline:none}.mappingRow{display:grid;gap:10px;grid-template-columns:150px 1fr 1fr 1fr}button{background:#fff;border:1px solid #cfd9e8;border-radius:8px;color:#334155;cursor:pointer;min-height:38px;padding:8px 12px}button:hover,button:focus-visible{border-color:#bfdbfe;color:#1d4ed8;outline:none}.primary{align-items:center;background:#2563eb;border-color:#2563eb;color:#fff;display:inline-flex;gap:8px;justify-content:center;width:fit-content}.primary:hover,.primary:focus-visible{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.primary:disabled{background:#94a3b8;border-color:#94a3b8;color:#fff;cursor:not-allowed}.upload,.result{align-items:center;display:grid;gap:18px;justify-items:center;min-height:360px;text-align:center}.upload svg,.result svg{color:#2563eb}.upload input{width:320px}.previewAction{margin-top:16px}.cellInput{border-color:transparent;min-height:32px;min-width:180px;padding:5px 7px;width:100%}.cellInput:hover,.cellInput:focus{border-color:#93c5fd}.rowAction{align-items:center;display:inline-flex;height:34px;justify-content:center;min-height:34px;padding:0;width:34px}.notice{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e3a8a;margin-bottom:16px;padding:12px}.tableWrap{overflow:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid #e5ebf5;max-width:280px;overflow:hidden;padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}th{background:#f8fbff;color:#475569;font-size:13px;font-weight:600}tbody tr{cursor:pointer}tbody tr:hover{background:#f8fbff}.progress{background:#e2e8f0;border-radius:999px;height:12px;overflow:hidden;width:100%}.progress span{background:#2563eb;display:block;height:100%;transition:width .2s ease}.metrics{display:grid;gap:10px;grid-template-columns:repeat(4,1fr);width:min(720px,100%)}.metrics span{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;color:#1e3a8a;padding:14px}@media(max-width:960px){.appHeader{align-items:stretch;flex-direction:column;gap:8px;padding:10px 12px}.brandBlock{align-items:flex-start;text-align:left}.brandTitle{margin-left:0}.brandContacts{flex-wrap:wrap;justify-content:flex-start;row-gap:4px}.workspace{padding:16px}.fileLayout,.grid,.scenarioGrid,.scenarioFlow.compact,.mappingRow,.metrics{grid-template-columns:1fr}}
