.co-root {
    max-width: 1200px;
    margin: 0 auto;
    user-select: none;
  }

  .co-hidden {
    display: none;
  }

  .co-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }

  .co-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .co-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .co-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
  }

  .theme-dark .co-card {
    background: #1e293b;
    border-color: #334155;
  }

  .co-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
  }

  .theme-dark .co-card-title {
    color: #fff;
  }

  .co-card-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
  }

  .co-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .co-card-title-row .co-card-title {
    margin-bottom: 0;
  }

  .co-mode-toggle {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    padding: 0.375rem;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .theme-dark .co-mode-toggle {
    background: rgba(30, 41, 59, 0.8);
  }

  .co-mode-btn {
    flex: 1;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .co-mode-btn.co-mode-active {
    background: #f97316;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .theme-dark .co-mode-btn {
    color: #94a3b8;
  }

  .theme-dark .co-mode-btn.co-mode-active {
    color: #fff;
  }

  .co-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .co-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .co-field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .co-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
  }

  .co-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  }

  .theme-dark .co-input {
    background: #0f172a;
    border-color: #334155;
    color: #fff;
  }

  .co-btn-add {
    padding: 0.5rem;
    background: #fff7ed;
    color: #ea580c;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .co-btn-add:hover {
    background: #fed7aa;
  }

  .co-btn-add svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .theme-dark .co-btn-add {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
  }

  .co-cut-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .co-cut-list::-webkit-scrollbar {
    width: 4px;
  }

  .co-cut-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .co-cut-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 20px;
  }

  .co-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .co-row-len-wrap,
  .co-row-wid-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .co-row-qty-wrap {
    position: relative;
    width: 5rem;
  }

  .co-row-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
  }

  .co-row-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
  }

  .co-row-input-blue:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  }

  .co-row-input-qty {
    text-align: center;
  }

  .theme-dark .co-row-input {
    background: #0f172a;
    border-color: #334155;
    color: #fff;
  }

  .co-row-unit {
    position: absolute;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
  }

  .co-btn-rm {
    padding: 0.4rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.15s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .co-btn-rm:hover {
    color: #ef4444;
  }

  .co-btn-rm svg {
    width: 1rem;
    height: 1rem;
  }

  .co-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .co-stat-card {
    background: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
  }

  .theme-dark .co-stat-card {
    background: #1e293b;
    border-color: #334155;
  }

  .co-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .co-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-top: 0.25rem;
    line-height: 1;
  }

  .theme-dark .co-stat-value {
    color: #fff;
  }

  .co-stat-red {
    color: #ef4444;
  }

  .theme-dark .co-stat-red {
    color: #f87171;
  }

  .co-stat-green {
    color: #22c55e;
  }

  .theme-dark .co-stat-green {
    color: #4ade80;
  }

  .co-viz-card {
    min-height: 400px;
  }

  .co-viz {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 16rem;
  }

  .co-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
  }

  .co-bar-wrap {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
  }

  .theme-dark .co-bar-wrap {
    background: rgba(15, 23, 42, 0.5);
    border-color: #1e293b;
  }

  .co-bar-hdr {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
  }

  .co-bar {
    height: 3rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    display: flex;
    overflow: hidden;
    position: relative;
  }

  .theme-dark .co-bar {
    background: #334155;
  }

  .co-seg {
    height: 100%;
    background: linear-gradient(to bottom, #fb923c, #ea580c);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    overflow: hidden;
    cursor: default;
  }

  .co-panel-wrap {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
  }

  .theme-dark .co-panel-wrap {
    background: rgba(15, 23, 42, 0.5);
    border-color: #1e293b;
  }

  .co-sheet {
    position: relative;
    background: #e2e8f0;
    width: 100%;
    border: 1px solid #cbd5e1;
  }

  .theme-dark .co-sheet {
    background: #334155;
    border-color: #475569;
  }

  .co-rect {
    position: absolute;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    overflow: hidden;
    cursor: default;
    transition: filter 0.15s ease;
  }

  .co-rect:hover {
    filter: brightness(1.1);
  }

  @media (max-width: 1024px) {
    .co-grid {
      grid-template-columns: 1fr;
    }

    .co-stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 640px) {
    .co-stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .co-card {
      padding: 1rem;
    }
  }