.inventory-shell { min-width: 0; }
.inventory-actions { align-items: center; }
.inventory-actions .primary { color: #00131e; border-color: var(--cyan); background: linear-gradient(135deg, #2dd1ff, #0baef0); font-weight: 850; }
.inventory-main { width: min(1560px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }

.inventory-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.inventory-intro h1 { max-width: 780px; margin-bottom: 10px; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.045em; }
.inventory-intro > div > p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.inventory-status-card { display: flex; align-items: center; gap: 12px; min-width: 270px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.inventory-status-card small { display: block; margin-top: 3px; color: var(--muted); }
.inventory-status-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.inventory-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.inventory-tabs button { min-width: 150px; min-height: 40px; flex: 1 1 0; padding: 8px 14px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.inventory-tabs button.active { color: #00131e; background: linear-gradient(135deg, #32c7fb, #138ef7); }

.rod-inventory-page { display: grid; gap: 14px; }
.rod-inventory-hero { position: relative; display: flex; min-height: 190px; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; padding: 28px; border: 1px solid var(--cyan); border-radius: 22px; background: linear-gradient(90deg, rgba(0,25,39,.96) 0%, rgba(0,37,53,.88) 48%, rgba(0,34,49,.35) 100%), url('../assets/reels/reel-fixed-spool.png') 92% 52% / min(38vw,440px) auto no-repeat, var(--surface-2); color: #f6fbff; }
.rod-inventory-hero::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 70px rgba(20,198,243,.13); content: ''; pointer-events: none; }
.rod-inventory-hero > * { position: relative; z-index: 1; }
.rod-inventory-hero h1 { margin: 4px 0 8px; font-size: clamp(28px,4vw,48px); }
.rod-inventory-hero p { max-width: 720px; margin: 0; color: #bad7e8; }
.rod-inventory-summary { display: grid; min-width: 190px; gap: 3px; padding: 14px 16px; border: 1px solid rgba(103,218,255,.55); border-radius: 14px; background: rgba(0,20,31,.74); }
.rod-inventory-summary b { color: #67daff; font-size: 24px; }
.rod-inventory-summary small { color: #c2d8e5; }
.rod-inventory-toolbar { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.rod-inventory-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.rod-inventory-actions { display: flex; gap: 8px; }
.rod-inventory-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.rod-conflict-list { display: grid; gap: 12px; }
.rod-conflict-list[hidden] { display: none; }
.rod-conflict-card { display: grid; gap: 14px; padding: 18px; border: 1px solid #f2b84b; border-radius: 16px; background: color-mix(in srgb,var(--surface) 90%,#f2b84b); box-shadow: 0 12px 30px rgba(0,12,20,.18); }
.rod-conflict-card header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.rod-conflict-card h2, .rod-conflict-card p { margin: 0; }
.rod-conflict-card header > p { max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rod-conflict-versions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rod-conflict-version { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rod-conflict-version.newest { border-color: #f2b84b; box-shadow: inset 0 0 0 1px rgba(242,184,75,.2); }
.rod-conflict-version small { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.rod-conflict-version b { font-size: 15px; }
.rod-conflict-version span { color: var(--muted); font-size: 11px; }
.rod-conflict-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rod-account-message { grid-column: 1 / -1; min-height: 150px; padding: 32px; border: 1px dashed var(--line-strong); border-radius: 18px; background: var(--surface); text-align: center; }
.rod-account-message h2 { margin: 0 0 8px; }
.rod-account-message p { max-width: 650px; margin: 0 auto; color: var(--muted); }
.account-rod-card { --rod-color: #a7b0bd; --rod-art: url('../assets/photos/fishing-riverbank-thumb.jpg'); position: relative; display: grid; min-height: 170px; align-content: space-between; gap: 14px; overflow: hidden; padding: 16px; border: 2px solid var(--rod-color); border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 92%, var(--rod-color)); box-shadow: 0 10px 24px rgba(0,13,22,.12); }
.account-rod-card::before { position: absolute; z-index: 2; inset: 0 0 auto; height: 5px; background: var(--rod-color); content: ''; }
.account-rod-card::after { position: absolute; z-index: 0; inset: 0 0 auto; height: 64px; background: linear-gradient(90deg,rgba(0,20,32,.9),rgba(0,20,32,.54)),var(--rod-art) center 54% / cover no-repeat; content: ''; }
.account-rod-card > * { position: relative; z-index: 1; }
.account-rod-card[data-rod-art="bottom"] { --rod-art: url('../assets/photos/lake-woodland-thumb.jpg'); }
.account-rod-card[data-rod-art="carp"] { --rod-art: url('../assets/photos/pond-green-banks-thumb.jpg'); }
.account-rod-card[data-rod-art="cast"] { --rod-art: url('../assets/photos/river-valley-france-thumb.jpg'); }
.account-rod-card[data-rod-art="drift"] { --rod-art: url('../assets/photos/river-dawn-thumb.jpg'); }
.account-rod-card[data-rod-art="drop-line"] { --rod-art: url('../assets/photos/coast-brittany-thumb.jpg'); }
.account-rod-card[data-rod-art="feeder"] { --rod-art: url('../assets/photos/canal-daylight-damme-thumb.jpg'); }
.account-rod-card[data-rod-art="float"] { --rod-art: url('../assets/photos/pond-green-banks-thumb.jpg'); }
.account-rod-card[data-rod-art="fly"] { --rod-art: url('../assets/photos/fishing-riverbank-thumb.jpg'); }
.account-rod-card[data-rod-art="ledgering"] { --rod-art: url('../assets/photos/lake-woodland-thumb.jpg'); }
.account-rod-card[data-rod-art="live-bait"] { --rod-art: url('../assets/photos/river-dawn-thumb.jpg'); }
.account-rod-card[data-rod-art="lures"] { --rod-art: url('../assets/photos/river-valley-france-thumb.jpg'); }
.account-rod-card[data-rod-art="pole"] { --rod-art: url('../assets/photos/canal-daylight-damme-thumb.jpg'); }
.account-rod-card[data-rod-art="surfcasting"] { --rod-art: url('../assets/photos/beach-brittany-thumb.jpg'); }
.account-rod-card[data-rod-art="toc"] { --rod-art: url('../assets/photos/river-dawn-thumb.jpg'); }
.account-rod-card[data-rod-art="trolling"] { --rod-art: url('../assets/photos/coast-brittany-thumb.jpg'); }
.account-rod-card[data-rod-art="vertical-jigging"] { --rod-art: url('../assets/photos/lake-alpine-thumb.jpg'); }
.account-rod-card[data-rod-art="waggler"] { --rod-art: url('../assets/photos/pond-green-banks-thumb.jpg'); }
.account-rod-card header { display: flex; align-items: center; gap: 9px; }
.account-rod-slot { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--rod-color); color: #07121a; font-weight: 900; }
.account-rod-card h2 { margin: 0; overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0,0,0,.8); white-space: nowrap; }
.account-rod-edit { width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan); background: rgba(0,20,32,.7); cursor: pointer; }
.account-rod-details { display: grid; gap: 7px; margin: 0; }
.account-rod-details div { display: grid; gap: 2px; }
.account-rod-details dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-rod-details dd { margin: 0; overflow: hidden; font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.rod-editor-dialog { width: min(620px,calc(100% - 24px)); padding: 0; border: 1px solid var(--cyan); border-radius: 20px; color: var(--text); background: var(--surface-2); box-shadow: 0 28px 80px rgba(0,10,18,.48); }
.rod-editor-dialog::backdrop { background: rgba(0,12,20,.72); backdrop-filter: blur(4px); }
.rod-editor-dialog form { display: grid; gap: 18px; padding: 24px; }
.rod-editor-dialog h2 { margin: 4px 0 0; }
.rod-editor-fields { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.rod-editor-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.rod-editor-fields label:nth-child(n+3) { grid-column: span 1; }
.rod-editor-fields input, .rod-editor-fields select { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface); }
.rod-color-fieldset { padding: 0; border: 0; }
.rod-color-fieldset legend { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 750; }
.rod-color-options { display: grid; grid-template-columns: repeat(10,1fr); gap: 7px; }
.rod-color-choice { position: relative; display: grid; aspect-ratio: 1; place-items: center; border: 2px solid transparent; border-radius: 50%; background: var(--choice-color); cursor: pointer; }
.rod-color-choice:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb,var(--choice-color) 42%,transparent); }
.rod-color-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rod-editor-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.rod-editor-dialog .dialog-actions button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 800; }
.rod-editor-dialog .dialog-actions .primary { color: #00131e; border-color: var(--cyan); background: var(--cyan); }
.rod-editor-dialog .dialog-actions .rod-delete-action { margin-right: auto; border-color: #ff6680; color: #ff8aa0; }
.account-rod-heading { min-width: 0; }
.account-rod-heading small { display: block; margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.82); font-size: 9px; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.85); white-space: nowrap; }
.account-rod-materials { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; }
.account-rod-material { display: grid; min-width: 0; gap: 5px; align-content: start; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb,var(--surface) 88%,transparent); }
.account-rod-material-image { display: grid; height: 42px; place-items: center; overflow: hidden; }
.account-rod-material-image img { width: 100%; height: 100%; object-fit: contain; }
.rod-material-placeholder { color: var(--muted); font-size: 22px; }
.account-rod-material dt { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.account-rod-material dd { margin: 2px 0 0; overflow: hidden; font-size: 9px; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.rod-editor-notice { margin: 0; padding: 10px 12px; border: 1px solid #f2b84b; border-radius: 10px; color: var(--text); background: color-mix(in srgb,var(--surface) 86%,#f2b84b); font-size: 11px; line-height: 1.45; }
.rod-editor-notice[hidden] { display: none; }
.rod-catalog-field { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.rod-catalog-field-wide { grid-column: 1 / -1; }
.rod-catalog-selection { display: grid; min-height: 74px; grid-template-columns: 68px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; }
.rod-catalog-selection:disabled { cursor: not-allowed; opacity: .6; }
.rod-catalog-selection img { width: 68px; height: 54px; object-fit: contain; }
.rod-catalog-selection-placeholder { display: grid; width: 68px; height: 54px; place-items: center; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 22px; }
.rod-catalog-selection span { min-width: 0; }
.rod-catalog-selection b, .rod-catalog-selection small { display: block; overflow: hidden; text-overflow: ellipsis; }
.rod-catalog-selection b { color: var(--text); font-size: 12px; white-space: nowrap; }
.rod-catalog-selection small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.rod-catalog-selection i, .rod-catalog-item i { color: var(--cyan); font-size: 24px; font-style: normal; }
.rod-catalog-clear { justify-self: end; padding: 3px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 750; }
.rod-catalog-clear:hover, .rod-catalog-clear:focus-visible { color: var(--text); }
.rod-catalog-clear[hidden] { display: none; }
.rod-catalog-dialog { width: min(760px,calc(100% - 24px)); max-height: min(780px,calc(100vh - 32px)); padding: 18px; border: 1px solid var(--cyan); border-radius: 20px; color: var(--text); background: var(--surface-2); box-shadow: 0 28px 80px rgba(0,10,18,.55); }
.rod-catalog-dialog::backdrop { background: rgba(0,12,20,.78); backdrop-filter: blur(4px); }
.rod-catalog-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rod-catalog-dialog h2 { margin: 3px 0 0; }
.rod-catalog-dialog > header button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface); cursor: pointer; font-size: 24px; }
.rod-catalog-search { display: flex; min-height: 44px; align-items: center; gap: 9px; margin: 16px 0 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); }
.rod-catalog-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.rod-catalog-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 10px; margin: 0 0 12px; }
.rod-catalog-filters label { display: grid; gap: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.rod-catalog-filters select,.rod-catalog-filters button { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface); }
.rod-catalog-filters select { min-width: 0; padding: 0 9px; }
.rod-catalog-filters button { padding: 0 14px; color: var(--cyan); cursor: pointer; font-weight: 800; }
.rod-catalog-grid { display: grid; max-height: min(590px,calc(100vh - 210px)); gap: 8px; overflow-y: auto; }
@media (max-width:680px) { .rod-catalog-filters { grid-template-columns: 1fr; } }
.rod-catalog-item { display: grid; min-height: 94px; grid-template-columns: 128px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; }
.rod-catalog-item:hover, .rod-catalog-item:focus-visible { border-color: var(--cyan); outline: none; }
.rod-catalog-item img { width: 128px; height: 74px; object-fit: contain; }
.rod-catalog-item b, .rod-catalog-item small { display: block; }
.rod-catalog-item small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.rod-catalog-empty { padding: 36px 14px; color: var(--muted); text-align: center; }

.inventory-layout { display: grid; grid-template-columns: minmax(225px, 270px) minmax(560px, 1fr) minmax(245px, 300px); gap: 14px; align-items: start; }
.inventory-panel { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(165deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.library-column, .properties-column { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding: 18px; }
.kit-workbench { padding: 18px; }
.panel-title-row, .workbench-toolbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-title-row h1, .panel-title-row h2, .workbench-toolbar h2 { margin: 0; font-size: 19px; }
.small-action, .toolbar-actions button, .toolbar-link { min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-3); text-decoration: none; cursor: pointer; font-size: 11px; font-weight: 750; }
.small-action:hover, .toolbar-actions button:hover, .toolbar-link:hover { border-color: var(--cyan); }

.library-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 18px 0 12px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.library-switch button, .library-filter button { min-height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.library-switch button.active, .library-filter button.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.library-filter { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; }
.library-filter button { min-width: max-content; padding: 5px 8px; }
.library-list { display: grid; gap: 8px; }

.kit-card, .equipment-source { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; min-height: 82px; padding: 10px; border: 1px solid rgba(107, 196, 228, 0.2); border-radius: 13px; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); text-align: left; cursor: pointer; }
.kit-card:hover, .equipment-source:hover { border-color: var(--cyan); }
.kit-card.active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(25, 186, 242, 0.16), inset 3px 0 0 var(--cyan); }
.kit-card.empty { min-height: 68px; border-style: dashed; color: var(--muted); }
.kit-card b, .equipment-source b { display: block; margin-bottom: 4px; font-size: 13px; }
.kit-card small, .equipment-source small { display: block; color: var(--muted); font-size: 10px; line-height: 1.35; }
.kit-index { color: var(--cyan); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.kit-health { align-self: start; color: var(--green); font-size: 11px; font-weight: 850; }
.equipment-source[draggable="true"] { cursor: grab; }
.equipment-source.dragging { opacity: 0.45; }

.equipment-visual { display: grid; width: 64px; height: 58px; place-items: center; overflow: hidden; border: 1px solid rgba(25, 186, 242, 0.16); border-radius: 10px; color: var(--cyan-soft); background: radial-gradient(circle at 50% 50%, rgba(25, 186, 242, 0.14), transparent 72%); }
.equipment-visual svg { width: 88%; height: 88%; overflow: visible; }
.equipment-visual .accent { stroke: var(--cyan); fill: rgba(25, 186, 242, 0.16); }
.equipment-visual .metal { stroke: currentColor; fill: color-mix(in srgb, currentColor 14%, transparent); }
.equipment-visual.reel { position: relative; color: var(--reel-color, var(--cyan-soft)); background: transparent; }
.equipment-visual.reel .reel-product-render { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; filter: hue-rotate(var(--reel-hue-shift,0deg)) saturate(1.08); transform: scale(var(--reel-image-scale, .86)); transform-origin: center; }
.equipment-visual.reel-spincast .reel-product-render { transform: scaleX(-1) scaleY(-1) scale(var(--reel-image-scale, .86)); }
.equipment-visual.reel .reel-illustration { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 3px color-mix(in srgb,var(--reel-color) 28%,transparent)); }
.equipment-visual.reel .reel-machine > * { vector-effect: non-scaling-stroke; }
.equipment-visual.reel .reel-shadow { display: none; }
.equipment-visual.reel .reel-body,
.equipment-visual.reel .reel-foot,
  .equipment-visual.reel .reel-cover { fill: color-mix(in srgb, var(--reel-color) 4%, transparent); stroke: var(--reel-color); stroke-width: 2.55; stroke-linejoin: round; }
.equipment-visual.reel .reel-body-highlight { fill: none; stroke: color-mix(in srgb, var(--reel-color) 82%, var(--text)); stroke-width: 1.35; stroke-linecap: round; }
.equipment-visual.reel .reel-foot-highlight,
.equipment-visual.reel .reel-accent-line { fill: none; stroke: color-mix(in srgb, var(--reel-color) 82%, var(--text)); stroke-width: 1.6; stroke-linecap: round; }
.equipment-visual.reel .reel-rotor,
.equipment-visual.reel .reel-bail { fill: none; stroke: var(--reel-color); stroke-width: 2.8; stroke-linecap: round; }
.equipment-visual.reel .reel-bail { stroke-width: 1.45; }
.equipment-visual.reel .reel-spool-core { fill: color-mix(in srgb, var(--reel-color) 3%, transparent); stroke: var(--reel-color); stroke-width: 2.3; }
.equipment-visual.reel .reel-spool-rim,
.equipment-visual.reel .reel-spool-back,
  .equipment-visual.reel .reel-drag { fill: color-mix(in srgb, var(--reel-color) 7%, transparent); stroke: color-mix(in srgb, var(--reel-color) 84%, var(--text)); stroke-width: 1.8; }
.equipment-visual.reel .reel-line,
.equipment-visual.reel .reel-stem,
.equipment-visual.reel .reel-handle { fill: none; stroke: color-mix(in srgb, var(--reel-color) 84%, var(--text)); stroke-width: 2; stroke-linecap: round; }
.equipment-visual.reel .reel-line-detail { opacity: .48; stroke-width: 1; }
.equipment-visual.reel .reel-gear { fill: color-mix(in srgb, var(--reel-color) 4%, transparent); stroke: var(--reel-color); stroke-width: 2.3; }
.equipment-visual.reel .reel-gear-detail,
  .equipment-visual.reel .reel-control { fill: color-mix(in srgb, var(--reel-color) 5%, transparent); stroke: color-mix(in srgb, var(--reel-color) 84%, var(--text)); stroke-width: 1.6; }
.equipment-visual.reel .reel-knob { fill: color-mix(in srgb, var(--reel-color) 4%, transparent); stroke: var(--reel-color); stroke-width: 1.9; }
.reel-class-badge { position: absolute; right: 5px; bottom: 4px; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--reel-color, var(--cyan)) 78%, var(--text)); border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--surface) 82%, transparent); font-size: 8px; font-weight: 900; line-height: 1; }
.equipment-visual.rig img { width: 74px; height: 70px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.42)); }
.equipment-visual.user-photo { border-color: rgba(25, 186, 242, 0.38); background: var(--surface); }
.equipment-visual.user-photo img { width: 100%; height: 100%; object-fit: cover; }

.workbench-toolbar { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.workbench-toolbar .eyebrow { margin-bottom: 4px; }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.drop-help { margin: 10px 0; color: var(--muted); font-size: 11px; }
.kit-slots { position: relative; display: grid; gap: 10px; padding-left: 32px; }
.kit-slots::before { position: absolute; top: 34px; bottom: 34px; left: 14px; width: 2px; background: linear-gradient(var(--cyan), var(--green), var(--cyan)); content: ""; opacity: 0.8; }

.kit-slot { position: relative; display: grid; grid-template-columns: 118px 1fr minmax(140px, 0.42fr); min-height: 116px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
.kit-slot::before { position: absolute; top: 50%; left: -26px; width: 12px; height: 12px; border: 3px solid var(--cyan); border-radius: 50%; background: var(--surface); content: ""; transform: translateY(-50%); }
.kit-slot.drop-compatible { border-color: var(--green); box-shadow: 0 0 22px rgba(88,209,95,.28); transform: translateX(3px); }
.kit-slot.drop-warning { border-color: var(--yellow); box-shadow: 0 0 22px rgba(255,203,57,.25); }
.kit-slot.drop-invalid { border-color: var(--red); box-shadow: 0 0 22px rgba(255,91,104,.25); }
.slot-visual { display: grid; place-items: center; border-right: 1px solid var(--line); background: linear-gradient(135deg, rgba(25, 186, 242, 0.1), transparent); }
.slot-visual .equipment-visual { width: 104px; height: 88px; border: 0; background: transparent; }
.slot-content { align-self: center; padding: 14px; min-width: 0; }
.slot-type { display: block; margin-bottom: 4px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.slot-content h3 { margin: 0 0 5px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.slot-content p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.slot-meta { display: grid; align-content: center; gap: 9px; padding: 12px; border-left: 1px solid var(--line); }
.health-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.health-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; flex: 1; }
.health-bar i { height: 12px; border-radius: 2px; background: var(--surface-3); }
.health-bar i.on { background: linear-gradient(90deg, #69e344, #22cd59); }
.slot-actions { display: flex; gap: 7px; }
.slot-actions button { flex: 1; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan-soft); background: var(--surface-2); cursor: pointer; font-size: 10px; font-weight: 800; }
.slot-actions button.danger { color: #ffabb2; border-color: rgba(255,91,104,.55); }
.empty-slot { grid-template-columns: 1fr; place-items: center; min-height: 105px; border-style: dashed; color: var(--muted); text-align: center; }
.empty-slot::after { content: "Déposer ici ou choisir dans Mon matériel"; font-size: 11px; }
.empty-slot strong { color: var(--text); }

.kit-analysis, .recommendations { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.analysis-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analysis-heading h3 { margin: 0; font-size: 16px; }
.analysis-status { padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.analysis-status.compatible { color: #91f79a; background: rgba(88,209,95,.14); }
.analysis-status.warning { color: #ffe083; background: rgba(255,203,57,.14); }
.analysis-status.incompatible { color: #ffadb4; background: rgba(255,91,104,.14); }
.analysis-status.unknown { color: var(--muted); background: var(--surface-2); }
.analysis-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.analysis-check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding: 7px; border-radius: 9px; background: var(--surface-2); }
.analysis-check b, .analysis-check small { display: block; }
.analysis-check b { font-size: 11px; }
.analysis-check small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.analysis-check .compatible { color: var(--green); }
.analysis-check .warning { color: var(--yellow); }
.analysis-check .incompatible { color: var(--red); }
.analysis-check .unknown { color: var(--muted); }
.recommendations { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.recommendation { padding: 9px; border-left: 1px solid var(--line); }
.recommendation:first-child { border-left: 0; }
.recommendation b { display: block; margin-bottom: 4px; color: var(--cyan-soft); font-size: 11px; }
.recommendation small { color: var(--muted); font-size: 9px; line-height: 1.4; }

.selection-kind { padding: 5px 8px; border: 1px solid rgba(88,209,95,.5); border-radius: 999px; color: #8cef96; background: rgba(88,209,95,.1); font-size: 9px; font-weight: 800; }
.properties-content { display: grid; gap: 12px; margin-top: 12px; }
.properties-hero { min-height: 130px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(25,186,242,.12), transparent); }
.properties-hero .equipment-visual { width: 100%; height: 110px; border: 0; background: transparent; }
.properties-content h3 { margin: 0; font-size: 19px; }
.property-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.property-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan-soft); font-size: 9px; }
.photo-controls { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.photo-controls button { min-height: 36px; padding: 7px 10px; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan-soft); background: rgba(25,186,242,.08); cursor: pointer; font-size: 10px; font-weight: 800; }
.photo-controls button.danger { color: #ffabb2; border-color: rgba(255,91,104,.55); background: rgba(255,91,104,.06); }
.photo-controls small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.4; }
.property-list { display: grid; gap: 4px; margin: 0; }
.property-list div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; align-items: center; }
.property-list dt { color: var(--muted); font-size: 10px; }
.property-list dd { margin: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: 10px; font-weight: 700; }
.official-source { display: block; margin-top: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan-soft); background: rgba(25,186,242,.08); text-align: center; font-size: 10px; font-weight: 800; text-decoration: none; }
.official-source:hover { border-color: var(--cyan); }
.property-health { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.property-health > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 10px; }
.property-action { min-height: 39px; border: 1px solid var(--cyan); border-radius: 10px; color: #00131e; background: linear-gradient(135deg, #2dd1ff, #0baef0); cursor: pointer; font-weight: 850; }
.properties-empty { display: grid; min-height: 260px; place-items: center; padding: 24px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }

.section-heading { margin: 0 0 16px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(165deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.section-heading h1 { margin-bottom: 8px; font-size: 34px; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.section-heading input { width: min(420px,100%); min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-2); }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.catalog-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.catalog-card .equipment-visual { width: 100%; height: 120px; }
.catalog-card h2 { margin: 0; font-size: 16px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.catalog-compatibility { display: flex; min-height: 22px; flex-wrap: wrap; gap: 5px; align-content: start; }
.compatibility-tag { padding: 3px 6px; border: 1px solid rgba(25,186,242,.34); border-radius: 999px; color: var(--cyan-soft); background: rgba(25,186,242,.09); font-size: 8px; font-weight: 800; }
.compatibility-tag.ideal { color: var(--green); border-color: rgba(88,209,95,.4); background: rgba(88,209,95,.08); }
.catalog-card button { min-height: 36px; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan-soft); background: rgba(25,186,242,.1); cursor: pointer; font-weight: 800; }

body[data-inventory-view="catalog"] .inventory-main { width: min(1880px, calc(100% - 28px)); padding-top: 14px; }
body[data-inventory-view="catalog"] .inventory-intro { display: none; }
body[data-inventory-view="catalog"] .inventory-tabs { margin-bottom: 9px; padding: 5px; }
body[data-inventory-view="catalog"] .inventory-tabs button { min-height: 34px; }
.reel-catalog-page { display: grid; gap: 10px; }
.reel-catalog-header, .reel-family-browser, .reel-class-browser, .catalog-filter-panel, .catalog-results, .catalog-detail-panel { border: 1px solid var(--line); background: linear-gradient(165deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.reel-catalog-header { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(300px,.55fr) auto; gap: 18px; align-items: center; padding: 12px 16px; border-radius: 16px; }
.reel-catalog-header h1 { margin: 0 0 3px; font-size: 26px; letter-spacing: -.02em; }
.reel-catalog-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.reel-catalog-header .eyebrow { margin-bottom: 4px; color: var(--cyan); }
.catalog-search-field { display: grid; grid-template-columns: 24px 1fr; align-items: center; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
.catalog-search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(25,186,242,.12); }
.catalog-search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.catalog-kit-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan-soft); background: var(--surface); font-size: 12px; font-weight: 800; white-space: nowrap; }
.catalog-kit-toggle input, .catalog-check-row input { accent-color: var(--cyan); }

.reel-family-browser, .reel-class-browser { padding: 10px 12px 12px; border-radius: 16px; }
.reel-family-browser { margin-bottom: 10px; }
.catalog-section-title { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; }
.catalog-section-title h2 { margin: 0; font-size: 16px; }
.catalog-section-title small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.reel-family-strip { display: grid; grid-template-columns: repeat(6,minmax(190px,1fr)); gap: 8px; overflow-x: auto; }
.reel-family-card { position: relative; display: grid; grid-template-columns: 66px 1fr; grid-template-rows: auto 1fr auto; gap: 5px 9px; min-width: 190px; min-height: 130px; padding: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--family-color) 58%, var(--line)); border-radius: 11px; color: var(--text); background: linear-gradient(150deg,color-mix(in srgb,var(--family-color) 11%,var(--surface)),var(--surface)); text-align: left; cursor: pointer; }
.reel-family-card:hover, .reel-family-card.active { border-color: var(--family-color); box-shadow: inset 0 0 0 1px var(--family-color), 0 0 18px color-mix(in srgb,var(--family-color) 20%,transparent); }
.reel-family-card .equipment-visual { grid-column: 1; grid-row: 2; align-self: center; width: 66px; height: 62px; border: 0; background: transparent; }
.reel-family-card .reel-class-badge { display: none; }
.reel-family-index { display: grid; grid-column: 1; grid-row: 1; width: 25px; height: 25px; place-items: center; border-radius: 8px 8px 12px 8px; color: #00131e; background: var(--family-color); font-size: 13px; font-weight: 950; }
.reel-family-range { position: absolute; top: 10px; right: 10px; padding: 3px 7px; border: 1px solid var(--family-color); border-radius: 999px; color: var(--family-color); font-size: 9px; font-weight: 900; }
.reel-family-copy { display: grid; grid-column: 2; grid-row: 2; align-content: center; gap: 4px; padding-top: 12px; }
.reel-family-copy b { padding-right: 2px; font-size: 13px; line-height: 1.25; }
.reel-family-copy small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.reel-family-card em { grid-column: 1 / -1; grid-row: 3; color: var(--muted); font-size: 9px; font-style: normal; }
.reel-type-strip { display: grid; grid-template-columns: repeat(4,minmax(170px,1fr)); gap: 8px; overflow-x: auto; }
.reel-type-card { display: grid; grid-template-columns: 80px 1fr; min-width: 170px; min-height: 92px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb,var(--type-color) 55%,var(--line)); border-radius: 11px; color: var(--text); background: linear-gradient(155deg,color-mix(in srgb,var(--type-color) 9%,var(--surface)),var(--surface)); text-align: left; cursor: pointer; }
.reel-type-card:hover, .reel-type-card.active { border-color: var(--type-color); box-shadow: inset 0 0 0 1px var(--type-color); }
.reel-type-card .equipment-visual { width: 80px; height: 66px; overflow: visible; border: 0; background: transparent; }
.reel-type-card > span:last-child { display: grid; gap: 5px; }
.reel-type-card b { font-size: 14px; }
.reel-type-card small { color: var(--muted); font-size: 10px; }
.reel-type-all-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid var(--type-color); border-radius: 50%; color: var(--type-color); font-size: 28px; font-weight: 900; }
.reel-class-strip { display: grid; grid-template-columns: repeat(var(--class-count,10),minmax(112px,1fr)); gap: 7px; overflow-x: auto; }
.reel-class-card { display: grid; min-width: 112px; min-height: 158px; place-items: center; gap: 2px; padding: 9px 7px 10px; border: 1px solid color-mix(in srgb, var(--class-color) 55%, var(--line)); border-radius: 10px; color: var(--text); background: linear-gradient(155deg, color-mix(in srgb, var(--class-color) 11%, var(--surface)), color-mix(in srgb, var(--class-color) 4%, var(--surface))); cursor: pointer; }
.reel-class-card:hover, .reel-class-card.active { border-color: var(--class-color); box-shadow: inset 0 0 0 1px var(--class-color), 0 0 18px color-mix(in srgb, var(--class-color) 20%, transparent); }
.reel-class-card .equipment-visual { width: 144px; max-width: 100%; height: 96px; overflow: visible; border: 0; background: transparent; }
.reel-class-card .reel-product-render { transform: scale(1); }
.reel-class-card .reel-class-badge { display: none; }
.reel-class-card b { color: var(--class-color); font-size: 14px; }
.reel-class-card span { font-size: 11px; font-weight: 800; }
.reel-class-card small { color: var(--muted); font-size: 10px; }

.reel-catalog-layout { display: grid; grid-template-columns: minmax(190px,245px) minmax(620px,1fr) minmax(250px,295px); gap: 10px; align-items: start; }
.catalog-filter-panel, .catalog-results, .catalog-detail-panel { border-radius: 16px; }
.catalog-filter-panel { position: static; max-height: none; padding: 14px; overflow: visible; }
.catalog-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.catalog-filter-heading h2 { margin: 0; font-size: 18px; }
.catalog-filter-heading button { border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-size: 11px; }
.catalog-filter-panel fieldset { display: grid; gap: 6px; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); }
.catalog-filter-panel legend, .catalog-select-label { padding: 0; color: var(--text); font-size: 13px; font-weight: 850; }
.catalog-filter-list { display: grid; gap: 5px; margin-top: 8px; }
.catalog-check-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: center; min-height: 27px; color: var(--text); font-size: 12px; }
.catalog-check-row b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; color: var(--cyan-soft); background: var(--surface-3); font-size: 10px; }
.catalog-select-label { display: block; margin: 12px 0 7px; }
.catalog-filter-panel select, .catalog-results-toolbar select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); font-size: 12px; }
.catalog-filter-panel > .catalog-check-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.catalog-results { min-width: 0; padding: 10px; }
.catalog-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.catalog-results-toolbar h2 { margin: 0; font-size: 18px; }
.catalog-results-toolbar label { display: grid; grid-template-columns: auto 130px; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.catalog-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.catalog-card { position: relative; display: grid; grid-template-rows: auto auto auto auto; align-content: start; min-width: 0; min-height: 302px; gap: 6px; padding: 10px; overflow: hidden; border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); border-radius: 11px; background: linear-gradient(165deg, color-mix(in srgb, var(--card-accent) 3%, var(--surface)), var(--surface)); box-shadow: none; }
.catalog-card:hover, .catalog-card.selected { border-color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(25,186,242,.15), 0 0 18px rgba(25,186,242,.09); }
.catalog-card-media { position: relative; display: grid; height: 128px; min-height: 128px; place-items: center; }
.catalog-card-media .equipment-visual { box-sizing: border-box; width: 100%; height: 128px; padding: 8px 24px; place-items: center; overflow: visible; border: 0; background: transparent; }
.catalog-card-media .reel-product-render { object-position: center; }
.catalog-card-media .reel-class-badge { display: none; }
.catalog-card-media > .reel-class-pill { position: absolute; top: 1px; bottom: auto; left: 1px; z-index: 2; min-width: 43px; min-height: 21px; }
.catalog-card-actions { position: absolute; top: 0; right: 0; z-index: 3; display: grid; gap: 5px; }
.catalog-card .catalog-icon-action { display: grid; width: 29px; min-height: 29px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--cyan-soft); background: color-mix(in srgb, var(--surface-2) 90%, transparent); font-size: 18px; line-height: 1; }
.catalog-card .catalog-icon-action:hover, .catalog-card .catalog-icon-action.active { color: var(--card-accent); border-color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 10%, var(--surface-2)); }
.catalog-icon-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.catalog-icon-action.active svg { fill: color-mix(in srgb, var(--card-accent) 35%, transparent); }
.catalog-card-copy { display: grid; min-width: 0; gap: 2px; }
.catalog-card-brand { color: var(--cyan); font-size: 11px; font-weight: 900; line-height: 1.2; }
.reel-class-pill { display: inline-grid; min-width: 46px; min-height: 23px; place-items: center; padding: 2px 7px; border: 1px solid var(--class-color, var(--cyan)); border-radius: 999px; color: var(--class-color, var(--cyan)); background: color-mix(in srgb, var(--class-color, var(--cyan)) 9%, transparent); font-size: 10px; font-weight: 900; }
.catalog-card h2 { margin: 0; overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card p { min-height: 0; margin: 0; color: var(--text); font-size: 11px; line-height: 1.42; }
.catalog-card-capacity { display: -webkit-box; min-height: 31px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-card-capacity span { color: var(--muted); }
.catalog-card .catalog-compatibility { display: flex; min-height: 24px; align-items: center; gap: 4px; margin-top: 3px; overflow: hidden; }
.catalog-card .compatibility-tag { flex: none; padding: 3px 7px; font-size: 9px; }
.catalog-card-footer { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 7px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 10px; }
.catalog-card-status { flex: none; white-space: nowrap; }
.catalog-card-status.compatible { color: var(--green); }
.catalog-card .catalog-detail-button { width: auto; min-height: 32px; margin-left: auto; padding: 5px 11px; border-color: var(--cyan); border-radius: 8px; font-size: 10px; white-space: nowrap; }
.catalog-empty { grid-column: 1 / -1; min-height: 240px; display: grid; place-items: center; color: var(--muted); }
.catalog-progress { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 8px; color: var(--muted); font-size: 11px; }
.catalog-progress[hidden] { display: none; }
.catalog-progress button { min-height: 36px; padding: 7px 16px; border: 1px solid var(--cyan); border-radius: 9px; color: var(--cyan-soft); background: color-mix(in srgb,var(--cyan) 8%,var(--surface)); cursor: pointer; font-size: 11px; font-weight: 850; }
.catalog-progress button:hover, .catalog-progress button:focus-visible { color: #00131e; background: var(--cyan); outline: none; }

.catalog-detail-panel { position: static; max-height: none; padding: 13px; overflow: visible; }
.catalog-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-detail-heading h2 { margin: 0; font-size: 18px; }
.catalog-detail-visual { min-height: 162px; margin: 10px 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.catalog-detail-visual .equipment-visual { width: 100%; height: 160px; border: 0; background: transparent; }
.catalog-detail-panel h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; }
.catalog-detail-panel h4 { margin: 15px 0 8px; font-size: 13px; }
.catalog-detail-panel .property-tags span, .catalog-detail-panel .compatibility-tag { font-size: 10px; }
.catalog-detail-panel .official-source { font-size: 12px; }
.catalog-kit-status { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 850; }
.catalog-kit-status.compatible { color: var(--green); border-color: rgba(88,209,95,.42); background: rgba(88,209,95,.08); }
.catalog-kit-status.warning { color: var(--yellow); border-color: rgba(255,203,57,.42); background: rgba(255,203,57,.08); }
.catalog-kit-status.unknown { color: var(--muted); }
.catalog-detail-list { display: grid; gap: 0; margin: 0; }
.catalog-detail-list div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.catalog-detail-list dt { color: var(--muted); font-size: 11px; line-height: 1.35; }
.catalog-detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; line-height: 1.35; text-align: right; }
.catalog-primary-action { width: 100%; min-height: 40px; margin-top: 9px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 850; }
.catalog-primary-action { border: 1px solid var(--cyan); color: #00131e; background: linear-gradient(135deg, #2dd1ff, #0baef0); }

.maintenance-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.8fr); gap: 12px; }
.maintenance-equipment, .maintenance-history { padding: 16px; }
.maintenance-card { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.maintenance-card:last-child { border-bottom: 0; }
.maintenance-card h3 { margin: 0 0 4px; font-size: 14px; }
.maintenance-card p { margin: 0; color: var(--muted); font-size: 10px; }
.maintenance-card button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--cyan); border-radius: 8px; color: var(--cyan-soft); background: transparent; cursor: pointer; }
.history-event { padding: 11px 0; border-bottom: 1px solid var(--line); }
.history-event b, .history-event small { display: block; }
.history-event small { margin-top: 4px; color: var(--muted); line-height: 1.4; }

.replace-dialog { width: min(430px,calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 17px; color: var(--text); background: var(--surface); box-shadow: 0 25px 90px rgba(0,0,0,.55); }
.replace-dialog::backdrop { background: rgba(0,8,14,.72); backdrop-filter: blur(5px); }
.replace-dialog form { padding: 24px; }
.replace-dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions button { min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; }
.dialog-actions .danger { color: #ffb2b8; border-color: rgba(255,91,104,.55); }
.inventory-toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 380px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-3); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .18s ease; }
.inventory-toast.visible { opacity: 1; transform: translateY(0); }
.inventory-toast.error { border-color: var(--red); }

/* Catalogue sharpness pass: keep text and product cutouts on the pixel grid. */
body[data-inventory-view="catalog"] { font-synthesis: none; }
body[data-inventory-view="catalog"] .topbar { background: var(--surface); backdrop-filter: none; }
body[data-inventory-view="catalog"] .reel-catalog-header,
body[data-inventory-view="catalog"] .reel-family-browser,
body[data-inventory-view="catalog"] .reel-class-browser,
body[data-inventory-view="catalog"] .catalog-filter-panel,
body[data-inventory-view="catalog"] .catalog-results,
body[data-inventory-view="catalog"] .catalog-detail-panel {
  border-color: color-mix(in srgb, var(--line-strong) 52%, transparent);
  box-shadow: none;
}
body[data-inventory-view="catalog"] .reel-product-render { transform: none; }
body[data-inventory-view="catalog"] .reel-spincast .reel-product-render { transform: scaleX(-1) scaleY(-1); }
body[data-inventory-view="catalog"] .catalog-section-title h2 { font-size: 17px; }
body[data-inventory-view="catalog"] .catalog-section-title small { font-size: 12px; line-height: 1.35; }
body[data-inventory-view="catalog"] .reel-family-index { font-weight: 900; }
body[data-inventory-view="catalog"] .reel-family-range { font-size: 10px; font-weight: 800; }
body[data-inventory-view="catalog"] .reel-family-copy b { font-size: 14px; font-weight: 700; }
body[data-inventory-view="catalog"] .reel-family-copy small,
body[data-inventory-view="catalog"] .reel-family-card em { font-size: 11px; line-height: 1.35; }
body[data-inventory-view="catalog"] .reel-class-card span { font-size: 12px; font-weight: 800; }
body[data-inventory-view="catalog"] .reel-class-card small { font-size: 11px; }
body[data-inventory-view="catalog"] .catalog-filter-heading button,
body[data-inventory-view="catalog"] .catalog-results-toolbar label { font-size: 12px; }
body[data-inventory-view="catalog"] .catalog-filter-panel legend,
body[data-inventory-view="catalog"] .catalog-select-label { font-weight: 800; }
body[data-inventory-view="catalog"] .catalog-grid { grid-template-columns: repeat(auto-fill,240px); grid-auto-rows: 420px; justify-content: start; align-items: start; gap: 12px; }
body[data-inventory-view="catalog"] .catalog-card { display: flex; width: 240px; height: 420px; min-height: 420px; flex-direction: column; gap: 8px; justify-self: start; align-self: start; padding: 12px; border-color: color-mix(in srgb, var(--cyan) 72%, var(--line)); border-radius: 14px; background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--card-accent) 10%, transparent), transparent 48%), linear-gradient(165deg, color-mix(in srgb, var(--card-accent) 4%, var(--surface)), var(--surface)); }
body[data-inventory-view="catalog"] .catalog-card-media { width: 100%; height: 190px; min-height: 190px; }
body[data-inventory-view="catalog"] .catalog-card-media .equipment-visual { width: 100%; height: 190px; padding: 4px 10px; }
body[data-inventory-view="catalog"] .catalog-card-media .reel-product-render { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; transform-origin: 50% 50%; }
body[data-inventory-view="catalog"] .catalog-card-media .equipment-visual.reel .reel-product-render { transform: scale(1.06); }
body[data-inventory-view="catalog"] .catalog-card-media .equipment-visual.reel-casting .reel-product-render { transform: scale(1.04); }
body[data-inventory-view="catalog"] .catalog-card-media .equipment-visual.reel-spincast .reel-product-render { transform: scaleX(-1) scaleY(-1) scale(.94); }
body[data-inventory-view="catalog"] .catalog-card-media > .reel-class-pill { top: 2px; left: 2px; min-width: 58px; min-height: 28px; padding-inline: 10px; }
body[data-inventory-view="catalog"] .catalog-card-actions { top: 2px; right: 2px; gap: 7px; }
body[data-inventory-view="catalog"] .catalog-card .catalog-icon-action { width: 34px; min-height: 34px; border-radius: 9px; }
body[data-inventory-view="catalog"] .catalog-card-copy { gap: 3px; }
body[data-inventory-view="catalog"] .catalog-card:hover,
body[data-inventory-view="catalog"] .catalog-card.selected { box-shadow: inset 0 0 0 1px rgba(25,186,242,.32); }
body[data-inventory-view="catalog"] .catalog-card-brand { font-size: 13px; font-weight: 850; }
body[data-inventory-view="catalog"] .reel-class-pill { font-size: 12px; font-weight: 850; }
body[data-inventory-view="catalog"] .catalog-card h2 { font-size: 17px; font-weight: 750; }
body[data-inventory-view="catalog"] .catalog-card p { font-size: 13px; line-height: 1.35; }
body[data-inventory-view="catalog"] .catalog-card .catalog-compatibility { min-height: 28px; margin-top: 5px; }
body[data-inventory-view="catalog"] .catalog-card .compatibility-tag { padding: 4px 8px; font-size: 10px; font-weight: 800; }
body[data-inventory-view="catalog"] .catalog-card-footer,
body[data-inventory-view="catalog"] .catalog-card .catalog-detail-button { font-size: 12px; }
body[data-inventory-view="catalog"] .catalog-card-footer { display: flex; min-height: 43px; justify-content: flex-end; margin-top: auto; padding-top: 8px; }
body[data-inventory-view="catalog"] .catalog-card .catalog-detail-button { min-height: 38px; margin-left: 0; padding: 6px 12px; }
body[data-inventory-view="catalog"] .catalog-card .catalog-detail-button::after { content: '›'; margin-left: 8px; font-size: 22px; font-weight: 500; line-height: .7; vertical-align: -2px; }
body[data-inventory-view="catalog"] .catalog-detail-list dt,
body[data-inventory-view="catalog"] .catalog-detail-list dd { font-size: 12px; line-height: 1.35; }
body[data-inventory-view="catalog"] .catalog-detail-list dd { font-weight: 700; }
body[data-inventory-view="catalog"] .catalog-kit-status,
body[data-inventory-view="catalog"] .catalog-primary-action { font-weight: 800; }

