.portfolio-item-search {
        position: relative;
        width: 100%;
      }

      .portfolio-search-control {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-height: 44px;
        padding: 0 13px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.72);
        transition:
          border-color 160ms ease,
          box-shadow 160ms ease,
          background 160ms ease;
      }

      .portfolio-search-control:focus-within {
        border-color: rgba(59, 130, 246, 0.82);
        background: rgba(15, 23, 42, 0.94);
        box-shadow:
          0 0 0 3px rgba(59, 130, 246, 0.12),
          0 10px 24px rgba(2, 6, 23, 0.18);
      }

      .portfolio-search-icon {
        color: #64748b;
        font-size: 18px;
        line-height: 1;
        transform: translateY(-1px);
      }

      .portfolio-search-control input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0;
        border: 0;
        outline: 0;
        color: #e5edf9;
        background: transparent;
        font: inherit;
      }

      .portfolio-search-control input::placeholder {
        color: #64748b;
      }

      .portfolio-item-autocomplete {
        position: absolute;
        z-index: 120;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        overflow: hidden;
        padding: 5px;
        border: 1px solid rgba(96, 165, 250, 0.24);
        border-radius: 11px;
        background: rgba(10, 18, 34, 0.985);
        box-shadow:
          0 18px 42px rgba(0, 0, 0, 0.42),
          0 0 0 1px rgba(255, 255, 255, 0.025) inset;
        backdrop-filter: blur(14px);
      }

      .portfolio-item-autocomplete[hidden] {
        display: none;
      }

      .portfolio-item-option {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 11px;
        border: 0;
        border-radius: 7px;
        color: #dbeafe;
        background: transparent;
        text-align: left;
        cursor: pointer;
        transition: background 130ms ease, color 130ms ease;
      }

      .portfolio-item-option + .portfolio-item-option {
        margin-top: 2px;
      }

      .portfolio-item-option:hover,
      .portfolio-item-option.is-active {
        color: #ffffff;
        background: linear-gradient(
          90deg,
          rgba(59, 130, 246, 0.19),
          rgba(99, 102, 241, 0.12)
        );
      }

      .portfolio-item-option span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .portfolio-item-option small {
        flex: 0 0 auto;
        color: #7f8da3;
        font-size: 11px;
      }

      .portfolio-item-no-result {
        padding: 13px 12px;
        color: #8b9bb2;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
      }

      .portfolio-item-help {
        display: block;
        margin-top: 6px;
      }

      .maple-point-fee-note {
        display: block;
        margin-top: 8px;
        padding: 9px 10px;
        border: 1px solid rgba(96, 165, 250, 0.18);
        border-radius: 8px;
        color: #93c5fd;
        background: rgba(37, 99, 235, 0.08);
        font-size: 12px;
        line-height: 1.45;
      }

      .maple-point-fee-note[hidden] {
        display: none;
      }
    
      #asset-price {
        appearance: textfield;
        -moz-appearance: textfield;
      }

      #asset-price::-webkit-outer-spin-button,
      #asset-price::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

    
      .asset-entry-mode[hidden] {
        display: none;
      }

      .maple-point-entry {
        display: grid;
        gap: 14px;
        padding: 14px;
        border: 1px solid rgba(96, 165, 250, 0.2);
        border-radius: 12px;
        background:
          linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.28));
        box-shadow: 0 12px 28px rgba(2, 6, 23, 0.13);
      }

      .maple-point-entry-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 11px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
      }

      .maple-point-entry-head > div {
        display: grid;
        gap: 4px;
      }

      .maple-point-entry-head strong {
        color: #eaf2ff;
        font-size: 14px;
      }

      .maple-point-entry-head > small {
        max-width: 150px;
        color: #8ea1bb;
        font-size: 11px;
        line-height: 1.45;
        text-align: right;
      }

      .maple-point-entry-badge {
        width: fit-content;
        padding: 3px 7px;
        border: 1px solid rgba(96, 165, 250, 0.25);
        border-radius: 999px;
        color: #93c5fd;
        background: rgba(37, 99, 235, 0.1);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.09em;
      }

      .input-with-unit {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        overflow: hidden;
        min-height: 44px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.66);
        transition: border-color 160ms ease, box-shadow 160ms ease;
      }

      .input-with-unit:focus-within {
        border-color: rgba(59, 130, 246, 0.75);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
      }

      .input-with-unit input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 12px;
        border: 0;
        outline: 0;
        color: #e8eef9;
        background: transparent;
        font: inherit;
      }

      .input-with-unit > span {
        height: 42px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border-left: 1px solid rgba(148, 163, 184, 0.13);
        color: #8fa4c0;
        background: rgba(30, 41, 59, 0.38);
        font-size: 11px;
        white-space: nowrap;
      }

      .maple-point-preview {
        display: grid;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(52, 211, 153, 0.14);
        border-radius: 10px;
        background: rgba(6, 78, 59, 0.075);
      }

      .maple-point-preview > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #8ea1b7;
        font-size: 12px;
      }

      .maple-point-preview strong {
        color: #cbd5e1;
        font-size: 13px;
      }

      .maple-point-preview-total {
        margin-top: 2px;
        padding-top: 9px;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
      }

      .maple-point-preview-total strong {
        color: #34d399;
        font-size: 16px;
      }

      .maple-point-preview > small {
        color: #7e91aa;
        font-size: 11px;
        text-align: right;
      }

      @media (max-width: 720px) {
        .maple-point-entry-head {
          display: grid;
        }

        .maple-point-entry-head > small {
          max-width: none;
          text-align: left;
        }
      }

    
      .maple-point-entry {
        gap: 16px !important;
        border-radius: 14px !important;
      }

      .maple-point-entry-badge {
        padding: 5px 10px !important;
        font-size: 10px !important;
      }

      .maple-point-entry .form-field > span {
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 600;
      }

      .maple-point-entry em {
        color: #8ea1bb;
        font-style: normal;
        font-weight: 400;
      }

      .maple-point-preview {
        margin-top: 2px;
      }

      .maple-point-preview-total {
        background: rgba(15,23,42,.28);
        border-radius: 8px;
        padding: 10px 0 0;
      }


      .transaction-modal {
        width: min(470px, calc(100vw - 28px));
      }

      .transaction-modal-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin: 4px 0 18px;
      }

      .transaction-modal-heading h2 {
        margin-top: 5px;
      }

      .transaction-mode-badge {
        flex: 0 0 auto;
        padding: 6px 10px;
        border: 1px solid rgba(96, 165, 250, 0.24);
        border-radius: 999px;
        color: #93c5fd;
        background: rgba(37, 99, 235, 0.1);
        font-size: 11px;
        font-weight: 700;
      }

      .transaction-mode-badge.maple {
        border-color: rgba(52, 211, 153, 0.24);
        color: #6ee7b7;
        background: rgba(5, 150, 105, 0.1);
      }

      .maple-exchange-fields[hidden],
      #standard-sale-fields[hidden] {
        display: none;
      }

      .maple-exchange-fields {
        display: grid;
        gap: 12px;
      }

      .exchange-rate-control {
        margin-top: 7px;
      }

      .exchange-policy-card {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;
        align-items: center;
        padding: 12px;
        border: 1px solid rgba(52, 211, 153, 0.16);
        border-radius: 11px;
        background: linear-gradient(135deg, rgba(5, 150, 105, 0.09), rgba(15, 23, 42, 0.2));
      }

      .exchange-policy-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: #6ee7b7;
        background: rgba(16, 185, 129, 0.12);
        font-size: 18px;
        font-weight: 800;
      }

      .exchange-policy-card strong {
        display: block;
        color: #d9fbee;
        font-size: 12px;
      }

      .exchange-policy-card p {
        margin: 4px 0 0;
        color: #8296ae;
        font-size: 11px;
        line-height: 1.45;
      }

      .transaction-preview {
        margin-top: 14px;
      }

      .transaction-preview .sell-profit-row {
        margin-top: 4px;
        padding-top: 12px;
      }

      #sell-submit-button:disabled {
        cursor: wait;
        opacity: 0.68;
      }


      .mechart-toast-region {
        position: fixed;
        z-index: 3000;
        top: 18px;
        right: 18px;
        width: min(380px, calc(100vw - 32px));
        display: grid;
        gap: 10px;
        pointer-events: none;
      }

      .mechart-toast {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 27px;
        gap: 11px;
        align-items: start;
        padding: 13px 12px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 13px;
        color: #e5edf8;
        background: rgba(10, 18, 33, 0.96);
        box-shadow:
          0 18px 45px rgba(0, 0, 0, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.035);
        backdrop-filter: blur(16px);
        opacity: 0;
        pointer-events: auto;
        transform: translateY(-8px) scale(0.985);
        transition: opacity 180ms ease, transform 180ms ease;
      }

      .mechart-toast.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
      }

      .mechart-toast.is-leaving {
        opacity: 0;
        transform: translateX(12px) scale(0.985);
      }

      .mechart-toast-icon {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 900;
      }

      .mechart-toast-content {
        min-width: 0;
        padding-top: 1px;
      }

      .mechart-toast-content strong {
        display: block;
        margin-bottom: 3px;
        color: #f8fafc;
        font-size: 12px;
      }

      .mechart-toast-content p {
        margin: 0;
        color: #a9b8cc;
        font-size: 12px;
        line-height: 1.55;
        overflow-wrap: anywhere;
      }

      .mechart-toast-close {
        width: 27px;
        height: 27px;
        border: 0;
        border-radius: 7px;
        color: #94a3b8;
        background: transparent;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
      }

      .mechart-toast-close:hover {
        color: #ffffff;
        background: rgba(148, 163, 184, 0.12);
      }

      .mechart-toast-success {
        border-color: rgba(52, 211, 153, 0.24);
      }

      .mechart-toast-success .mechart-toast-icon {
        color: #6ee7b7;
        background: rgba(16, 185, 129, 0.13);
      }

      .mechart-toast-error {
        border-color: rgba(248, 113, 113, 0.28);
      }

      .mechart-toast-error .mechart-toast-icon {
        color: #fca5a5;
        background: rgba(239, 68, 68, 0.13);
      }

      .mechart-toast-warning {
        border-color: rgba(251, 191, 36, 0.26);
      }

      .mechart-toast-warning .mechart-toast-icon {
        color: #fcd34d;
        background: rgba(245, 158, 11, 0.13);
      }

      .mechart-toast-info {
        border-color: rgba(96, 165, 250, 0.24);
      }

      .mechart-toast-info .mechart-toast-icon {
        color: #93c5fd;
        background: rgba(37, 99, 235, 0.13);
      }

      @media (max-width: 640px) {
        .mechart-toast-region {
          top: 10px;
          right: 10px;
          left: 10px;
          width: auto;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .mechart-toast {
          transition: none;
        }
      }


/* unified animation system */
.nav-item,
.item-button,
.favorite-toggle,
.market-category{
 transition:
   background var(--motion-fast) var(--ease-standard),
   color var(--motion-fast) var(--ease-standard),
   border-color var(--motion-fast) var(--ease-standard);
}

.chart-area,
.event-grid,
.favorite-list{
 contain:layout paint;
}
