  .mc-tab-strip {
    display: flex;
    align-items: flex-end;
    background: #0a0b0e;
    border-bottom: 2px solid #ffffff;
    padding: 0 8px 0 8px;
    flex-shrink: 0;
    height: 38px;
    gap: 0;
    overflow: visible;
  }
  .mc-tab-track {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .mc-tab-track::-webkit-scrollbar { display: none; }
  .mc-tab-strip.ov-l:not(.ov-r) .mc-tab-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 100%);
  }
  .mc-tab-strip.ov-r:not(.ov-l) .mc-tab-track {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
  .mc-tab-strip.ov-l.ov-r .mc-tab-track {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  .mc-tab-strip.mc-hidden { display: none; }
  .mc-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 36px;
    background: #1a1d24;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: relative;
    margin-right: 2px;
    margin-bottom: -2px;
    transition: background 0.1s;
    flex: 0 0 auto;
    max-width: 240px;
  }
  .mc-tab:hover { background: #22263a; }
  .mc-tab.active {
    background: #ffffff;
    color: #1a1d24;
    border-color: #ffffff;
    font-weight: 600;
    z-index: 2;
    flex-shrink: 0;
    min-width: 132px;
    max-width: 280px;
  }
  .mc-tab.renaming { flex-shrink: 0; max-width: none; }
  .mc-tab .tc-icon { font-size: 11px; opacity: 0.7; flex-shrink: 0; }
  .mc-tab.active .tc-icon { opacity: 0.9; }
  .mc-tab .tc-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mc-tab .tc-close {
    font-size: 10px;
    color: var(--muted);
    margin-left: 2px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    opacity: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.1s, color 0.1s;
  }
  .mc-tab:hover .tc-close { opacity: 0.6; }
  .mc-tab.active .tc-close { color: #888; opacity: 1; }
  .mc-tab .tc-close:hover { background: rgba(0,0,0,0.12); color: #555; opacity: 1; }
  .mc-tab.active .tc-close:hover { background: rgba(0,0,0,0.12); color: #333; }
  .mc-tab .tc-rename-input {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
    color: #1a1d24;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 1px 4px;
    direction: rtl;
    min-width: 60px;
    max-width: 160px;
    outline: none;
  }
  .mc-tab-scroll {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 30px;
    margin: 0 2px 2px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 24px;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
  }
  .mc-tab-strip.ov-l .mc-scroll-l,
  .mc-tab-strip.ov-r .mc-scroll-r { display: flex; }
  .mc-tab-scroll:hover { background: var(--panel-2); color: var(--text); border-color: #34394a; }
  .mc-tab-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
    margin-left: 4px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
  }
  .mc-tab-add:hover { background: var(--panel-2); color: var(--text); border-color: #34394a; }
  .mc-gallery-btn {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
  }
  .mc-gallery-btn:hover { background: var(--panel-2); color: var(--text); border-color: #34394a; }
  .mc-add-pop {
    position: fixed; z-index: 400; min-width: 285px;
    background: var(--panel-2); border: 1px solid #34394a;
    border-radius: 14px; padding: 6px;
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
    display: flex; flex-direction: column; gap: 2px;
    direction: rtl;
    animation: mapIn .14s ease;
  }
  @keyframes mapIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .mc-add-pop.mc-hidden { display: none; }
  .map-opt {
    display: flex; align-items: center; gap: 12px; width: 100%;
    background: transparent; border: 0; cursor: pointer; text-align: right;
    padding: 10px 12px; border-radius: 10px; color: var(--text);
    font: inherit; transition: background .12s;
  }
  .map-opt:hover { background: rgba(122,162,255,.10); }
  .map-opt[disabled] { opacity: .45; cursor: not-allowed; }
  .map-opt[disabled]:hover { background: transparent; }
  .map-opt.map-busy { opacity: .6; cursor: progress; }
  .map-opt.map-disabled { opacity: .45; pointer-events: none; }
  .map-divider { height: 1px; background: #34394a; margin: 4px 8px; flex-shrink: 0; }
  .map-ic { font-size: 19px; flex-shrink: 0; }
  .map-ic > svg { display: block; width: 24px; height: 24px; }
  .map-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .map-t b { font-size: 13px; font-weight: 600; }
  .map-t small { font-size: 11.5px; color: var(--muted); }
  .map-opt.map-danger .map-ic,
  .map-opt.map-danger .map-t b { color: var(--err, #dc2626); }
  .map-opt.map-danger:hover { background: rgba(220, 80, 80, .12); }
  .import-report-pop {
    min-width: 320px; max-width: min(420px, calc(100vw - 16px));
    max-height: min(70vh, 520px);
    padding: 10px 12px 12px;
  }
  .import-report-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 4px 4px 8px; border-bottom: 1px solid #34394a;
    margin-bottom: 8px;
  }
  .import-report-head b { font-size: 14px; font-weight: 650; }
  .import-report-close {
    background: transparent; border: 0; color: var(--muted);
    font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px;
    border-radius: 6px; font-family: inherit;
  }
  .import-report-close:hover { background: rgba(122,162,255,.10); color: var(--text); }
  .import-report-body {
    overflow: auto; max-height: min(58vh, 440px);
    display: flex; flex-direction: column; gap: 10px;
    padding: 2px 2px 0; font-size: 12.5px; color: var(--text);
  }
  .import-report-group h4 {
    margin: 0 0 4px; font-size: 12px; font-weight: 650;
    color: var(--muted); letter-spacing: 0.01em;
  }
  .import-report-group ul {
    margin: 0; padding: 0 1.1em 0 0; list-style: disc;
  }
  .import-report-group li { margin: 2px 0; line-height: 1.45; }
  .import-report-empty { color: var(--muted); font-size: 12px; padding: 4px 2px; }
  #exp-email-panel { padding: 0 12px 8px; }
  #exp-email-panel[hidden] { display: none; }
  .exp-email-row { display: flex; gap: 6px; }
  #exp-email-addr {
    flex: 1; min-width: 0; direction: ltr; text-align: left;
    background: rgba(0, 0, 0, .25); color: var(--text);
    border: 1px solid #34394a; border-radius: 8px;
    padding: 7px 10px; font: inherit; font-size: 13px;
  }
  #exp-email-addr:focus { outline: none; border-color: rgba(122, 162, 255, .65); }
  #exp-email-send {
    background: rgba(122, 162, 255, .16); color: var(--text);
    border: 1px solid rgba(122, 162, 255, .45); border-radius: 8px;
    padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: background .12s;
  }
  #exp-email-send:hover { background: rgba(122, 162, 255, .28); }
  #exp-email-send[disabled] { opacity: .55; cursor: progress; }
  #exp-email-status { margin-top: 6px; font-size: 12px; color: var(--muted); }
  #exp-email-status[hidden] { display: none; }
  #exp-email-status.ok { color: var(--ok, #4ade80); }
  #exp-email-status.err { color: var(--err, #dc2626); }