/* Inventory visual contract: the catalogue is the reference for every tab. */
body[data-inventory-view="kits"] .inventory-main,
body[data-inventory-view="rods"] .inventory-main,
body[data-inventory-view="maintenance"] .inventory-main { width: min(1880px, calc(100% - 28px)); padding-top: 14px; }
body[data-inventory-view="kits"] .inventory-intro,
body[data-inventory-view="rods"] .inventory-intro,
body[data-inventory-view="maintenance"] .inventory-intro { display: none; }
body[data-inventory-view="kits"] .topbar,
body[data-inventory-view="rods"] .topbar,
body[data-inventory-view="maintenance"] .topbar { background: var(--surface); backdrop-filter: none; }
body[data-inventory-view="kits"] .inventory-tabs,
body[data-inventory-view="rods"] .inventory-tabs,
body[data-inventory-view="maintenance"] .inventory-tabs { margin-bottom: 9px; padding: 5px; }
body[data-inventory-view="kits"] .inventory-tabs button,
body[data-inventory-view="rods"] .inventory-tabs button,
body[data-inventory-view="maintenance"] .inventory-tabs button { min-height: 34px; }

body[data-inventory-view="kits"] .inventory-layout { grid-template-columns: minmax(220px,270px) minmax(620px,1fr) minmax(250px,295px); gap: 10px; }
body[data-inventory-view="kits"] .inventory-panel,
body[data-inventory-view="maintenance"] .inventory-panel,
body[data-inventory-view="rods"] .rod-inventory-toolbar,
body[data-inventory-view="rods"] .rod-account-message,
body[data-inventory-view="rods"] .account-rod-card {
  border-color: color-mix(in srgb, var(--line-strong) 52%, transparent);
  border-radius: 16px;
  box-shadow: none;
}
body[data-inventory-view="kits"] .library-column,
body[data-inventory-view="kits"] .properties-column,
body[data-inventory-view="kits"] .kit-workbench { padding: 14px; }
body[data-inventory-view="kits"] .library-switch { margin-top: 14px; }

