.page-new-design:has(.data-browser-matching-root) ~ .data-browser-context-menu {
  position: fixed;
  z-index: 1600;
  min-width: 144px;
  padding: 4px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--new-shadow);
  &[hidden] { display: none; }
  > .data-browser-context-menu-item { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--slate-800); text-align: left; font-size: 13px; &:hover { background: var(--slate-100); } }
}

.page-new-design:has(.data-browser-matching-root) {
  background: var(--new-main-background-color);

  .main {
    width: 100%;
    height: calc(100dvh - var(--new-header-height) - var(--new-menu-height));
    max-width: none;
    min-height: 460px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--new-main-background-color);
  }

  .data-browser-matching-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0;
    color: var(--slate-700);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;

    .matching-status-header {
      display: flex;
      flex: 0 0 26px;
      align-items: center;
      gap: 8px;
      min-width: 0;
      height: 26px;
      margin: 0 20px 12px;
      padding: 0;
      overflow-x: auto;
      background: transparent;
      > button {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 26px;
        padding: 0 10px;
        border: 1px solid var(--slate-200);
        border-radius: 100px;
        background: var(--white);
        color: var(--slate-600);
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        white-space: nowrap;
        &:not(.is-active) { font-weight: 700; }
        &:hover:not(.is-active) { background: var(--slate-100); }
        &.is-active { border-color: var(--color-primary); background: var(--color-primary); color: var(--white); }
      }
    }

    > .matching-list-header {
      flex: 0 0 auto;
      margin: 20px 20px 10px;
      padding: 0;
      border: 0;
      background: transparent;
      .matching-list-search-row {
        width: 480px;
        max-width: 100%;
      }
    }

    > .is-matching-split { margin: 0 20px 20px; }


    .data-browser-header {
      flex: 0 0 35px;
      min-height: 35px;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .data-browser-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-width: 0;
    }

    .list-search-bar {
      flex: 1 1 auto;
      width: auto;
      min-width: 0;
      margin: 0;

      .list-search-input-wrap {
        position: relative;
        height: 35px;
        overflow: hidden;
        border: 1px solid var(--color-input-border);
        border-radius: 6px;
        background: var(--white);
        &:focus-within { border-color: var(--color-focus); outline: var(--input-focus-outline); }
      }
      .search-input-wrap { position: relative; display: flex; align-items: center; width: 100%; height: 100%; }
      input {
        width: 100%;
        height: 100%;
        padding: 0 64px 0 12px;
        border: 0;
        background: transparent;
        color: var(--slate-800);
        font-size: 14px;
        font-weight: 400;
        &:focus { outline: 0; }
        &::placeholder { color: var(--color-placeholder); opacity: 1; font-weight: 500; }
      }
      .search-clear-button {
        position: absolute;
        top: 50%;
        right: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        min-width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--slate-400);
        font-size: 14px;
        line-height: 1;
        transform: translateY(-50%);
        &:hover, &:focus { background: var(--slate-100); }
        &[hidden] { display: none; }
      }
    }

    .matching-header-actions {
      display: flex;
      flex: 0 0 auto;
      gap: 4px;
      .matching-filter-wrap {
        position: relative;
      }
      .matching-icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        img { width: 16px; height: 16px; }
        &:last-child { background: var(--red-50); }
        &:hover { background: var(--sky-50); }
        &:last-child:hover { background: var(--red-100); }
      }
      .matching-filter-button[aria-expanded="true"], .matching-filter-button.has-filters { background: var(--sky-100); }
      .matching-filter-button.has-filters { position: relative; }
      .matching-filter-button.has-filters::after { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); content: ""; }
      .matching-filter-panel {
        position: absolute;
        z-index: 20;
        top: 36px;
        right: 0;
        width: 208px;
        max-height: min(60vh, 360px);
        box-sizing: border-box;
        padding: 12px;
        overflow-y: auto;
        border: 1px solid var(--slate-200);
        border-radius: 12px;
        background: var(--white);
        .matching-filter-heading { display: flex; align-items: center; height: 20px; color: var(--slate-400); font-size: 12px; line-height: 20px; }
        .matching-filter-options { display: flex; flex-direction: column; gap: 6px; }
        .matching-filter-option { display: flex; align-items: center; gap: 8px; min-height: 20px; color: var(--slate-600); font-size: 12px; cursor: pointer; > input { flex: 0 0 13px; } }
        .matching-filter-action { display: block; width: 100%; height: 26px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--slate-400); font-size: 12px; text-align: center; cursor: pointer; &:hover { color: var(--slate-600); } }
      }
    }

    .matching-list-header {
      flex: 0 0 auto;
      padding: 0;
      border: 0;
      background: transparent;

      .matching-list-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px 28px;
        align-items: center;
        gap: 4px;
        .list-search-bar { min-width: 0; .list-search-control { width: 100%; } }
      }
      .matching-header-actions { display: contents; }
      .matching-display-settings {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: 10px;
        color: var(--slate-600);
        font-size: 12px;
        font-weight: 400;
      }
      .matching-other-users-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 26px;
        margin-left: 4px;
        padding: 0 12px;
        border: 1px solid var(--slate-200);
        border-radius: 100px;
        background: var(--white);
        color: var(--slate-400);
        font-size: 10px;
        font-weight: 500;
        line-height: 18px;
        white-space: nowrap;
        cursor: pointer;
        > input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
        &:hover:not(:has(> input:checked)) { background: var(--slate-100); color: var(--slate-600); }
        &:has(> input:checked) { border-color: var(--black); background: var(--black); color: var(--white); }
        &:has(> input:focus-visible) { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; }
      }
      .data-browser-favorite-filters { display: inline-flex; align-items: center; gap: 4px; }
      .data-browser-favorite-filter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 4px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
        img { width: 20px; height: 20px; opacity: .55; }
        &:hover { background: var(--slate-50); color: var(--orange-400); }
        &:hover img, &.is-active img { opacity: 1; filter: invert(55%) sepia(92%) saturate(1444%) hue-rotate(349deg) brightness(103%) contrast(101%); }
        &.is-active { border-color: transparent; background: transparent; color: var(--orange-500); }
        &[hidden] { display: none; }
      }
    }

    .data-browser-count { color: var(--slate-400); font-size: 11px; }

    .is-matching-split {
      display: grid;
      grid-template-columns: minmax(136px, 480fr) 8px minmax(100px, 744fr);
      flex: 1 1 auto;
      min-height: 0;
      overflow: visible;
      background: var(--new-main-background-color);
      > .data-browser-list-wrap { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: var(--new-shadow); }
      > .data-browser-resizer {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 8px;
        touch-action: none;
        cursor: col-resize;
        background: transparent;
        &::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: var(--slate-200); content: ""; }
        &::after { position: absolute; z-index: 1; top: 50%; left: 50%; width: 4px; height: 44px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--slate-300); content: ""; }
      }
      &.is-resizing > .data-browser-resizer { background: var(--slate-100); }
      > .data-browser-detail-wrap { min-width: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: var(--new-shadow); container-type: inline-size; }
    }

    .data-browser-list-header { display: none; }
    .data-browser-list {
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
      padding: 0;
      scrollbar-color: var(--slate-300) transparent;
      scrollbar-width: thin;
      &::-webkit-scrollbar-track { background: transparent; }
    }
    .data-browser-list-wrap > .data-browser-count { flex: 0 0 32px; padding: 9px 14px; border-top: 1px solid var(--slate-100); background: var(--white); text-align: right; }

    .matching-run-group {
      & + & { border-top: 1px solid var(--slate-100); }
      &.is-collapsed {
        .matching-run-arrow-right { display: block; }
        .matching-run-arrow-down { display: none; }
        .matching-run-children { display: none; }
      }
      .matching-run-header {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 56px;
        padding: 8px 14px;
        cursor: pointer;
        background: var(--slate-50);
        color: var(--slate-500);
        font-size: 11px;
        strong, small { display: block; font-weight: 500; line-height: 17px; }
        small { color: var(--slate-400); }
      }
      .matching-run-info { min-width: 0; }
      .matching-run-count { display: inline-block; width: 34px; flex: 0 0 34px; margin-left: auto; color: var(--slate-400); font-size: 11px; font-weight: 500; text-align: right; }
      .matching-run-kebab { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; padding: 0; border: 0; background: transparent; cursor: pointer; img { display: block; width: 16px; height: 16px; } &:hover { border-radius: 4px; background: var(--slate-100); } }
      .matching-run-toggle { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 20px; padding: 0; border: 0; background: transparent; }
      .matching-run-arrow { display: block; width: 16px; height: 16px; }
      .matching-run-arrow-right { display: none; }
    }

    .matching-result-item {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) 58px;
      gap: 8px;
      width: 100%;
      min-height: 104px;
      padding: 10px 14px 10px 10px;
      border: 0;
      border-left: var(--width-selected-left-line) solid transparent;
      border-bottom: 1px solid var(--slate-100);
      background: var(--white);
      text-align: left;
      outline: none;
      cursor: pointer;
      &:focus, &:focus-visible { outline: none; }
      &:hover { background: var(--color-hover-background); color: var(--slate-600); }
      &.is-selected, &.is-focused { background: var(--color-selected-background); }
      &.is-selected, &.is-focused { border-left-color: var(--color-selected-left-line); }
      .matching-result-checkbox { display: flex; align-items: flex-start; justify-content: center; }
      .matching-result-checkbox-input { width: 13px; height: 13px; }
      .matching-result-main { display: block; min-width: 0; }
      .matching-result-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .matching-result-status { position: relative; display: flex; gap: 8px; overflow: visible; color: var(--slate-600); font-size: 11px; font-weight: 500; line-height: 17px; }
      .matching-status-trigger { display: inline-flex; align-items: center; gap: 4px; min-height: 19px; padding: 0px 5px 1px 8px; border: 0; border-radius: 8px; background: var(--orange-400); color: var(--white); font: inherit; font-size: 10px; line-height: 16px; cursor: pointer; &:hover { background: var(--orange-500); } &:focus-visible { outline: 2px solid var(--sky-300); outline-offset: 1px; } > img { display: block; width: 10px; height: 10px; opacity: .75; filter: brightness(0) invert(1); } }
      .matching-status-options { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: grid; gap: 2px; min-width: 112px; padding: 4px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); box-shadow: 0 4px 12px rgb(15 23 42 / 12%); &[hidden] { display: none; } > button { padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--slate-600); font: inherit; font-size: 10px; line-height: 16px; text-align: left; cursor: pointer; &:hover, &[aria-current="true"] { background: var(--slate-100); color: var(--slate-800); } } }
      .matching-result-name { margin-top: 2px; color: var(--slate-600); font-size: 10px; font-weight: 700; line-height: 16px; }
      .matching-result-summary { color: var(--slate-600); font-size: 10px; font-weight: 500; line-height: 16px; }
      .matching-result-tags {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        min-width: 0;
        margin-top: 5px;
        overflow: visible;
        color: var(--slate-400);
        font-size: 10px;
        font-weight: 500;
        white-space: normal;
        > .matching-result-tags-toggle { max-width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-overflow: ellipsis; text-align: left; cursor: pointer; }
        .matching-list-tag-editor { display: inline-block; width: auto; margin: 0; padding: 0; border: 0; background: transparent; }
        .data-browser-tag-display { display: flex; align-items: center; gap: 6px; min-height: 20px; > label { display: none; } }
        .data-browser-tag-chips { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 4px; margin: 0; }
        .data-browser-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 8px; border: 1px solid var(--slate-200); border-radius: 100px; background: var(--slate-100); color: var(--slate-600); font-size: 10px; line-height: 15px; }
        .data-browser-tag-remove { width: 12px; height: 14px; padding: 0; border: 0; background: transparent; color: var(--slate-400); font-size: 12px; line-height: 14px; }
        .data-browser-tag-suggest-toggle { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--slate-400); font-size: 10px; line-height: 14px; cursor: pointer; &:focus, &:focus-visible { outline: 0; } }
        .data-browser-tag-popup { position: fixed; z-index: 1600; width: min(320px, calc(100vw - 24px)); padding: 10px; border: 0; border-radius: 8px; background: var(--white); box-shadow: var(--new-shadow); &[hidden] { display: none; } }
        .data-browser-tag-popup-options { display: flex; max-height: 180px; flex-direction: column; gap: 6px; overflow-y: auto; }
        .data-browser-tag-option { display: flex; align-items: center; gap: 6px; color: var(--slate-700); font-size: 12px; }
        .data-browser-tag-input-row { display: flex; gap: 0; margin-top: 10px; > input { min-width: 0; height: 30px; padding: 4px 8px; border: 1px solid var(--color-input-border); border-radius: 4px 0 0 4px; font-size: 12px; &:focus { outline: 0; box-shadow: none; } } > button { min-width: 48px; height: 30px; padding: 4px 10px; border: 1px solid var(--slate-600); border-radius: 0 4px 4px 0; background: var(--slate-600); color: var(--white); font-size: 12px; } }
      }
      .matching-result-score {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding-top: 22px;
        color: var(--slate-400);
        font-size: 10px;
        .data-browser-kebab { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; img { display: block; width: 16px; height: 16px; } &:hover { background: var(--slate-100); } }
        .matching-score-label { font-size: 10px; font-weight: 400; line-height: 15px; }
        strong { color: var(--emerald-400); font-size: 24px; font-weight: 700; line-height: 28px; }
        &.is-low-score strong { color: var(--amber-500); }
        &.is-critical-score strong { color: var(--red-400); }
      }
    }

    .data-browser-detail-scroll { height: 100%; overflow: auto; padding: 0; }
    .matching-detail-header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--slate-100); color: var(--slate-500); font-size: 12px; font-weight: 400; }
    .matching-detail-identity { display: flex; align-items: center; gap: 10px; min-width: 0; > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
    .matching-detail-favorites { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
    .matching-favorite-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 4px; border: 0; border-radius: 0; background: transparent; color: var(--slate-400); cursor: pointer; &:hover { background: transparent; color: var(--orange-400); } &:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; } &:disabled { opacity: .55; cursor: wait; } > img { display: block; width: 20px; height: 20px; opacity: .55; } &:hover > img, &.is-active > img { opacity: 1; filter: invert(55%) sepia(92%) saturate(1444%) hue-rotate(349deg) brightness(103%) contrast(101%); } &.is-active { border-color: transparent; background: transparent; color: var(--orange-500); } }
    .matching-detail-status-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
    .matching-status-trigger.matching-detail-status { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 9px 5px 12px; border: 0; border-radius: 10px; background: var(--orange-400); color: var(--white); font: inherit; font-size: 12px; line-height: 16px; cursor: pointer; &:hover { background: var(--orange-500); } &:focus-visible { outline: 2px solid var(--sky-300); outline-offset: 1px; } > img { display: block; width: 12px; height: 12px; opacity: .75; filter: brightness(0) invert(1); } }
    .matching-status-options.matching-detail-status-options { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; display: grid; gap: 2px; min-width: 140px; padding: 4px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); box-shadow: 0 4px 12px rgb(15 23 42 / 12%); &[hidden] { display: none; } > button { padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--slate-600); font: inherit; font-size: 12px; line-height: 18px; text-align: left; cursor: pointer; &:hover, &[aria-current="true"] { background: var(--slate-100); color: var(--slate-800); } } }
    .matching-detail-actions { display: flex; gap: 8px; button { min-height: 30px; padding: 6px 16px; font-size: 11px; font-weight: 500; } }
    .matching-detail-overview { display: grid; grid-template-columns: 72px minmax(0, 1fr) max-content; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--slate-100); }
    .matching-detail-schedule { display: grid; justify-items: start; align-content: center; gap: 8px; }
    .matching-detail-schedule-field { display: grid; grid-template-columns: max-content 130px; align-items: center; gap: 10px; color: var(--slate-500); font-size: 11px; font-weight: 500; > .matching-detail-date-control { position: relative; display: flex; width: 130px; min-width: 0; align-items: center; > input { width: 100%; min-width: 0; height: 24px; padding: 0 48px 0 6px; border: 1px solid var(--slate-200); border-radius: 5px; background: var(--white); color: var(--slate-700); font: inherit; font-size: 10px; &:focus, &:focus-visible { outline: 0; } &::-webkit-calendar-picker-indicator { opacity: 1; filter: invert(69%) sepia(14%) saturate(475%) hue-rotate(178deg) brightness(93%) contrast(87%); } } > button { position: absolute; right: 27px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #90A1B9; font: inherit; font-size: 17px; line-height: 20px; cursor: pointer; &:hover { background: var(--slate-100); color: #90A1B9; } &:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; } } } }
    .matching-detail-score { display: flex; flex-direction: column; gap: 4px; color: var(--slate-400); font-size: 11px; strong { color: var(--emerald-400); font-size: 36px; font-weight: 700; line-height: 36px; } &.is-low-score strong { color: var(--amber-500); } &.is-critical-score strong { color: var(--red-400); } }
    .matching-detail-summary { color: var(--slate-600); font-size: 12px; font-weight: 500; line-height: 20px; }

    .matching-detail-tags {
      min-height: 40px;
      box-sizing: border-box;
      margin-top: 10px;
      padding: 9px 12px;
      border-radius: 8px;
      background: var(--slate-50);
      color: var(--slate-400);
      font-size: 12px;
      font-weight: 500;
      .data-browser-tag-editor { margin: 0; padding: 0; border: 0; background: transparent; }
      .data-browser-tag-display { display: flex; align-items: center; gap: 6px; min-height: 22px; > label { flex: 0 0 auto; color: var(--slate-400); font-size: 12px; font-weight: 500; line-height: 14px; } }
      .data-browser-tag-chips { flex: 0 1 auto; margin: 0; column-gap: 4px; row-gap: 4px; }
      .data-browser-tag-suggest-toggle { flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--slate-400); font-size: 10px; line-height: 12px; &:hover { background: transparent; color: var(--slate-400); } &:focus, &:focus-visible { outline: 0; } }
      .data-browser-tag { gap: 4px; padding: 2px 6px 2px 10px; color: var(--slate-600); background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 100px; font-size: 12px; line-height: 16px; }
      .data-browser-tag-remove { width: 12px; height: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--slate-400); font-size: 12px; line-height: 14px; }
      .data-browser-tag-popup {
        position: fixed;
        z-index: 5;
        width: min(320px, 100%);
        padding: 10px;
        border: 0;
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
        .data-browser-tag-popup-options { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
        .data-browser-tag-option { display: flex; align-items: center; gap: 6px; color: var(--slate-700); font-size: 12px; }
        .data-browser-tag-input-row {
          display: flex;
          align-items: center;
          gap: 0;
          margin-top: 10px;
          input { min-width: 0; height: 30px; padding: 4px 8px; border: 1px solid var(--color-input-border); border-radius: 4px 0 0 4px; background: var(--white); color: var(--slate-700); font-size: 12px; &:focus { outline: 0; box-shadow: none; } }
          button { flex: 0 0 auto; min-width: 48px; height: 30px; margin: 0; padding: 4px 10px; border: 1px solid var(--slate-600); border-radius: 0 4px 4px 0; background: var(--slate-600); color: var(--white); font-size: 12px; }
        }
      }
    }

    .matching-detail-analysis-grid { display: grid; grid-template-columns: minmax(0, 2fr) 4px minmax(180px, 1fr); align-items: stretch; gap: 0; padding: 20px 0 8px 20px; border-bottom: 1px solid var(--slate-100); }
    .matching-detail-comments-resizer { position: relative; z-index: 1; justify-self: center; width: 20px; min-width: 20px; touch-action: none; cursor: col-resize; &::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: var(--slate-200); content: ""; } &::after { position: absolute; top: 50%; left: 50%; width: 4px; height: 32px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--slate-300); content: ""; } &:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -2px; } }
    .matching-detail-analysis-grid.is-comments-resizing { cursor: col-resize; user-select: none; }
    .matching-detail-analysis { display: grid; gap: 16px; min-width: 0; padding-right: 8px; }
    .matching-detail-reason {
      min-width: 0;
      h3 { margin: 0 0 6px; padding-left: 10px; border-left: 4px solid var(--sky-400); color: var(--slate-800); font-size: 14px; font-weight: 700; line-height: 20px; }
      p { margin: 0; color: var(--slate-600); font-size: 12px; font-weight: 500; line-height: 20px; white-space: pre-wrap; strong { font-weight: 700; } }
      &.is-ai-reason h3 { border-left-color: var(--violet-400); }
      &.is-team-consideration h3 { border-left-color: var(--emerald-400); }
      &.is-reason h3 { border-left-color: var(--emerald-400); }
      &.is-concern h3 { border-left-color: var(--red-400); }
      ul { display: grid; gap: 4px; margin: 0; padding-left: 20px; color: var(--slate-600); font-size: 12px; font-weight: 500; line-height: 20px; }
    }
    .matching-detail-reason-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
    .matching-detail-info { min-width: 0; dl { display: grid; gap: 4px; margin: 0; > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; font-size: 12px; line-height: 20px; } } dt { color: var(--slate-400); } dd { margin: 0; color: var(--slate-600); } }
    .matching-detail-comments {
      min-width: 0;
      display: flex;
      flex-direction: column;
      height: auto;
      min-height: 0;
      align-self: stretch;
      padding: 0;
      border: 1px solid var(--slate-200);
      border-radius: 8px;
      background: var(--slate-100);
      > .matching-detail-comments-header {
        display: flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding: 0 12px;
        background: var(--slate-700);
        > h3 { overflow: hidden; margin: 0; color: var(--white); font-size: 11px; font-weight: 500; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
        > button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
        > button > img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
        &.is-searching { gap: 8px; }
        > input { flex: 1 1 auto; width: 0; min-width: 0; height: 24px; padding: 0 6px; border: 1px solid var(--slate-200); border-radius: 4px; background: var(--white); color: var(--slate-700); font: inherit; font-size: 11px; &:focus { outline: 0; } }
      }
      > .matching-detail-comments-list {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        gap: 12px;
        overflow-y: auto;
        padding: 12px;
        > .matching-detail-comment {
          display: grid;
          grid-template-columns: 30px minmax(0, 1fr);
          flex: 0 0 auto;
          gap: 8px;
          align-items: start;
          > .matching-detail-comment-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--slate-300); border-radius: 50%; background: var(--slate-100); color: var(--slate-600); font-size: 14px; }
          > div {
            min-width: 0;
            > header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; > strong { color: var(--slate-800); font-size: 10px; font-weight: 700; line-height: 14px; } > small { color: var(--slate-400); font-size: 10px; line-height: 12px; } > button { margin-left: auto; padding: 0 4px; border: 0; background: transparent; color: var(--sky-600); font-size: 10px; cursor: pointer; } }
            > p { margin: 0; padding: 8px 10px; border: 1px solid var(--slate-200); border-radius: 8px; background: var(--white); color: var(--slate-600); font-size: 10px; font-weight: 500; line-height: 16px; white-space: pre-wrap; }
            > p > .matching-detail-comment-hit { color: var(--emerald-600); &.is-focused { border-radius: 2px; background: var(--amber-100); color: var(--slate-800); } }
            > .matching-detail-comment-edit { display: flex; flex-direction: column; > textarea { width: 100%; min-height: 53px; padding: 8px 60px 7px 10px; border: 1px solid var(--slate-200); border-radius: 6px; background: var(--white); color: var(--slate-700); font: inherit; font-size: 11px; resize: vertical; &:focus { outline: 0; } } > button { position: sticky; z-index: 1; bottom: 8px; align-self: flex-end; width: 48px; height: 26px; min-height: 26px; margin: -34px 16px 8px 0; padding: 0; border-radius: 5px; font-size: 10px; } }
          }
        }
        > .matching-detail-comments-empty { color: var(--slate-400); font-size: 10px; font-weight: 500; line-height: 16px; }
      }
      > .matching-detail-comment-form {
        position: relative;
        display: block;
        flex: 0 0 auto;
        padding: 10px 12px;
        > textarea { width: 100%; min-width: 0; height: 53px; min-height: 53px; padding: 7px 60px 7px 10px; border: 1px solid var(--slate-200); border-radius: 4px; background: var(--white); color: var(--slate-700); font: inherit; font-size: 11px; resize: vertical; &:focus { outline: 0; } }
        > button { position: absolute; right: 28px; bottom: 18px; width: 42px; height: 24px; min-height: 24px; padding: 0; font-size: 11px; &:disabled { cursor: default; } }
      }
      > .matching-detail-comments-footer {
        display: flex;
        flex: 0 0 32px;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 12px;
        background: var(--slate-700);
        > button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; &:disabled { opacity: .35; cursor: default; } }
        > button:focus-visible { outline: 0; }
        > button > img { filter: brightness(0) invert(1); }
        > button:first-child > img { transform: rotate(-90deg); }
        > button:nth-child(2) > img { transform: rotate(90deg); }
        > .matching-detail-comments-position { color: var(--white); font-size: 11px; line-height: 16px; }
      }
    }

    .data-browser-match-detail { padding: 0 8px 20px 20px; }
    .data-browser-match-editor { margin-top: 16px; }
    .matching-detail-records { display: grid; gap: 20px; min-width: 0; padding: 20px 0 0; }
    .matching-detail-records > h3 { margin: 0; color: var(--slate-700); font-size: 14px; font-weight: 700; line-height: 20px; }
    .matching-detail-unified-table-scroll { min-width: 0; overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 8px; }
    .matching-detail-unified-table {
      width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; background: var(--white); color: var(--slate-600); font-size: 11px; line-height: 16px;
      > colgroup > .matching-detail-unified-major { width: 4em; }
      > colgroup > .matching-detail-unified-small { width: 5em; }
      > colgroup > .matching-detail-unified-judgment { width: 2em; }
      > thead > tr > th, > tbody > tr > th, > tbody > tr > td { padding: 4px 4px; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
      > thead > tr > th { position: sticky; top: 0; z-index: 1; background: var(--slate-200); color: var(--slate-700); font-weight: 700; }
      > tbody > tr > th { background: var(--slate-200); color: var(--slate-700); font-weight: 700; }
      > tbody > tr > td.matching-detail-unified-small { background: var(--slate-100); font-weight: 700; }
      > tbody > tr > td.matching-detail-evaluation-judgment { padding: 4px 2px; text-align: center; vertical-align: top; font-size: 14px; font-weight: 700; }
      > tbody > tr:last-child > * { border-bottom: 0; }
      > tbody > tr > td.matching-detail-evaluation-judgment.is-match { color: var(--emerald-600); }
      > tbody > tr > td.matching-detail-evaluation-judgment.is-unknown { color: var(--amber-600); }
      > tbody > tr > td.matching-detail-evaluation-judgment.is-mismatch { color: var(--red-600); }
    }
    .data-browser-related-record { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 8px; }
    .data-browser-related-record + .data-browser-related-record { margin-top: 12px; }

    @container (max-width: 620px) {
      .matching-detail-overview { grid-template-columns: 64px minmax(0, 1fr); }
      .matching-detail-schedule { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .matching-detail-analysis-grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
      .matching-detail-comments-resizer { display: none; }
      .matching-detail-comments { height: 414px; }
      .matching-detail-unified-table {
        > thead > tr > th, > tbody > tr > th, > tbody > tr > td { padding: 3px 2px; font-size: 10px; line-height: 14px; }
        > tbody > tr > td.matching-detail-evaluation-judgment { padding: 3px 1px; font-size: 12px; }
      }
    }

    @media (max-width: 760px) {
      .is-matching-split {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(72px, 50fr) 8px minmax(48px, 50fr);
        > .data-browser-resizer { width: 100%; height: 8px; cursor: row-resize; &::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform: translateY(-50%); } &::after { width: 44px; height: 4px; } }
        > .data-browser-list-wrap { grid-row: 1; border-radius: 12px; }
        > .data-browser-detail-wrap { grid-row: 3; border-left: 1px solid var(--slate-200); border-top: 1px solid var(--slate-200); border-radius: 12px; }
      }
      > .matching-list-header { margin: 12px 12px 10px; }
      > .matching-status-header { margin: 0 12px 10px; }
      > .is-matching-split { margin: 0 12px 12px; }
    }
  }
}
