/* Domain-owned rules; original declarations and media conditions preserved. */
.term-usmle-section{
    background: rgba(88,166,255,0.045);
  }
html[data-theme="light"] .term-usmle-section{
    background: #f8fafc;
  }
.term-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.15s;
    cursor: pointer;
  }
.term-card:hover{
    border-color: #3d444d;
    transform: translateY(-1px);
  }
.term-card.expanded{
    border-color: var(--accent);
  }
.term-card.selected{
    border-color: rgba(248,81,73,0.55);
    background: rgba(248,81,73,0.035);
  }
.term-header{
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
.term-select-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
  }
.term-select-wrap input{
    width: 15px;
    height: 15px;
    accent-color: #f85149;
    cursor: pointer;
  }
.term-main{
    flex: 1;
    min-width: 0;
  }
.term-meta-row{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    max-width: 54%;
  }
.term-korean{
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
  }
.term-korean,.term-english,.term-uzbek{
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
  }
.term-uzbek{
    font-size: 13px;
    color: var(--text2);
    margin-top: 1px;
    line-height: 1.3;
  }
.term-english{
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.2px;
  }
.term-category{
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    color: var(--text3);
    white-space: nowrap;
    flex-shrink: 0;
  }
.term-complete-badge{
    font-size: 10px;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: default;
    white-space: nowrap;
    flex-shrink: 0;
  }
.term-complete-badge[data-complete]{color:var(--ui-danger);background:var(--surface2);border:1px solid currentColor;margin-right:4px;font-size:12px}
.term-complete-badge[data-complete="true"]{color:var(--ui-success)}
.term-header + .card-action-row{ margin: -6px 16px 14px; }
@media (max-width: 600px){.term-header + .card-action-row{ margin: -6px 12px 14px; }}
.medical-core-workspace .lab-split .lab-list-pane .term-header + .card-action-row{ margin: -4px 11px 10px; }
html[data-theme="light"] .term-card{
    background: #ffffff;
    border-color: #d7e0ee;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  }
html[data-theme="light"] .term-card:hover{
    border-color: #b9c7da;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
.term-card.expanded .chevron{ transform: rotate(180deg); }
.term-detail{
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
.term-card.expanded .term-detail{ display: block; }
.utility-modal-shell.term-content-review-shell{ width: min(640px, calc(100vw - 28px)); }
.term-content-review-shell .utility-modal-content{ gap: 12px; }
.term-content-review-shell textarea{
    box-sizing: border-box; width: 100%; min-height: 96px; padding: 10px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface2); color: var(--text); font: inherit;
  }
.term-content-review-shell .modal-actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.term-content-review-shell .modal-actions button{
    min-height: 44px; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface2); color: var(--text); font: inherit;
  }
.term-content-review-shell .review-confirmation{ display: flex; align-items: center; gap: 8px; min-height: 44px; }
.term-card{ animation: fadeIn 0.2s ease both; }
.term-card{ cursor: pointer; }
.term-card .term-detail{ display: none !important; }
.term-card .chevron{ display: none !important; }
.term-card.expanded{ border-color: var(--accent); }
@media (max-width: 600px){.term-card{
      border-radius: 13px;
      margin-bottom: 12px;
    }}
@media (max-width: 600px){.term-header{
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      align-items: start;
      gap: 8px 10px;
      padding: 14px 12px;
    }}
@media (max-width: 600px){.term-select-wrap{
      grid-column: 1;
      grid-row: 1;
      width: 30px;
      height: 30px;
      margin-top: 2px;
    }}
@media (max-width: 600px){.term-main{
      grid-column: 2;
      grid-row: 1;
      width: 100%;
      min-width: 0;
    }}
@media (max-width: 600px){.term-korean{
      max-width: 100%;
      overflow-wrap: break-word;
      word-break: keep-all;
      line-height: 1.45;
    }}
@media (max-width: 600px){.term-english{
      max-width: 100%;
      overflow-wrap: break-word;
      word-break: keep-all;
      line-height: 1.45;
    }}
@media (max-width: 600px){.term-uzbek{
      max-width: 100%;
      overflow-wrap: break-word;
      word-break: keep-all;
      line-height: 1.45;
    }}
@media (max-width: 600px){.term-korean{
      font-size: 15px;
      margin-bottom: 4px;
    }}
@media (max-width: 600px){.term-english{
      font-size: 15px;
    }}
@media (max-width: 600px){.term-uzbek{
      font-size: 14px;
      margin-top: 4px;
    }}
@media (max-width: 600px){.term-meta-row{
      grid-column: 2;
      grid-row: 2;
      width: 100%;
      max-width: none;
      justify-content: flex-start;
      gap: 6px;
      min-width: 0;
    }}
@media (max-width: 600px){.term-category{
      max-width: 100%;
      min-height: 26px;
      display: inline-flex;
      align-items: center;
      overflow: hidden;
      text-overflow: ellipsis;
    }}
@media (max-width: 600px){.term-complete-badge{
      min-height: 26px;
      display: inline-flex;
      align-items: center;
      margin-right: 0 !important;
    }}
@media(min-width:1001px){.medical-core-workspace .lab-split .lab-list-pane .term-card{margin-bottom:6px;border-radius:var(--ui-radius-control);background:var(--ui-surface)}}
@media(min-width:1001px){.medical-core-workspace .lab-split .lab-list-pane .term-header{padding:10px 11px;gap:8px}}
@media(min-width:1001px){
  .medical-core-workspace .lab-split .lab-list-pane .term-header{align-items:flex-start;flex-wrap:wrap}
  .medical-core-workspace .lab-split .lab-list-pane .term-main{flex:1 1 calc(100% - 38px)}
  .medical-core-workspace .lab-split .lab-list-pane .term-meta-row{flex:1 1 100%;max-width:none;justify-content:flex-start;padding-left:34px}
}

/* 용어 상세의 호르몬 구획 */
.ref-hormone-section .ref-cell { margin-top: 6px; }
.ref-hormone-section .ref-k { display: block; width: 100%; font-size: 11px; font-weight: 800; color: var(--text3); }
.ref-hormone-section .ref-open-table { margin-top: 10px; }
