.gear-library-actions { display: flex; align-items: center; gap: 2px; }
.gear-information-marker { display: grid; place-items: center; width: 28px; height: 30px; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: #698276; opacity: 0; }
.gear-library-row:hover .gear-information-marker, .gear-library-row:focus-within .gear-information-marker { opacity: 1; }
@media (hover: none) { .gear-information-marker { opacity: 1; } }
.gear-information-marker:hover { background: #a6c9b115; color: #d1e6d9; }
.gear-library-dialog .gear-library-row { grid-template-columns: minmax(0,1fr) 100px 60px; }
.gear-library-dialog .gear-category-group > header { grid-template-columns: minmax(0,1fr) 100px 60px; }
.gear-editor-dialog { width: min(640px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0; color: #dce9e0; background: linear-gradient(145deg,#1b3429,#0d2018); border: 1px solid #6c8f7970; border-radius: 22px; box-shadow: 0 26px 90px #0008; }
.gear-editor-dialog[open], .gear-editor-dialog form { display: flex; flex-direction: column; min-height: 0; }
.gear-editor-dialog::backdrop { background: #04110b88; backdrop-filter: blur(5px); }
.gear-editor-dialog > header { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 23px 26px 18px; border-bottom: 1px solid #8ab19925; }
.gear-editor-dialog h3 { margin: 9px 0 5px; font-size: var(--ui-text-base, 10px); }
.gear-editor-dialog header p, .gear-editor-guidance, .gear-editor-performance > p { margin: 5px 0; color: #9bb4a5; font-size: var(--ui-text-base, 10px); line-height: 1.6; }
.gear-editor-dialog > header button { width: 32px; height: 32px; padding: 0; color: #c4dbce; border: 1px solid #6c8f7970; border-radius: 9px; background: transparent; font-size: 24px; }
.gear-editor-body { padding: 22px 26px; overflow-y: auto; overscroll-behavior: contain; }
.gear-editor-dialog fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.gear-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 18px 16px; align-items: start; }
.gear-editor-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; color: #bad0c2; font-size: var(--ui-text-base, 10px); }
.gear-editor-dialog input:not([type="checkbox"]), .gear-editor-dialog select { width: 100%; min-width: 0; height: 42px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #69877480; border-radius: 10px; color: #e1eee6; background: #091a1266; font-size: var(--ui-text-base, 10px); }
.gear-editor-dialog select { color-scheme: dark; text-overflow: ellipsis; }
.gear-editor-dialog input::placeholder { color: #82988b; }
.gear-editor-dialog input:focus-visible, .gear-editor-dialog select:focus-visible, .gear-editor-dialog button:focus-visible { outline: 2px solid #b8d6c4; outline-offset: 2px; }
.gear-editor-dialog small { color: #91ac9b; font-size: var(--ui-text-base, 10px); line-height: 1.55; }
.gear-editor-guidance { margin-top: 12px; }
.gear-editor-performance { margin-top: 23px; padding-top: 18px; border-top: 1px solid #8ab19925; }
.gear-editor-performance h4 { margin: 0; font-size: var(--ui-text-base, 10px); }
[data-gear-parameters] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 15px; }
.gear-editor-empty { grid-column: 1 / -1; color: #8ea799; font-size: var(--ui-text-base, 10px); }
.gear-parameter-seasons { grid-column: 1 / -1; }
.gear-parameter-seasons legend { margin-bottom: 10px; font-size: var(--ui-text-base, 10px); }
.gear-parameter-seasons > div { display: flex; gap: 8px; margin-bottom: 8px; }
.gear-parameter-seasons label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #69877480; border-radius: 9px; font-size: var(--ui-text-base, 10px); }
.gear-parameter-seasons label:has(:checked) { background: #bfd9c726; border-color: #b1cfba; }
.gear-parameter-seasons input { accent-color: #b7d7c3; }
.gear-editor-dialog footer { padding: 14px 26px 20px; border-top: 1px solid #8ab19925; }
[data-editor-status] { margin: 0 0 8px; color: #e8bf98; font-size: var(--ui-text-base, 10px); }
[data-editor-status]:empty { display: none; }
.gear-editor-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.gear-editor-dialog footer button { padding: 9px 19px; color: #c4dbce; border: 1px solid #69877480; border-radius: 10px; background: transparent; font-size: var(--ui-text-base, 10px); }
.gear-editor-dialog footer .gear-editor-save { color: #153223; background: #b8d2bf; border-color: #b8d2bf; }
.gear-editor-dialog button:disabled { opacity: .5; cursor: wait; }
[data-editor-discard] { padding: 10px 0; font-size: var(--ui-text-base, 10px); color: #e8bf98; }
[data-editor-discard] span { display: block; margin-bottom: 8px; }
.gear-library-row .gear-library-brand, .gear-library-row .gear-library-name { padding: 9px 6px; overflow-wrap: anywhere; font-size: var(--ui-text-base, 10px); }
.gear-library-row .gear-library-brand { color: #a4bdaf; }
.gear-library-row .gear-library-weight { color: #a4bdaf; font-size: var(--ui-text-base, 10px); justify-content: flex-end; gap: 7px; }
@media (max-width: 560px) {
  .gear-editor-dialog { max-height: calc(100dvh - 18px); border-radius: 16px; }
  .gear-editor-dialog > header, .gear-editor-body { padding: 18px; }
  .gear-editor-dialog footer { padding: 12px 18px 18px; }
  .gear-editor-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  [data-gear-parameters] { grid-template-columns: minmax(0,1fr); }
}

.gear-information-marker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width:600px) {
  .gear-library-dialog .gear-library-row { grid-template-columns: minmax(0,1fr) 58px; gap: 2px 4px; padding: 5px 0; }
  .gear-library-dialog .gear-library-row .gear-library-identity { grid-column: 1 / span 2; grid-row: 1; }
  .gear-library-dialog .gear-library-row .gear-library-weight { grid-column: 1; grid-row: 2; justify-self: end; width: 80px; }
  .gear-library-actions { grid-column: 2; grid-row: 2; }
  .gear-library-dialog .gear-category-group > header { grid-template-columns: minmax(0,1fr) 60px; }
}

.gear-library-model { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.gear-library-model .gear-library-name { min-width: 0; }
.gear-library-model .gear-completion-badge { display: inline-block; margin-left: 7px; padding: 1px 5px; border: 1px solid #a77e5060; border-radius: 4px; color: #d9b688; font-size: var(--ui-text-base, 10px); white-space: nowrap; vertical-align: middle; }