body[data-inventory-view="rods"] .rod-inventory-page { gap: 10px; }
body[data-inventory-view="rods"] .rod-inventory-hero {
  display: grid;
  grid-template-columns: minmax(300px,1fr) auto;
  min-height: 0;
  align-items: center;
  padding: 12px 16px;
  border-color: color-mix(in srgb, var(--line-strong) 52%, transparent);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  color: var(--text);
  box-shadow: none;
}
body[data-inventory-view="rods"] .rod-inventory-hero::after { display: none; }
body[data-inventory-view="rods"] .rod-inventory-hero h1 { margin: 0 0 3px; font-size: 26px; letter-spacing: -.02em; }
body[data-inventory-view="rods"] .rod-inventory-hero p { color: var(--muted); font-size: 13px; line-height: 1.45; }
body[data-inventory-view="rods"] .rod-inventory-hero .eyebrow { margin-bottom: 4px; color: var(--cyan); }
body[data-inventory-view="rods"] .rod-inventory-summary {
  min-width: 220px;
  padding: 10px 13px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
}
body[data-inventory-view="rods"] .rod-inventory-summary b { color: var(--cyan); font-size: 18px; }
body[data-inventory-view="rods"] .rod-inventory-summary small { color: var(--muted); }
body[data-inventory-view="rods"] .rod-inventory-toolbar { min-height: 48px; padding: 7px 10px; }
body[data-inventory-view="rods"] .rod-inventory-grid { gap: 12px; }
body[data-inventory-view="rods"] .account-rod-card { border-color: var(--rod-color); }

