@layer components {
  .ith-flex { display: flex; flex-wrap: wrap; }
  .ith-items-center { align-items: center; }
  .ith-justify-between { justify-content: space-between; }
  .ith-gap-2 { gap: 8px; }
  .ith-gap-3 { gap: 12px; }
  .ith-mt-2 { margin-top: 8px; }
  .ith-mt-4 { margin-top: 16px; }
  .ith-mt-6 { margin-top: 24px; }
  .ith-mb-4 { margin-bottom: 16px; }
  .ith-mb-6 { margin-bottom: 24px; }
  .ith-mb-8 { margin-bottom: 32px; }
  .ith-text-center { text-align: center; }
  .ith-body-sm { font-size: var(--text-md); }
  .ith-caption { font-size: var(--text-sm); }
  .ith-header-actions, .ith-success-actions, .ith-action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .ith-action-bar, .ith-success-actions { margin-top: 24px; }
  .ith-page-head { margin-bottom: 24px; }
  .ith-detail-header { margin-bottom: 24px; }
  .ith-detail-title { display: flex; gap: 12px; align-items: center; }
  .ith-back-link { display: inline-grid; place-items: center; width: 36px; height: 36px; color: var(--color-text-muted); }
  .ith-section-title { margin: 24px 0 12px; font: 600 var(--text-lg)/1.4 var(--font-display); }
  .ith-section-divider { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-line); }
  .ith-section-divider .ith-section-title { margin-top: 0; }
  .ith-alert { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; padding: 12px 14px; border-left: 2px solid var(--color-line-strong); background: var(--color-sunken); font-size: var(--text-sm); }
  .ith-alert-error { border-color: var(--status-danger); color: var(--status-danger); background: var(--status-danger-bg); }
  .ith-alert-content { min-width: 0; }
  .ith-alert-icon { flex: none; margin-top: 3px; }
  .ith-filter-field { display: grid; gap: 6px; min-width: 116px; }
  .ith-filter-field.ith-search-group { flex: 1 1 220px; min-width: 0; }
  .ith-filter-field .select { width: 100%; }
  .ith-checkbox-cell { width: 40px; }
  .ith-feature-icons, .ith-feature-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .ith-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--color-line); border-radius: var(--radius-chip); }
  .ith-feature-icon-active, .ith-feature-on { color: var(--color-text); }
  .ith-feature-icon-inactive, .ith-feature-off { color: var(--color-text-muted); }
  .ith-feature-icon-inactive { border-style: dashed; }
  .ith-data-link, .ith-submission-link { display: inline-flex; gap: 5px; align-items: center; text-decoration: none; min-height: 24px; }
  .ith-data-link:hover, .ith-submission-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .ith-data-link-similarity { color: var(--metric-similarity); }
  .ith-data-link-ai { color: var(--metric-ai); }
  .ith-token-wrapper { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .ith-token-cell, .ith-token-value { font-family: var(--font-mono); }
  .ith-token-link { color: inherit; text-underline-offset: 3px; }
  .ith-token-deleted { color: var(--color-text-muted); text-decoration: line-through; }
  .ith-token-value { min-width: 0; overflow-wrap: anywhere; }
  .ith-token-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: var(--text-sm); color: var(--color-text-muted); }
  .ith-token-display, .ith-token-box { margin: 20px 0; padding: 16px; border: 1px solid var(--color-line); border-radius: var(--radius-surface); background: var(--color-sunken); }
  .ith-token-capabilities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 12px; font-size: var(--text-sm); }
  .ith-token-label { margin-bottom: 8px; font-size: var(--text-sm); color: var(--color-text-muted); }
  .ith-token-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .ith-info-card { min-width: 0; border-bottom: 1px solid var(--color-line); padding-bottom: 14px; }
  .ith-info-card-wide { grid-column: 1 / -1; }
  .ith-info-label, .ith-summary-label, .ith-readonly-label { font-size: var(--text-sm); color: var(--color-text-muted); }
  .ith-info-value { margin-top: 5px; overflow-wrap: anywhere; }
  .ith-error-text { color: var(--status-danger); }
  .ith-switch-group { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--color-line); }
  .ith-switch-info { flex: 1; min-width: 0; }
  .ith-switch-title { font-size: var(--text-md); font-weight: 600; }
  .ith-switch-desc, .ith-readonly-hint { margin-top: 3px; font-size: var(--text-sm); color: var(--color-text-muted); }
  .ith-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 44px; cursor: pointer; }
  .ith-toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .ith-toggle-slider { width: 40px; height: 22px; padding: 3px; border-radius: 14px; background: var(--color-line-strong); pointer-events: none; transition: background-color var(--dur-fast); }
  .ith-toggle-slider::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--color-surface); transition: transform var(--dur-fast); }
  .ith-toggle input:checked + .ith-toggle-slider { background: var(--color-action); }
  .ith-toggle input:checked + .ith-toggle-slider::before { transform: translateX(18px); background: var(--color-on-action); }
  .ith-toggle:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-control); }
  .ith-readonly-field, .ith-summary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .ith-summary-value { min-width: 0; overflow-wrap: anywhere; }
  .ith-summary-box { margin-top: 20px; text-align: left; }
  .ith-success-card { text-align: center; padding: 28px; }
  .ith-success-title { margin-top: 16px; font: 700 26px/1.3 var(--font-display); }
  .ith-success-desc { margin-top: 8px; color: var(--color-text-muted); }
  .ith-success-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--status-success); background: var(--status-success-bg); }
  .ith-success-actions { justify-content: center; }
  .ith-info-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin-top: 20px; background: var(--color-sunken); border-radius: var(--radius-control); font-size: var(--text-sm); }
  .ith-info-box-title { font-weight: 600; }
  .ith-info-box-content { color: var(--color-text-muted); }
  .ith-report-metadata { margin-bottom: 20px; padding: 14px 0 0; border-top: 1px solid var(--color-line); }
  .ith-report-metadata > time { display: block; margin: 6px 0 12px; font-size: var(--text-xs); }
  .ith-report-metadata .kv { --kv-label-width: 28%; }
  .ith-report-metadata .kv dt { padding-left: 0; }
  .ith-report-metadata .kv dt:last-of-type, .ith-report-metadata .kv dd:last-child { border-bottom: 0; }
  .ith-report-metadata .slip { width: 100%; }
  .ith-report-metadata .slip-value { min-width: 0; flex: 1; }
  .side-user { display: grid; gap: 10px; margin-bottom: 12px; }
  .side-user-name { overflow-wrap: anywhere; font-size: var(--text-sm); color: var(--color-text-muted); }
  .ith-bulk-actions[hidden] { display: none; }
  @media (pointer: coarse) {
    .ith-back-link, .ith-data-link, .ith-submission-link { min-width: 44px; min-height: 44px; }
    .ith-checkbox-cell input { width: 24px; height: 24px; }
  }
  @media (max-width: 900px) {
    .ith-filter-field { flex: 1 1 130px; }
    .ith-header-actions { gap: 8px; }
  }
  @media (max-width: 560px) {
    .ith-token-info-grid { grid-template-columns: minmax(0, 1fr); }
    .ith-header-actions .btn { flex: 1; }
    .ith-success-card { padding: 20px; }
    .ith-success-actions .btn { width: 100%; }
    .ith-switch-group { gap: 12px; }
    .ith-detail-title { align-items: flex-start; }
  }
}
@layer layouts {
  [data-brand="ithenticate"] .filters { align-items: flex-end; }
  [data-brand="ithenticate"] .stat-strip { --cols: 3; margin-bottom: 20px; }
  .ith-page-token-form .content > .panel, .ith-page-token-single-generate .content > .panel, .ith-page-token-bulk-generate .content > .panel, .ith-page-token-generate-success .content > .panel, .ith-page-token-bulk-generate-success .content > .panel, .ith-page-console-settings .content > .panel { max-width: 760px; margin-inline: auto; }
}
@layer components {
  .ith-details-hint { color: var(--color-text-muted); font-size: var(--text-sm); }
  .ith-row-select { justify-content: center; width: 44px; margin: -8px; }
  .ith-row-select input { width: 16px; height: 16px; }
  .ith-token-wrapper > .slip { max-width: 100%; }
  .ith-token-wrapper .slip-link { min-width: 0; }
  .ith-info-value > .slip { max-width: 100%; }
  [data-brand="ithenticate"] .page-head > .page-title { flex: 1; min-width: 0; }
  [data-brand="ithenticate"] .metric .v.result-message { font: 500 var(--text-sm)/1.5 var(--font-ui); }
  @media (max-width: 720px) {
    [data-brand="ithenticate"] .table.stack tr.has-sel { padding-left: 64px; }
    [data-brand="ithenticate"] .table.stack td.sel { left: 14px; top: 18px; }
    .ith-token-wrapper .slip { width: 100%; }
    .ith-token-wrapper .slip-link { flex: 1; }
  }
}
@layer components {
  .ith-page-submission-detail .metric-strip { --cols: 2; }
}

@layer components {
  .ith-summary-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 0 0 20px; }
  .ith-summary-stat { display: inline-flex; align-items: center; gap: 7px; }
  .ith-summary-stat .stat-value { font: 600 var(--text-lg)/1.2 var(--font-display); }
  .ith-summary-stat .stat-label { font-size: var(--text-sm); }
}
@layer layouts {
  @media (max-width: 900px) {
    .ith-page-token-list .page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
    .ith-page-token-list .ith-header-actions { width: 100%; }
    .ith-page-token-list .ith-header-actions .btn { flex: 0 1 auto; }
    .ith-page-token-list .ith-summary-strip { gap: 10px 18px; }
  }
}
@layer components {
  .ith-side-caption { margin-top: 8px; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; }
}
