:root{font-family:Segoe UI,Apple SD Gothic Neo,Noto Sans KR,sans-serif;line-height:1.6;font-weight:400;color:#172033;background:#eef2f7;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100vh}body{background:radial-gradient(circle at top left,rgba(16,185,129,.12),transparent 24%),linear-gradient(180deg,#f6f8fb,#e9eef5);color:#172033;font-size:16px;letter-spacing:-.01em}button,input{font:inherit}p{margin:0}.app-shell,.start-screen,.workmode-screen{min-height:100vh}.app-shell{overflow:auto}.app-inner{width:min(100%,1920px);max-width:1920px;margin:0 auto;min-height:100vh;padding:14px 18px 18px}.scenario-main-grid{display:grid;grid-template-columns:232px minmax(960px,1080px) 314px;gap:20px;align-items:start;justify-content:center;min-width:1546px;height:calc(100vh - 32px);min-height:1048px;grid-template-rows:328px minmax(0,1fr)}.scenario-header-stack{grid-column:1 / 4;min-height:0;height:100%}.scenario-sidebar{grid-column:3;grid-row:2;min-height:0;height:100%;align-self:stretch}.top-grid{display:grid;gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;height:100%;min-height:0}.bottom-grid{margin-top:16px;grid-template-columns:232px minmax(620px,1fr) 360px}.side-column{display:grid;height:100%;min-height:0;grid-template-rows:minmax(0,1fr)}.panel,.workbook-shell{background:#fffffff5;border:1px solid #d7deea;border-radius:28px;box-shadow:0 20px 48px #0f172a14;padding:22px;line-height:1.6}.panel h1,.panel h3,.panel h4,.workbook-shell h3{margin:0}.panel-meta,.section-meta,.status-label,.file-card-status{color:#667085;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.scenario-title,.hero-title{margin:8px 0 0;font-size:clamp(26px,2.4vw,38px);font-weight:900;letter-spacing:-.04em;line-height:1.08}.objective-box,.notice-box,.selection-box,.soft-block,.soft-panel,.message-detail,.thought-box,.stage-note,.formula-bar{border:1px solid #d7deea;border-radius:16px;background:#f8fafc;padding:15px 17px;font-size:15px;line-height:1.65}.notice-box{margin-top:14px;color:#166534;background:#ecfdf3;border-color:#b7e4c7}.hint-inline-panel{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-height:0;margin-top:14px}.hint-inline-header{display:flex;align-items:center;justify-content:flex-start;gap:12px}.hint-inline-content{display:grid;grid-template-columns:148px minmax(0,1fr);gap:12px;min-height:0;align-items:stretch}.hint-inline-button{height:100%;min-height:122px}.hint-inline-scroll{min-height:122px;height:122px;overflow:auto;padding-right:4px}.hint-inline-scroll .notice-box,.hint-inline-scroll .soft-block{margin-top:0}.objective-text,.report-title,.status-value{font-weight:800;letter-spacing:-.02em}.badge-row,.report-grid,.stage-grid,.start-grid{display:grid;gap:12px}.badge-row{display:flex;flex-wrap:wrap}.status-metric{border:1px solid #d7deea;border-radius:18px;background:#fff;padding:12px 14px}.status-good{background:#ecfdf3;border-color:#b7e4c7}.status-danger{background:#fff1f2;border-color:#fecdd3}.status-value{margin-top:6px;font-size:20px;line-height:1.35}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:16px;padding:11px 16px;font-size:15px;font-weight:700;letter-spacing:-.01em;line-height:1.4;cursor:pointer;transition:.12s ease}.btn-primary{background:#111827;color:#fff}.btn-secondary,.btn-ghost{background:#fff;color:#172033;border-color:#d7deea}.btn:hover{transform:translateY(-1px)}.btn-disabled{opacity:.45;cursor:not-allowed;transform:none}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;border:1px solid #d7deea;background:#fff;font-size:13px;font-weight:600;line-height:1.35}.badge-active{background:#0f9f6e;color:#fff;border-color:#0f9f6e}.badge-success{background:#ecfdf3;color:#166534;border-color:#b7e4c7}.badge-muted{background:#f8fafc;color:#475467}.hint-panel{padding:18px 20px}.hint-list,.message-list,.file-list,.action-column,.inventory-grid,.preview-list,.report-lines{display:grid;gap:10px}.subsection-label{margin:8px 0;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#667085}.file-card,.message-card,.inventory-card,.preview-card{border:1px solid #d7deea;border-radius:18px;background:#f8fafc;padding:13px 14px;text-align:left;color:inherit;line-height:1.6}.file-card,.message-card{cursor:pointer}.file-card-active,.message-card-unread,.inventory-card-selected{background:#ecfdf3;border-color:#b7e4c7}.file-card-locked{opacity:.5;cursor:not-allowed}.file-card-name,.message-card-head strong,.inventory-card-head strong{display:block;font-weight:700;font-size:16px;letter-spacing:-.015em;line-height:1.45}.file-card-note,.message-card-body,.inventory-note,.panel-copy,.modal-copy{color:#475467;font-size:14px;line-height:1.65}.file-card-note,.message-card-body,.inventory-note{margin-top:4px}.message-card-head span,.selection-head span,.empty-text,.save-text{font-size:14px;line-height:1.55}.message-card-head,.inventory-card-head,.selection-head,.section-title,.modal-header,.popup-head,.hero-top,.workbook-topbar,.workmode-topbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.inventory-actions{display:flex;gap:8px;margin-top:12px}.inventory-actions .btn,.action-column .btn{width:100%}.empty-text,.empty-panel{color:#667085}.empty-panel{border:1px dashed #cbd5e1;border-radius:18px;padding:18px;font-size:15px;line-height:1.65}.text-input{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;background:#fff;font-size:15px;line-height:1.5;letter-spacing:-.01em}.workbook-shell{overflow:hidden;padding:0;background:#f7f7f7;display:grid;grid-template-rows:auto auto minmax(0,1fr);min-height:0;align-self:stretch}.workbook-topbar,.workmode-topbar{background:#107c41;color:#fff;padding:14px 18px}.workbook-title{font-weight:700;font-size:16px;letter-spacing:-.015em}.workbook-subtitle{color:#ffffffc7;font-size:13px;letter-spacing:.01em}.workbook-chip{border-radius:999px;padding:6px 10px;background:#ffffff24;font-size:13px;font-weight:600}.workbook-menu,.sheet-tabs{background:#f3f3f3;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px 18px;font-size:14px;line-height:1.45}.workbook-body,.workmode-table{padding:18px}.workbook-body{min-height:0;overflow:auto}.excel-table{overflow:auto;border:1px solid #d7deea;border-radius:16px;background:#fff}.excel-grid{display:grid}.excel-head-cell,.excel-index-cell,.excel-cell{min-width:0;border-right:1px solid #d7deea;border-bottom:1px solid #d7deea;padding:11px 10px;font-size:13px;line-height:1.5}.excel-head-cell,.excel-index-cell{text-align:center;background:#f3f4f6;font-weight:600;color:#667085}.excel-cell-compact{padding:8px}.stage-grid{grid-template-columns:minmax(0,1.08fr) minmax(272px,.62fr);gap:14px}.stage-grid-wide{grid-template-columns:minmax(0,1.14fr) minmax(274px,.66fr);gap:14px}.dark-panel{background:linear-gradient(180deg,#364152,#111827);color:#fff}.dark-panel .stage-note{background:#f8fafcf5;border-color:#cbd5e1e6;color:#172033}.dark-panel .stage-note strong{color:#0f172a}.success-panel{background:linear-gradient(180deg,#f2fff7,#fff);border-color:#b7e4c7}.shard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shard-card{border:1px solid rgba(255,255,255,.22);border-radius:18px;background:#ffffff14;padding:16px}.shard-content{display:flex;justify-content:space-between;align-items:end;font-size:34px}.sequence-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.sequence-button{border:1px solid #d7deea;border-radius:16px;background:#fff;padding:14px 0;font-weight:700}.sequence-display{margin-top:8px;font-size:30px;font-weight:800;letter-spacing:.18em;line-height:1.3}.sequence-rules-table .excel-head-cell:first-child,.sequence-rules-table .excel-cell:nth-child(odd){text-align:center;justify-content:center;font-weight:700}.sequence-rules-table .excel-cell:nth-child(2n){text-align:left}.signal-grid-wrap{overflow:auto;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#030712b8;padding:16px}.signal-grid{display:grid;grid-template-columns:repeat(23,24px);gap:4px}.signal-cell{width:24px;height:24px;border-radius:6px;border:1px solid #1f2937;background:#111827}.signal-signal{border-color:#6ee7b7;background:#34d399;box-shadow:0 0 14px #34d399a6}.signal-noise{border-color:#fcd34d;background:#fbbf24}.popup-stack{position:fixed;right:16px;bottom:16px;width:min(360px,calc(100vw - 32px));display:grid;gap:12px;z-index:40}.popup-card{width:100%;text-align:left;border-radius:22px;padding:16px;background:#fffffff5;border:1px solid #d7deea;box-shadow:0 20px 50px #0206172e;line-height:1.6;color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.popup-error{background:#fff1f2;border-color:#fecdd3}.popup-clickable{cursor:pointer}.popup-clickable:hover{transform:translateY(-1px)}.popup-exit{opacity:.55}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0206177a;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;z-index:60}.modal-sheet{width:min(960px,100%);margin-top:40px;background:#fff;border-radius:28px;border:1px solid #d7deea;padding:24px;box-shadow:0 30px 90px #02061740;line-height:1.65}.report-modal-body{max-height:min(780px,calc(100vh - 136px));overflow:auto;padding-right:4px}.report-layout{display:grid;gap:16px}.clear-panel{background:#0f172a;color:#fff}.dialogue-panel{background:#f5f3ff}.report-line{border-radius:14px;background:#f8fafc;padding:10px 12px;font-size:15px;line-height:1.6}.start-screen{padding:14px 18px 18px}.start-hero{max-width:1884px;margin:0 auto;min-height:calc(100vh - 32px);border:1px solid rgba(255,255,255,.08);border-radius:32px;padding:30px 32px;color:#fff;background:radial-gradient(circle at top left,rgba(16,185,129,.18),transparent 24%),linear-gradient(135deg,#09090b,#0f172a 45%,#111827);box-shadow:0 30px 90px #0206172e}.hero-brand{font-weight:700;font-size:14px;letter-spacing:.08em}.hero-sub,.hero-copy,.save-text{color:#d1d5db}.hero-sub{font-size:15px;letter-spacing:.01em}.hero-copy{margin-top:16px;max-width:62ch;font-size:17px;line-height:1.75}.start-grid{margin-top:20px;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr)}.preview-panel{background:#0003;border-color:#ffffff1a}.preview-card{background:#ffffff0f;border-color:#ffffff14}.preview-card .section-meta{color:#cbd5e1}.workmode-screen{padding:14px 18px 18px}.workmode-shell{width:min(100%,1884px);max-width:1884px;min-height:calc(100vh - 32px);margin:0 auto;background:#fff;border:1px solid #d7deea;border-radius:30px;overflow:hidden;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto}.formula-bar{border-radius:0;border-left:0;border-right:0;font-size:14px;line-height:1.5}.sheet-tab{border-radius:999px;border:1px solid #d7deea;background:#fff;padding:6px 12px;font-size:13px;font-weight:600}.sheet-tab-active{background:#059669;color:#fff;border-color:#059669}.summary-panel,.file-panel,.messenger-panel,.inventory-panel{min-width:0}.summary-panel,.inventory-panel-header{min-height:0;height:100%;overflow:hidden}.summary-panel,.inventory-panel-header{display:flex;flex-direction:column}.summary-header{display:block}.summary-title-block{min-width:0}.summary-title-block .scenario-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(22px,1.8vw,32px)}.summary-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;align-items:center;margin-top:12px}.timer-chip{display:flex;flex-direction:column;gap:3px;min-width:132px;padding:10px 14px;border:1px solid #b7e4c7;border-radius:16px;background:#ecfdf3}.timer-chip strong{font-size:22px;line-height:1.1;letter-spacing:-.03em}.timer-chip-danger{border-color:#fecdd3;background:#fff1f2}.file-panel{padding:18px 14px;min-height:0;height:100%;align-self:stretch;overflow:hidden;display:flex;flex-direction:column}.file-panel .section-title,.messenger-panel .section-title,.inventory-panel .section-title,.hint-panel .section-title{margin-bottom:16px}.file-list{gap:12px}.file-panel-scroll{min-height:0;flex:1 1 auto;overflow:auto;padding-right:4px}.file-panel .action-column{margin-top:12px;gap:10px}.file-card{min-height:78px;padding:14px 14px 12px}.file-card-status{margin-top:6px}.message-list{gap:12px;align-content:start}.messenger-panel{height:100%;min-height:0;max-height:none;padding:20px;display:flex;flex-direction:column;overflow:hidden}.message-card{min-height:116px;border-color:#d7deea;background:linear-gradient(180deg,#f8fafc,#eef2f7);padding:15px 15px 14px}.message-card-unread{border-color:#b7e4c7;background:linear-gradient(180deg,#f4fff9,#effbf5)}.message-card-head{align-items:flex-start}.message-card-head span{color:#98a2b3;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.inventory-panel{padding:16px 16px 18px;display:flex;flex-direction:column;overflow:hidden}.inventory-panel-header{height:100%;min-height:0;max-height:none;padding:14px 14px 16px}.selection-box{padding:8px 10px;border-radius:14px}.selection-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start}.selection-summary{min-width:0;display:flex;align-items:center;min-height:28px}.selection-items-grid{display:flex;flex-wrap:wrap;gap:6px}.selection-items-grid .badge{justify-content:center;min-height:26px;padding:5px 9px;font-size:12px;line-height:1.2}.selection-empty-inline{color:#667085;font-size:12px;line-height:1.3}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.inventory-panel-header .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.inventory-panel-header .inventory-card{min-height:0;aspect-ratio:auto;padding:6px 6px 7px}.inventory-panel-header .inventory-note{min-height:0;font-size:11px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px}.inventory-panel-header .selection-box{width:100%;padding:6px 8px}.inventory-panel-header .selection-toolbar{gap:6px}.inventory-panel-header .section-title{margin-bottom:8px}.inventory-panel-header .inventory-card-head strong{font-size:12px;line-height:1.15}.inventory-panel-header .inventory-card .badge-muted{font-size:9px}.inventory-panel-header .inventory-actions{gap:4px;margin-top:3px}.inventory-panel-header .inventory-actions .btn,.inventory-panel-header .selection-toolbar .btn{padding:4px 6px;font-size:11px;border-radius:12px}.inventory-panel-header .selection-items-grid{gap:4px}.inventory-panel-header .inventory-actions .btn{min-height:24px}.inventory-card{display:flex;flex-direction:column;min-height:118px;padding:9px 9px 10px;background:#fff}.inventory-card-head{align-items:flex-start}.inventory-card-head strong{font-size:14px;line-height:1.2}.inventory-card .badge-muted{font-size:11px}.inventory-note{margin-bottom:auto;min-height:0;font-size:12px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.inventory-actions{gap:6px;margin-top:6px}.inventory-actions .btn{min-height:28px;padding:6px 8px;font-size:12px;border-radius:12px}.inventory-note{margin-bottom:auto;min-height:46px}.workbook-shell>*{min-width:0}.workbook-shell{width:100%;max-width:1080px;justify-self:center}.workbook-body>.stage-grid,.workbook-body>.stage-grid-wide{align-items:stretch}.workbook-body>*{width:min(100%,1012px);margin:0 auto}.workbook-body .panel{border-radius:24px;padding:19px 19px 17px;box-shadow:none}.workbook-body .panel h3{margin-bottom:12px;font-size:17px;line-height:1.35}.workbook-body .soft-block+.excel-table,.workbook-body .excel-table+.soft-block,.workbook-body .text-input+.soft-block,.workbook-body .text-input+.btn,.workbook-body .panel-copy+.text-input,.workbook-body .panel-copy+.soft-block,.workbook-body .soft-block+.soft-block{margin-top:12px}.hint-list{gap:10px}.hint-panel .soft-block{background:#fbfcfe}.messenger-scroll,.inventory-scroll{min-height:0;overflow:auto;padding-right:4px;overscroll-behavior:contain}.messenger-scroll,.inventory-scroll{flex:1 1 auto}@media(max-width:1380px){.scenario-main-grid{grid-template-columns:210px minmax(0,1fr) 292px;min-width:1340px;justify-content:stretch;height:auto;min-height:calc(100vh - 32px);grid-template-rows:minmax(236px,auto) minmax(0,1fr)}.scenario-header-stack{grid-column:1 / 3}.side-column{grid-template-rows:minmax(0,1fr)}.messenger-panel,.inventory-panel-header{height:100%;min-height:100%;max-height:none}.workbook-shell{max-width:none}.workbook-body>*{width:100%}.top-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}@media(max-width:1180px){.start-grid,.report-grid{grid-template-columns:1fr}}@media(max-width:720px){.app-inner,.start-screen,.workmode-screen{padding:12px}.metrics-grid,.shard-grid,.sequence-buttons{grid-template-columns:1fr}.panel,.workbook-shell{border-radius:24px;padding:18px}.workbook-shell{padding:0}.workbook-body,.workmode-table{padding:16px}}
