#trade-ledger-view { min-width:0; }
.tl-layout { display:grid; grid-template-columns:164px minmax(0,1fr); gap:24px; align-items:start; }
.tl-navigation { display:grid; gap:5px; padding:5px 0; }
.tl-navigation a { display:flex; align-items:center; gap:9px; min-height:42px; padding:10px 12px; border-radius:7px; color:var(--muted); font-size:12px; }
.tl-navigation a[aria-current="page"] { background:#34303f; color:var(--ink); }
.tl-navigation a:hover { background:var(--paper); color:var(--ink); }
.tl-navigation a span { width:16px; text-align:center; color:var(--accent); }
.tl-body { min-width:0; }
.tl-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.tl-heading h2 { font-size:22px; font-weight:600; }
.tl-heading p { margin-top:5px; font-size:12px; color:var(--muted); }
.tl-heading .secondary { font-size:12px; padding:10px 13px; }
.tl-sync { display:flex; gap:9px; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:12px; margin-bottom:15px; min-height:22px; }
.tl-sync-source { color:var(--ink); font-weight:550; }
.tl-sync-message { overflow-wrap:anywhere; }
.tl-sync-message[data-error="true"] { color:var(--red); }
.tl-tabs { display:flex; gap:5px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:16px; padding-bottom:10px; }
.tl-tabs button { display:flex; gap:7px; align-items:center; padding:9px 11px; border-radius:6px; color:var(--muted); background:transparent; font-size:12px; }
.tl-tabs button[aria-selected="true"] { color:var(--ink); background:#34303f; }
.tl-tabs button:hover { background:var(--paper); color:var(--ink); }
.tl-tab-count { padding:1px 5px; background:#393640; border-radius:4px; font-size:11px; font-variant-numeric:tabular-nums; }
.tl-hint { color:var(--muted); font-size:12px; margin-bottom:14px; }
.tl-table-wrap { width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:8px; }
.tl-table { border-collapse:collapse; width:100%; font-size:12px; }
.tl-table th { background:var(--paper); text-align:left; color:var(--muted); font-weight:500; font-size:11px; padding:13px 14px; white-space:nowrap; }
.tl-table td { padding:14px; border-top:1px solid var(--line); vertical-align:middle; font-variant-numeric:tabular-nums; }
.tl-table td[data-label="Item"] { min-width:205px; }
.tl-table td[data-label="Buy cost"],.tl-table td[data-label="Price+"],.tl-table td[data-label="Sold"] { white-space:nowrap; }
.tl-item { display:flex; gap:12px; align-items:center; }
.tl-item img { width:62px; height:46px; object-fit:contain; flex:none; }
.tl-item-name { font-weight:550; overflow-wrap:anywhere; }
.tl-item small { display:block; margin-top:5px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.tl-market-price { display:flex; gap:9px; justify-content:space-between; align-items:baseline; white-space:nowrap; }
.tl-market-price+.tl-market-price { margin-top:7px; }
.tl-market-price small { color:var(--muted); font-size:11px; }
.tl-status { display:inline-block; padding:4px 7px; border-radius:5px; color:var(--muted); background:var(--paper); font-size:11px; white-space:nowrap; }
.tl-status[data-state="ready"] { background:#263a33; color:#a9d1bd; }
.tl-status[data-state="listed"] { background:#34303f; color:#c6bdff; }
.tl-status[data-state="sold"] { background:#283b35; color:#a9d1bd; }
.tl-status[data-state="tradelocked"] { background:#3a3326; color:#e4c38d; }
.tl-time { white-space:nowrap; }
.tl-secondary { display:block; margin-top:5px; font-size:11px; color:var(--muted); }
.tl-profit-positive { color:#a9d1bd; }
.tl-profit-negative { color:var(--red); }
.tl-comment { min-width:170px; max-width:330px; }
.tl-comment textarea { display:block; width:100%; min-height:42px; resize:vertical; padding:9px 10px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font:inherit; line-height:1.5; }
.tl-comment textarea:focus { outline:2px solid var(--accent); outline-offset:1px; }
.tl-comment-status { display:block; min-height:17px; margin-top:4px; color:var(--muted); font-size:11px; }
.tl-comment-status[data-error="true"] { color:var(--red); }
.tl-comment-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:5px; }
.tl-comment-actions button { border:1px solid var(--line); background:var(--paper); border-radius:4px; padding:5px 7px; color:var(--ink); font-size:11px; }
.tl-placeholder { min-height:240px; padding:28px; border-top:1px solid var(--line); color:var(--muted); }
.tl-placeholder p { font-size:13px; }
.tl-empty { padding:36px 22px; color:var(--muted); text-align:center; }
.tl-empty strong { display:block; color:var(--ink); font-size:15px; font-weight:550; margin-bottom:8px; }
.tl-empty p { font-size:12px; }
.tl-inline-error { color:var(--red); font-size:12px; padding:12px 14px; border:1px solid var(--line); border-radius:7px; margin-bottom:14px; }
.tl-sync-caption { margin-top:12px; color:var(--muted); font-size:11px; }
.tl-pager { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:16px; color:var(--muted); font-size:12px; }
.steam-auth-actions { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.steam-login-qr { display:block; width:min(100%,240px); height:auto; margin:18px 0 10px; image-rendering:pixelated; }
#steam-inventory-service-card details { margin-top:20px; }
#steam-inventory-service-card summary { color:var(--muted); font-size:12px; padding:8px 0; }
@media(max-width:1200px) { .tl-layout { grid-template-columns:1fr; gap:18px; } .tl-navigation { display:flex; flex-wrap:wrap; gap:5px; border-bottom:1px solid var(--line); padding:0 0 12px; } .tl-navigation a { min-height:38px; padding:9px 11px; } }
@media(max-width:680px) { .tl-heading h2 { font-size:20px; } .tl-tabs { gap:3px; } .tl-tabs button { padding:8px; } .tl-tab-count { font-size:10px; } .tl-navigation a { font-size:11px; padding:8px; gap:5px; } .tl-navigation a span { display:none; } .tl-table-wrap { overflow:visible; border:0; border-radius:0; } .tl-table,.tl-table tbody { display:block; } .tl-table thead { display:none; } .tl-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 16px; border:1px solid var(--line); border-radius:8px; padding:15px; margin-bottom:12px; } .tl-table td { min-width:0!important; display:block; padding:0; border:0; overflow-wrap:anywhere; } .tl-table td:before { content:attr(data-label); display:block; font-size:11px; color:var(--muted); margin-bottom:7px; font-weight:400; } .tl-table td[data-label="Item"],.tl-table td[data-label="Comment"] { grid-column:1 / -1; } .tl-table td[data-label="Item"]:before { display:none; } .tl-comment { max-width:none; min-width:0; } .tl-item img { width:52px; height:42px; } .tl-market-price { flex-wrap:wrap; justify-content:flex-start; gap:3px 8px; white-space:normal; } .tl-placeholder { padding:22px 0; } }
@media(max-width:680px) { .tl-table td[data-heading]:before { content:attr(data-heading); white-space:normal; } }
@media(pointer:coarse) { .tl-navigation a,.tl-tabs button,.tl-comment-actions button { min-height:44px; } .tl-comment textarea { font-size:16px; min-height:48px; } }
