            /* Sticky bendras blokas viršuje (palieku kaip yra, tinka dark-ui) */
            #portfolio-summary {position: sticky; top: 0; z-index: 100; padding: 10px; border-left: 6px solid; color: #fff; font-weight: bold; background-color: #222;}
            .pnl-positive { background-color: #215d31 !important; border-color: #1b5e20; }
            .pnl-negative { background-color: #861d1d !important; border-color: #8e0000; }
            .pnl-neutral  { background-color: #3a4754 !important; border-color: #455a64; }            
            /* Kortelių tinklelis */
            .grid-container {display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px;}            
            /* Kortelė */
            .grid-item {border: 1.5px solid #233b57; border-radius: 14px; padding: 18px 10px 13px 10px; text-align: center; background: #202838; box-shadow: 0 2px 8px rgba(0,0,0,0.11); transition: all 0.17s; color: #e2e6e9; text-decoration: none; position: relative; cursor: pointer;}            
            .grid-item:hover {transform: scale(1.04); background: #26344a; border-color: #2471e3;}            
            .grid-item .mon {font-weight: bold; font-size: 1.18em; margin-bottom: 7px; color: #4ea9ff; letter-spacing: 1px;}            
            .grid-item .val {font-size: 1em; margin-top: 5px; color: #b0bfc7;}            
            /* PnL spalvos: žaliai/mėlynai/raudonai */
            .pnl-pos { color: #5cf46a; }          /* šviesiai žalia, jei reikia */
            .pnl-neg { color: #ff4956; }           /* raudona */
            .pnl-neutral { color: #4ea9ff; }       /* mėlyna - neutrali */            
            .grid-item.active {border: 2.5px solid #4ea9ff; background: linear-gradient(120deg, #1f2b45 65%, #24497a 100%); box-shadow: 0 0 0 2px #4ea9ff60;}            
            /* Akcentinė apačia po mon */
            .grid-item .mon:after {content: ''; display: block; width: 20px; height: 2px; margin: 4px auto 0 auto; background: #4ea9ff; opacity: 0.22; border-radius: 3px;}            
            .trade-form-flex {display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap;}
            .trade-card-buy, .trade-card-sell {flex: 1 1 340px; max-width: 400px; min-width: 260px; background: #232b38; border-radius: 16px; box-shadow: 0 3px 12px #002c18cc; padding: 18px 18px 12px 18px; margin-bottom: 0; border-left: 8px solid #1bb66f;}
            .trade-card-sell {border-left: 8px solid #ec3346; box-shadow: 0 3px 12px #3b1018cc;}
            .trade-form-label {min-width: 60px; font-size: 1em; color: #b0bfc7; text-align: left; margin-right: 10px;}
            .trade-form-group {display: flex; align-items: center; margin-bottom: 8px;}
            .trade-form-input {flex: 1; background: #171b23; color: #e2e6e9; border: 1.5px solid #233b57; border-radius: 8px; padding: 6px 10px; font-size: 1em;}
            .trade-perc-btn {margin-right: 6px; margin-left: 2px; margin-top: 0; font-size: 0.93em; padding: 3px 9px 3px 9px; border-radius: 5px; border: 1px solid #156e44; background: #232b38; color: #20c57b; transition: background 0.12s;}
            .trade-card-sell .trade-perc-btn {color: #ec3346; border: 1px solid #a51515;}
            .trade-perc-btn:last-child { margin-right: 0; }
            .trade-form-suffix {margin-left: 5px; color: #6e8da5; font-size: 0.95em;}
            .trade-form-info {font-size: 0.92em; color: #c1c1c1; margin-top: 4px; margin-bottom: 0;}
            .trade-form-info .important {color: #20c57b; font-weight: bold;}
            .trade-card-sell .trade-form-info .important {color: #ec3346;}
            @media (max-width: 800px) {
              .trade-card-buy,
              .trade-card-sell {
                min-height: unset !important;
                height: auto !important;
                /* Jei naudojai flex: 1 1 340px, galima taip: */
                flex: 1 1 auto !important;
                max-width: 100% !important;
              }
              .trade-form-flex {
                flex-direction: column !important;
                gap: 10px !important;
                align-items: stretch !important;
              }
            }
            .flash {
              animation: flashAnim 0.33s linear;
            }
            @keyframes flashAnim {
              0%   { background: #ffe66d; color: #232323;}
              50%  { background: #fdffb6; color: #222;}
              100% { background: inherit; color: inherit;}
            }
          /* Modal plotis: iki 80% ekrano */
          #maxModal .w3-modal-content {
            width: 80vw !important;
            max-width: 1200px !important;
            font-size: 1.15em !important;
          }
          @media (max-width: 900px) {
            #maxModal .w3-modal-content {
              width: 97vw !important;
              max-width: none !important;
              font-size: 1em !important;
            }
          }
          #maxModal label, #maxModal input, #maxModal select {
            font-size: 1.09em !important;
          }
          /* Grafiko apleistas fonas */
          #stats-chart {
            background: #f5f7fa;
            border-radius: 14px;
            margin-bottom: 0.5em;
          }
          #stats-summary b {
            padding: 2px 5px;
            border-radius: 4px;
        } 
          /* Lentelės pagrindas */
          #progress-table-wrap table {
            background-color: #1e1e1e;
            color: #ddd;
          }
        
          #progress-table-wrap table th {
            background-color: #2a2a2a;
            color: #fff;
          }
        
          #progress-table-wrap tr:hover {
            background-color: #333;
          }
        
          #progress-table-wrap td {
            border-color: #444;
          }
        
          /* Skaičiukai */
          #progress-table td[style*="color:green"] {
            color: #5fdd5f !important;
          }
        
          #progress-table td[style*="color:red"] {
            color: #ff7f7f !important;
          }
          
  .copyable { cursor: pointer; }
  .copy-btn {
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    margin-right: 6px;
  }
  #copy-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: #232b38; color: #b6e5ff; padding: 8px 12px; border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,.4); font-size: 13px; display: none; z-index: 999999;
  }
          