:root{--brand-50:#fef2f2;--brand-100:#fee2e2;--brand-200:#fecaca;--brand-300:#fca5a5;--brand-400:#f87171;--brand-500:#c62828;--brand-600:#b91c1c;--brand-700:#991b1b;--brand-800:#7f1d1d;--brand-900:#450a0a;--gray-50:#fafafa;--gray-100:#f5f5f5;--gray-200:#e5e5e5;--gray-300:#d4d4d4;--gray-400:#a3a3a3;--gray-500:#737373;--gray-600:#525252;--gray-700:#404040;--gray-800:#262626;--gray-900:#171717;--success:#16a34a;--warning:#f59e0b;--info:#2563eb;--danger:#dc2626;--sidebar-width:240px;--sidebar-collapsed:64px;--header-height:56px;--radius:8px;--font-sans:"Inter","Hiragino Sans","Yu Gothic",sans-serif}*{box-sizing:border-box;margin:0;padding:0}body,html{height:100%;font-family:var(--font-sans);color:var(--gray-800);background:var(--gray-50)}h1{font-size:1.5rem;font-weight:700}h2{font-size:1.25rem}h2,h3{font-weight:600}h3{font-size:1rem}.app-layout{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-width);background:white;border-right:1px solid var(--gray-200);display:flex;flex-direction:column;transition:width .2s ease;position:fixed;top:0;bottom:0;z-index:40}.sidebar.collapsed{width:var(--sidebar-collapsed)}.sidebar-logo{padding:16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--gray-200)}.sidebar-logo img,.sidebar-logo svg{width:32px;height:32px}.sidebar-logo span{font-weight:700;color:var(--brand-500);font-size:.9rem;white-space:nowrap}.sidebar.collapsed .sidebar-logo span{display:none}.sidebar-nav{flex:1 1;padding:8px;overflow-y:auto}.sidebar-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius);color:var(--gray-600);text-decoration:none;font-size:.875rem;transition:all .15s}.sidebar-link:hover{background:var(--gray-100);color:var(--gray-800)}.sidebar-link.active{background:var(--brand-50);color:var(--brand-500);font-weight:600}.sidebar.collapsed .sidebar-link span{display:none}.main-content{margin-left:var(--sidebar-width);flex:1 1;display:flex;flex-direction:column;transition:margin-left .2s ease}.sidebar.collapsed~.main-content{margin-left:var(--sidebar-collapsed)}.header{height:var(--header-height);background:white;border-bottom:1px solid var(--gray-200);justify-content:space-between;padding:0 24px;position:-webkit-sticky;position:sticky;top:0;z-index:30}.header,.header-left{display:flex;align-items:center}.header-left{gap:16px}.header-right{gap:12px}.breadcrumb,.header-right{display:flex;align-items:center}.breadcrumb{gap:8px;font-size:.875rem;color:var(--gray-500)}.breadcrumb a{color:var(--gray-500);text-decoration:none}.breadcrumb a:hover{color:var(--brand-500)}.breadcrumb .current{color:var(--gray-800);font-weight:500}.page-content{padding:24px;flex:1 1}.page-header{display:flex;justify-content:space-between;margin-bottom:24px}.btn,.page-header{align-items:center}.btn{display:inline-flex;gap:8px;padding:8px 16px;border:none;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;text-decoration:none}.btn-primary{background:var(--brand-500);color:white}.btn-primary:hover{background:var(--brand-600)}.btn-secondary{background:var(--gray-100);color:var(--gray-700);border:1px solid var(--gray-200)}.btn-secondary:hover{background:var(--gray-200)}.btn-danger{background:var(--danger);color:white}.btn-danger:hover{background:#b91c1c}.btn-ghost{background:transparent;color:var(--gray-600)}.btn-ghost:hover{background:var(--gray-100)}.btn-sm{padding:4px 10px;font-size:.8rem}.btn-icon{padding:8px;border-radius:50%}.card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius);padding:20px;transition:box-shadow .15s}.card:hover{box-shadow:0 2px 8px rgba(0,0,0,.06)}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.table-container{overflow-x:auto;border:1px solid var(--gray-200);border-radius:var(--radius);background:white}table{width:100%;border-collapse:collapse;font-size:.875rem}thead th{background:var(--brand-50);color:var(--gray-700);font-weight:600;padding:10px 14px;text-align:left;border-bottom:2px solid var(--brand-200);white-space:nowrap;position:-webkit-sticky;position:sticky;top:0}tbody td{padding:10px 14px;border-bottom:1px solid var(--gray-100)}tbody tr:hover{background:var(--gray-50)}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:20px;font-size:.75rem;font-weight:600}.badge-approved{background:#dcfce7;color:#166534}.badge-draft{background:var(--gray-100);color:var(--gray-500)}.badge-review{background:#fef3c7;color:#92400e}.badge-rejected{background:#fee2e2;color:#991b1b}.badge-candidate,.badge-progress{background:#dbeafe;color:#1e40af}.badge-completed{background:#dcfce7;color:#166534}.badge-not-started{background:var(--gray-100);color:var(--gray-500)}.input{width:100%;padding:8px 12px;border:1px solid var(--gray-300);border-radius:var(--radius);font-size:.875rem;outline:none;transition:border-color .15s}.input:focus{border-color:var(--brand-500);box-shadow:0 0 0 3px var(--brand-100)}.input-group{display:flex;align-items:center;gap:8px}.search-box{position:relative}.search-box .input{padding-left:36px}.search-box svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--gray-400)}label{font-size:.875rem;font-weight:500;color:var(--gray-700);margin-bottom:4px;display:block}.form-group{margin-bottom:16px}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:white;border-radius:12px;padding:24px;min-width:400px;max-width:600px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.tabs{display:flex;gap:0;margin:0 -24px;padding:0 16px 0 24px;border-bottom:1px solid var(--gray-200);background:var(--gray-50)}.tabs .tab{padding:10px 16px;font-size:.875rem;font-weight:500;cursor:pointer;background:transparent;color:var(--gray-600);border:none;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,background .15s}.tabs .tab:hover{color:var(--gray-800);background:var(--gray-100)}.tabs .tab.active{background:white;color:var(--brand-600);font-weight:600;border-bottom-color:white;border-left:1px solid var(--gray-200);border-right:1px solid var(--gray-200);border-top:1px solid var(--gray-200);border-radius:var(--radius) var(--radius) 0 0;margin-right:4px;margin-bottom:-1px}.tab-content{border:1px solid var(--gray-200);border-top:none;border-radius:0 0 var(--radius) var(--radius);background:white}.spreadsheet-container{overflow:auto;max-height:calc(100vh - 200px)}.spreadsheet table{min-width:1200px;border-collapse:collapse}.spreadsheet td,.spreadsheet th{border:1px solid var(--gray-200)}.spreadsheet th{position:-webkit-sticky;position:sticky;top:0;z-index:10;background:var(--brand-50);padding:8px 12px;vertical-align:middle}.spreadsheet th .col-header-inner{display:inline-flex;align-items:center}.spreadsheet th.col-group{text-align:center;background:var(--brand-500);color:white;border-right:2px solid var(--brand-600)}.spreadsheet td{min-width:40px;color:var(--gray-800)}.spreadsheet th.col-resizable{position:relative}.spreadsheet .col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:transparent}.spreadsheet .col-resize-handle:hover{background:rgba(198,41,41,.2)}.spreadsheet .col-resize-handle:after{content:"";position:absolute;right:2px;top:20%;bottom:20%;width:1px;background:var(--gray-300);border-radius:1px}.spreadsheet .col-resize-handle:hover:after{background:var(--brand-500)}.spreadsheet .col-draggable{cursor:-webkit-grab;cursor:grab}.spreadsheet .col-draggable:active{cursor:-webkit-grabbing;cursor:grabbing}.spreadsheet .col-dragging{opacity:.5;background:var(--gray-200)!important}.spreadsheet th.col-draggable:hover{background:var(--gray-100)}.spreadsheet .col-drag-handle{display:inline-flex;align-items:center;margin-right:6px;vertical-align:middle;color:var(--gray-500);pointer-events:none;flex-shrink:0}.spreadsheet th.col-draggable:hover .col-drag-handle{color:var(--brand-600)}.spreadsheet .col-dragging .col-drag-handle{color:var(--brand-500)}.spreadsheet .col-sortable{cursor:pointer}.spreadsheet .col-sortable:hover{text-decoration:underline}.spreadsheet .sort-icon{font-size:.7em;opacity:.8}.spreadsheet .col-custom{position:relative}.spreadsheet .col-delete-btn{position:absolute;top:2px;right:20px;display:none;width:18px;height:18px;padding:0;font-size:12px;line-height:1;border:none;border-radius:4px;cursor:pointer;background:var(--gray-200);color:var(--gray-600)}.spreadsheet .col-custom:hover .col-delete-btn{display:block}.spreadsheet .col-delete-btn:hover{background:var(--danger);color:white}.spreadsheet .cell-image{vertical-align:middle;text-align:center}.spreadsheet .cell-image-btn{display:block;width:100%;padding:4px;border:none;background:transparent;cursor:zoom-in;border-radius:4px}.spreadsheet .cell-image-btn:hover{background:var(--gray-100)}.spreadsheet .cell-image-list{display:flex;flex-direction:column;gap:4px;align-items:center;width:100%;min-height:40px}.spreadsheet .cell-image-list .cell-image-btn{flex:0 0 auto;width:100%;max-width:100%}.spreadsheet .cell-image-list .cell-image-btn img{width:100%;height:auto;max-height:200px;object-fit:contain;display:block}.spreadsheet .cell-material{vertical-align:middle;cursor:pointer}.spreadsheet .cell-material:hover{background:var(--brand-50)}.spreadsheet .cell-material-list{display:flex;flex-direction:column;gap:12px}.spreadsheet .cell-material-item{display:flex;align-items:center;gap:8px;font-size:.85rem;padding:4px 0}.decided-badge,.spreadsheet .cell-material-item .decided{font-weight:600}.decided-badge{margin-left:4px;padding:1px 6px;font-size:.7rem;background:var(--brand-500);color:white;border-radius:4px}.material-select-item{display:flex;align-items:center;gap:12;width:100%;padding:12px;border:none;background:transparent;cursor:pointer;text-align:left;border-radius:6px}.material-select-item:hover{background:var(--gray-100)}.image-preview-overlay{position:fixed;inset:0;background:rgba(0,0,0,.85);z-index:200;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-preview-overlay .image-preview-close{position:absolute;top:16px;right:24px;width:40px;height:40px;font-size:28px;line-height:1;color:white;background:rgba(255,255,255,.2);border:none;border-radius:8px;cursor:pointer}.image-preview-overlay .image-preview-close:hover{background:rgba(255,255,255,.3)}.image-preview-overlay .image-preview-img{max-width:90vw;max-height:90vh;object-fit:contain;cursor:default}.spreadsheet td.editable{cursor:text}.spreadsheet td.editable:hover{background:var(--brand-50);outline:2px solid var(--brand-300);outline-offset:-2px}.spreadsheet td.editing{padding:0;min-height:44px;vertical-align:top;position:relative;z-index:5}.spreadsheet td.editing input{width:100%;min-height:40px;padding:10px 14px;border:2px solid var(--brand-500);outline:none;font-size:.875rem;color:var(--gray-800);background:white;box-sizing:border-box;font-family:inherit;display:block}.spreadsheet .cell-status{display:flex;align-items:center;gap:6px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));grid-gap:16px;gap:16px}.product-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;transition:all .2s}.product-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-2px)}.product-card-image{height:160px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;color:var(--gray-400);font-size:2rem}.product-card-image img{width:100%;height:100%;object-fit:cover;display:block}.product-card-body{padding:16px}.product-card-title{font-weight:600;margin-bottom:4px}.product-card-meta{font-size:.8rem;color:var(--gray-500)}.product-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.product-card .caution{border-left:4px solid var(--warning)}.landing-hero{min-height:70vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand-500),var(--brand-700));color:white;text-align:center;padding:60px 24px}.landing-hero h1{font-size:2.5rem;margin-bottom:16px}.landing-hero p{font-size:1.125rem;opacity:.9;max-width:600px;margin:0 auto 32px}.landing-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));grid-gap:24px;gap:24px;padding:60px 24px;max-width:1200px;margin:0 auto}.feature-card{text-align:center;padding:32px}.feature-card .icon{font-size:2.5rem;margin-bottom:16px}.feature-card h3{margin-bottom:8px}.feature-card p{color:var(--gray-500);font-size:.9rem;line-height:1.6}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-4{gap:16px}.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mb-4{margin-bottom:16px}.text-sm{font-size:.875rem}.text-xs{font-size:.75rem}.text-gray{color:var(--gray-500)}.text-brand{color:var(--brand-500)}.text-right{text-align:right}.font-bold{font-weight:700}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hidden{display:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-in{animation:fadeIn .3s ease}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.animate-pulse{animation:pulse 2s infinite}@media (max-width:1024px){.sidebar{width:var(--sidebar-collapsed)}.sidebar .sidebar-link span,.sidebar .sidebar-logo span{display:none}.main-content{margin-left:var(--sidebar-collapsed)}}