@media (max-width: 1380px) {
  .rod-inventory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .inventory-layout { grid-template-columns: 250px minmax(570px,1fr); }
  body[data-inventory-view="kits"] .inventory-layout { grid-template-columns: 250px minmax(570px,1fr); }
  .properties-column { position: static; grid-column: 1 / -1; max-height: none; }
  .properties-content { grid-template-columns: 180px 1fr 1fr; align-items: start; }
  .properties-hero { grid-row: span 3; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 940px) {
  .inventory-intro { align-items: stretch; flex-direction: column; }
  .inventory-status-card { min-width: 0; }
  .inventory-layout { grid-template-columns: 1fr; }
  body[data-inventory-view="kits"] .inventory-layout { grid-template-columns: 1fr; }
  .library-column, .properties-column { position: static; max-height: none; }
  .library-column { order: 1; }
  .kit-workbench { order: 2; }
  .properties-column { order: 3; }
  .kit-slot { grid-template-columns: 94px 1fr; }
  .slot-meta { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .maintenance-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .rod-inventory-hero { min-height: 240px; align-items: flex-start; flex-direction: column; background-position: 110% 100%; background-size: 300px auto; }
  body[data-inventory-view="rods"] .rod-inventory-hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .rod-inventory-summary { min-width: 0; }
  .rod-inventory-toolbar { align-items: stretch; flex-direction: column; }
  .rod-inventory-actions { align-items: stretch; flex-direction: column; }
  .rod-inventory-grid { grid-template-columns: 1fr; }
  .rod-editor-fields { grid-template-columns: 1fr; }
  .rod-editor-fields label:nth-child(n+3) { grid-column: auto; }
  .rod-catalog-field-wide { grid-column: auto; }
  .rod-catalog-item { grid-template-columns: 88px 1fr auto; }
  .rod-catalog-item img { width: 88px; height: 62px; }
  .rod-color-options { grid-template-columns: repeat(5,1fr); }
  .inventory-main { width: min(100% - 20px, 1560px); padding-top: 28px; }
  .inventory-actions { width: 100%; overflow-x: auto; }
  .inventory-tabs { overflow-x: auto; }
  .inventory-tabs button { min-width: 120px; }
  .workbench-toolbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { justify-content: flex-start; }
  .kit-slots { padding-left: 0; }
  .kit-slots::before, .kit-slot::before { display: none; }
  .kit-slot { grid-template-columns: 78px 1fr; }
  .slot-visual .equipment-visual { width: 74px; }
  .analysis-checks, .recommendations, .properties-content { grid-template-columns: 1fr; }
  .recommendation { border-top: 1px solid var(--line); border-left: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1500px) {
  .reel-catalog-layout { grid-template-columns: 220px minmax(560px,1fr) 270px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1180px) {
  .reel-catalog-header { grid-template-columns: 1fr minmax(280px,.8fr); }
  .catalog-kit-toggle { grid-column: 1 / -1; justify-self: end; }
  .reel-catalog-layout { grid-template-columns: 220px minmax(0,1fr); }
  .catalog-detail-panel { position: static; grid-column: 1 / -1; max-height: none; }
  .catalog-detail-panel { display: grid; grid-template-columns: minmax(210px,.6fr) 1fr; gap: 10px 18px; }
  .catalog-detail-heading, .catalog-detail-panel > h3, .catalog-detail-panel > .property-tags, .catalog-detail-panel > .catalog-kit-status { grid-column: 1 / -1; }
  .catalog-detail-panel > h4, .catalog-detail-panel > dl, .catalog-detail-panel > .catalog-compatibility, .catalog-detail-panel > .official-source, .catalog-detail-panel > button { grid-column: 2; }
  .catalog-detail-visual { grid-column: 1; grid-row: 2 / span 7; }
}

@media (max-width: 760px) {
  body[data-inventory-view="catalog"] .inventory-main { width: min(100% - 18px,1880px); }
  .reel-catalog-header { grid-template-columns: 1fr; }
  .catalog-kit-toggle { grid-column: auto; justify-self: stretch; }
  .catalog-section-title { align-items: flex-start; flex-direction: column; }
  .reel-type-strip { grid-template-columns: repeat(4,190px); }
  .reel-class-strip { grid-template-columns: repeat(var(--class-count,10),150px); }
  .reel-catalog-layout { grid-template-columns: 1fr; }
  .catalog-filter-panel, .catalog-detail-panel { position: static; max-height: none; }
  .catalog-filter-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
  .catalog-filter-heading { grid-column: 1 / -1; }
  .catalog-filter-panel > .catalog-check-row, .catalog-filter-panel > .catalog-select-label, .catalog-filter-panel > select { grid-column: 1 / -1; }
  .catalog-results-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-detail-panel { display: block; }
}
