/* Transfermarkt: quiet hierarchy, shared Lucide controls and unboxed data tables. */
.tm-workspace {
  --tm-text: #18181b;
  --tm-muted: #71717a;
  --tm-line: #e4e4e7;
  --tm-surface: #f4f4f5;
  --tm-elevated: #fff;
  --tm-hover: #f4f4f580;
  --tm-blue: #2563eb;
  color: var(--tm-text);
  max-width: none;
  padding: 28px 32px 60px;
}
:root[data-theme="dark"] .tm-workspace {
  --tm-text: #f4f4f5;
  --tm-muted: #a1a1aa;
  --tm-line: #27272a;
  --tm-surface: #18181b;
  --tm-elevated: #27272a;
  --tm-hover: #18181b;
  --tm-blue: #60a5fa;
}
.tm-workspace *, .tm-workspace *::before, .tm-workspace *::after { box-sizing: border-box; }
.tm-workspace .tm-page-header { min-height: 36px; gap: 16px; margin: 0 0 24px; }
.tm-workspace .tm-page-header h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 650; letter-spacing: -.035em; }
.tm-workspace .tm-header-actions { min-height: 36px; flex-shrink: 0; }
.tm-workspace .tm-primary-tabs { gap: 24px; align-items: stretch; background: none; padding: 0; border-radius: 0; margin: 0; border-bottom: 1px solid var(--tm-line); }
.tm-workspace .tm-primary-tabs button { display: inline-flex; align-items: center; gap: 8px; appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 2px 12px; margin-bottom: -1px; font: inherit; font-size: 13px; line-height: 20px; color: var(--tm-muted); cursor: pointer; white-space: nowrap; }
.tm-workspace .tm-primary-tabs button:hover { color: var(--tm-text); }
.tm-workspace .tm-primary-tabs button[aria-pressed="true"] { border-bottom-color: var(--tm-text); color: var(--tm-text); font-weight: 550; }
#tab-content .category-page.tm-mailbox-page { max-width: none; padding-bottom: 0; }
.tm-workspace.tm-mailbox-heading { padding: 0; }
.tm-mailbox-content { margin-top: 24px; min-width: 0; }
.tm-workspace .tm-section-header { min-height: 36px; gap: 16px; margin-top: 24px; margin-bottom: 20px; }
.tm-workspace .tm-section-header h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.025em; }
.tm-workspace .tm-secondary-tabs { flex-shrink: 0; padding: 3px; gap: 2px; border: 1px solid var(--tm-line); border-radius: 8px; background: var(--tm-surface); }
.tm-workspace .tm-secondary-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; border-radius: 5px; padding: 6px 10px; min-height: 28px; font: inherit; font-size: 12px; font-weight: 500; color: var(--tm-muted); cursor: pointer; white-space: nowrap; }
.tm-workspace .tm-secondary-tabs button[aria-pressed="true"] { background: var(--tm-elevated); color: var(--tm-text); box-shadow: 0 1px 3px #0000000d; }
.tm-workspace .tm-secondary-tabs button:hover { color: var(--tm-text); }
.tm-workspace .tm-counter { display: inline-flex; justify-content: center; align-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb,var(--tm-muted) 10%,transparent); color: var(--tm-muted); font-size: 10px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.tm-icon, .tm-workspace .ic { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tm-workspace button, .tm-workspace summary, .tm-workspace input, .tm-workspace select { -webkit-tap-highlight-color: transparent; }
.tm-workspace .tm-button, .tm-workspace .tm-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border: 1px solid var(--tm-line); border-radius: 7px; padding: 7px 11px; background: transparent; color: var(--tm-text); font: inherit; font-size: 12px; font-weight: 500; line-height: 18px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.tm-workspace .tm-button:hover, .tm-workspace .tm-icon-button:hover { background: var(--tm-hover); border-color: color-mix(in srgb,var(--tm-muted) 42%,var(--tm-line)); }
.tm-workspace .tm-button--primary { color: #fff; border-color: #2563eb; background: #2563eb; box-shadow: 0 1px 2px #00000012; }
.tm-workspace .tm-button--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.tm-workspace .tm-icon-button { width: 34px; padding: 0; flex-shrink: 0; }
.tm-workspace .tm-inbox-icon { position: relative; border-color: transparent; color: var(--tm-muted); }
.tm-workspace .tm-notification-dot { position: absolute; top: -3px; right: -3px; font-size: 9px; background: #2563eb; color: #fff; border-radius: 9px; min-width: 15px; padding: 0 3px; line-height: 15px; }
.tm-workspace :is(button,summary,input,select,textarea):focus-visible { outline: 2px solid var(--tm-blue); outline-offset: 3px; }
.tm-workspace button:disabled { opacity: .45; cursor: wait; }
.tm-workspace .tm-market-content { margin-top: 24px; }
.tm-workspace .tm-market-filters { display: block; margin: 0 0 20px; }
.tm-workspace .tm-filter-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.tm-workspace .tm-search-field { position: relative; display: flex; align-items: center; gap: 8px; width: min(360px,100%); min-width: 150px; color: var(--tm-muted); margin: 0; }
.tm-workspace .tm-search-field > svg { position: absolute; left: 11px; pointer-events: none; }
.tm-workspace .tm-search-field input { width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--tm-line); border-radius: 7px; padding: 7px 12px 7px 35px; font: inherit; font-size: 12px; line-height: 20px; color: var(--tm-text); background: transparent; }
.tm-workspace input::placeholder { color: var(--tm-muted); opacity: .85; }
.tm-workspace .tm-filter-actions { display: flex; align-items: center; gap: 8px; }
.tm-workspace .tm-scope-select { display: flex; position: relative; align-items: center; margin: 0; }
.tm-workspace .tm-scope-select select { appearance: none; min-height: 34px; padding: 6px 30px 6px 11px; color: var(--tm-muted); font: inherit; font-size: 12px; border: 1px solid var(--tm-line); border-radius: 7px; background: transparent; cursor: pointer; }
.tm-workspace .tm-scope-select svg { position: absolute; right: 9px; pointer-events: none; color: var(--tm-muted); width: 13px; height: 13px; }
.tm-workspace .tm-market-filters details { position: relative; }
.tm-workspace .tm-market-filters summary { list-style: none; }
.tm-workspace .tm-market-filters summary::-webkit-details-marker { display: none; }
.tm-workspace .tm-filter-more summary { border-style: dashed; }
.tm-workspace .tm-market-filters details > div { position: absolute; right: 0; top: calc(100% + 7px); z-index: 30; width: 286px; max-width: calc(100vw - 32px); background: var(--c-white); border: 1px solid var(--tm-line); border-radius: 9px; padding: 14px; box-shadow: 0 12px 36px #00000020; display: grid; gap: 12px; }
.tm-workspace .tm-popover-title { font-size: 12px; font-weight: 600; padding-bottom: 11px; border-bottom: 1px solid var(--tm-line); }
.tm-workspace .tm-filter-popover label { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px; align-items: center; color: var(--tm-muted); font-size: 12px; }
.tm-workspace .tm-filter-popover select, .tm-workspace .tm-filter-popover input { width: 100%; min-width: 0; min-height: 32px; border: 1px solid var(--tm-line); border-radius: 5px; background: var(--c-white); color: var(--tm-text); font: inherit; padding: 6px 8px; font-size: 12px; }
.tm-workspace .tm-market-more > div { min-width: 190px; width: 210px !important; padding: 5px !important; gap: 2px !important; }
.tm-workspace .tm-market-more button { display: flex; align-items: center; gap: 8px; padding: 9px; border: 0; background: transparent; border-radius: 5px; color: var(--tm-text); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.tm-workspace .tm-market-more button:hover { background: var(--tm-hover); }
.tm-workspace .tm-active-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.tm-workspace .tm-filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 7px; min-height: 27px; border: 1px solid var(--tm-line); border-radius: 6px; background: transparent; color: var(--tm-muted); font: inherit; font-size: 11px; cursor: pointer; }
.tm-workspace .tm-filter-chip strong { font-weight: 500; color: var(--tm-text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 7px; border-left: 1px solid var(--tm-line); }
.tm-workspace .tm-filter-chip svg { width: 12px; height: 12px; }
.tm-workspace .tm-text-action { padding: 3px 5px; border: 0; color: var(--tm-muted); background: none; font: inherit; font-size: 11px; cursor: pointer; }
.tm-workspace .tm-text-action:hover { color: var(--tm-text); }
.tm-workspace .tm-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.tm-workspace .tm-table { width: 100%; border-collapse: collapse; border-spacing: 0; text-align: left; font-size: 12px; color: var(--tm-text); }
.tm-workspace .tm-table th { height: 42px; padding: 10px 16px; color: var(--tm-muted); font-size: 11px; font-weight: 500; background: transparent; border-bottom: 1px solid var(--tm-line); white-space: nowrap; }
.tm-workspace .tm-table td { padding: 16px; height: 64px; border-bottom: 1px solid var(--tm-line); vertical-align: middle; font-size: 12px; }
.tm-workspace .tm-table th:first-child, .tm-workspace .tm-table td:first-child { padding-left: 0; }
.tm-workspace .tm-table th:last-child, .tm-workspace .tm-table td:last-child { padding-right: 0; width: 34px; }
.tm-workspace .tm-table tbody tr { transition: background .12s; }
.tm-workspace .tm-table tbody tr:hover { background: var(--tm-hover); }
.tm-workspace .tm-table tr.tm-row { display: table-row; border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; }
.tm-workspace .tm-table tr.tm-row:hover { background: var(--tm-hover); }
.tm-workspace .tm-table .tm-cell-link { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tm-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.tm-workspace .tm-row-title { font-weight: 550; letter-spacing: -.012em; }
.tm-workspace .tm-row-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--tm-muted); font-size: 11px; font-weight: 400; }
.tm-workspace .tm-own-badge { padding: 0 5px; border-radius: 4px; color: var(--tm-muted); background: color-mix(in srgb,var(--tm-muted) 8%,transparent); font-size: 10px; line-height: 17px; }
.tm-workspace .tm-cell-main { display: block; }
.tm-workspace .tm-cell-secondary { display: block; color: var(--tm-muted); font-size: 11px; margin-top: 5px; }
.tm-workspace .tm-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tm-muted); white-space: nowrap; }
.tm-workspace .tm-status i { width: 5px; height: 5px; border-radius: 50%; background: #71717a; }
.tm-workspace .tm-status[data-status="open"] i { background: #34b989; }
.tm-workspace .tm-status[data-status="draft"] i { background: #d4a34d; }
.tm-workspace .tm-row-open { border: 0; color: var(--tm-muted); }
.tm-workspace .tm-empty-cell { color: var(--tm-muted); text-align: center; padding: 48px 16px !important; }
.tm-workspace .tm-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding-top: 8px; color: var(--tm-muted); font-size: 11px; }
.tm-workspace .tm-align-right { text-align: right; font-variant-numeric: tabular-nums; }
.tm-workspace .scouting { margin: 0; }
.tm-workspace .scouting__layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.tm-workspace .scouting__layout.has-selection { grid-template-columns: minmax(0,1fr) minmax(320px,.65fr); }
.tm-workspace .scouting__directory { border: 0; padding: 0; border-radius: 0; background: transparent; }
.tm-workspace .scouting__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; min-height: 36px; }
.tm-workspace .scouting__state { font-size: 12px; line-height: 20px; margin: 10px 0; }
.tm-workspace .scouting__state:empty { display: none; }
.tm-workspace .scouting__table { white-space: nowrap; }
.tm-workspace .scouting__table .scouting__list { display: table-row-group; }
.tm-workspace .scouting__table .scouting__player { display: table-row; border: 0; border-radius: 0; background: none; width: auto; padding: 0; color: var(--tm-text); cursor: pointer; }
.tm-workspace .scouting__table .scouting__player[aria-selected="true"] { background: var(--tm-hover); }
.tm-workspace .scouting__table .scouting__player td { padding-top: 13px; padding-bottom: 13px; }
.tm-workspace .scouting__table .scouting__player strong { font-size: 12px; font-weight: 550; margin: 0; }
.tm-workspace .scouting__table .scouting__player td:not(:first-child) { color: var(--tm-muted); }
.tm-workspace .tm-table .tm-person-link { flex-direction: row; align-items: center; gap: 10px; }
.tm-workspace .tm-person-avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--tm-line); border-radius: 50%; color: var(--tm-muted); background: transparent; }
.tm-workspace .tm-person-avatar svg { width: 14px; height: 14px; }
.tm-workspace .tm-row-chevron { color: var(--tm-muted); text-align: right; }
.tm-workspace .scouting__detail { position: sticky; top: 0; border: 0; border-left: 1px solid var(--tm-line); border-radius: 0; padding: 0 0 0 24px; background: transparent; }
.tm-workspace .scouting__detail > header { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.tm-workspace .scouting__detail > header > div:last-child { display: flex; align-items: center; gap: 3px; }
.tm-workspace .scouting__detail h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.tm-workspace .scouting__sighting { padding: 16px 0; border: 0; border-bottom: 1px solid var(--tm-line); border-radius: 0; background: none; }
.tm-workspace .scouting__sighting header { display: grid; gap: 5px; }
.tm-workspace .scouting__sighting header strong { font-size: 11px; font-weight: 500; color: var(--tm-muted); }
.tm-workspace .scouting__sighting header small { font-size: 11px; color: var(--tm-muted); }
.tm-workspace .scouting__remark { font-size: 12px; line-height: 1.7; margin: 10px 0 0; }
.tm-workspace .ne-dialog, .tm-workspace .scouting__editor.ne-dialog { border: 1px solid var(--tm-line); border-radius: 12px; background: var(--c-white); color: var(--tm-text); padding: 24px; box-shadow: 0 20px 80px #0004; }
.tm-workspace .ne-dialog header h2, .tm-workspace .scouting__editor.ne-dialog h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.tm-workspace .ne-dialog header > [data-ne-close] { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; color: var(--tm-muted); }
.tm-workspace .nx__form label, .tm-workspace .scouting__field { font-size: 12px; font-weight: 400; color: var(--tm-muted); }
.tm-workspace .nx__form input, .tm-workspace .nx__form select, .tm-workspace .nx__form textarea, .tm-workspace .scouting__field input, .tm-workspace .scouting__field textarea { border: 1px solid var(--tm-line); border-radius: 6px; background: transparent; color: var(--tm-text); box-shadow: none; font-weight: 400; }
.tm-workspace .ne-dialog .btn { border-radius: 7px; font-size: 12px; font-weight: 500; }
@media(max-width:1000px) {
  .tm-workspace { padding: 24px; }
  .tm-workspace .scouting__layout.has-selection { grid-template-columns: minmax(0,1fr); }
  .tm-workspace .scouting__layout.has-selection .scouting__workspace { order: -1; }
  .tm-workspace .scouting__detail { position: static; border-left: 0; border-bottom: 1px solid var(--tm-line); padding: 0 0 20px; }
}
@media(max-width:650px) {
  .tm-workspace { padding: 20px 16px 80px; }
  .tm-workspace .tm-page-header { margin-bottom: 20px; align-items: center; gap: 8px; }
  .tm-workspace .tm-page-header h1 { font-size: 22px; }
  .tm-workspace .tm-header-actions { gap: 4px; }
  .tm-workspace .tm-header-actions .tm-button { font-size: 11px; padding: 7px 9px; gap: 4px; }
  .tm-workspace .tm-header-actions .tm-icon-button { width: 28px; }
  .tm-workspace .tm-section-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .tm-workspace .tm-section-header h2 { font-size: 17px; }
  .tm-workspace .tm-secondary-tabs { width: 100%; justify-content: flex-start; }
  .tm-workspace .tm-secondary-tabs button { flex: 1; }
  .tm-workspace .tm-filter-toolbar { align-items: stretch; flex-wrap: wrap; gap: 10px; }
  .tm-workspace .tm-filter-toolbar .tm-search-field { width: 100%; }
  .tm-workspace .tm-filter-actions { width: 100%; }
  .tm-workspace .tm-market-more { margin-left: auto; }
  .tm-workspace .tm-postings-table { min-width: 620px; }
  .tm-workspace .tm-table th, .tm-workspace .tm-table td { padding-left: 12px; padding-right: 12px; }
  .tm-workspace .tm-table th:first-child, .tm-workspace .tm-table td:first-child { padding-left: 0; }
  .tm-workspace .scouting__toolbar { gap: 8px; }
  .tm-workspace .scouting__toolbar .tm-search-field { min-width: 0; }
  .tm-workspace .scouting__toolbar .tm-button { padding: 7px 9px; font-size: 11px; gap: 4px; }
  .tm-workspace .scouting__toolbar .tm-button .ic { width: 14px; }
  .tm-workspace .ne-dialog, .tm-workspace .scouting__editor.ne-dialog { border-radius: 12px 12px 0 0; padding: 22px 18px; }
}
@media(prefers-reduced-motion:reduce) { .tm-workspace * { transition: none !important; } }

.tm-workspace .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tm-workspace .tm-table-wrap { position: relative; }
.tm-workspace .tm-secondary-tabs .ic { width: 14px; height: 14px; }

.tm-workspace .tm-action-short { display: none; }
@media(max-width:400px) {
  .tm-workspace .tm-action-long { display: none; }
  .tm-workspace .tm-action-short { display: inline; }
  .tm-workspace .tm-secondary-tabs .ic { display: none; }
  .tm-workspace .tm-secondary-tabs button { padding-inline: 8px; gap: 6px; }
}
