/* Инструменты журнала autotrt.cc */
.tool { box-sizing: border-box; background: #ffffff; color: #1d232a; border: 1px solid #e3e6ea; border-radius: 10px; padding: 18px; margin: 20px 0; max-width: 100%; line-height: 1.45; }
.tool *, .tool *::before, .tool *::after { box-sizing: border-box; }
.tool-title { margin: 0 0 4px; font-size: 1.2em; font-weight: 700; color: #1d232a; }
.tool-lead { margin: 0 0 14px; color: #3b4652; font-size: .95em; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tool-tab { min-height: 40px; padding: 8px 14px; border: 1px solid #e3e6ea; border-radius: 10px; background: #ffffff; color: #3b4652; font: inherit; cursor: pointer; }
.tool-tab[aria-selected="true"] { background: #3b4652; border-color: #3b4652; color: #ffffff; }
.tool-panel[hidden] { display: none; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 14px; }
.tool-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-field > label, .tool-field > .tool-label { font-size: .88em; color: #3b4652; font-weight: 600; }
.tool input[type="text"], .tool input[type="number"], .tool input[type="search"], .tool select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #c9ced4; border-radius: 10px; background: #ffffff; color: #1d232a; font: inherit; font-size: 16px; }
.tool input:focus, .tool select:focus, .tool button:focus-visible { outline: 2px solid #e8590c; outline-offset: 1px; }
.tool-hint { font-size: .8em; color: #5b6672; }
.tool-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .95em; color: #1d232a; cursor: pointer; }
.tool-check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #e8590c; }
.tool-btn { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 10px; background: #e8590c; color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
.tool-btn:hover { background: #cf4f0a; }
.tool-btn-alt { background: #3b4652; }
.tool-btn-alt:hover { background: #2c353e; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tool-result { margin: 4px 0 0; padding: 14px; border: 1px solid #e3e6ea; border-radius: 10px; background: #f7f8fa; }
.tool-result:empty { display: none; }
.tool-big { font-size: 1.9em; font-weight: 800; color: #e8590c; line-height: 1.15; }
.tool-big small { font-size: .5em; font-weight: 600; color: #3b4652; }
.tool-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 0; }
.tool-stat { padding: 10px; border: 1px solid #e3e6ea; border-radius: 10px; background: #ffffff; min-width: 0; }
.tool-stat b { display: block; font-size: 1.15em; color: #1d232a; overflow-wrap: anywhere; }
.tool-stat span { font-size: .8em; color: #5b6672; }
.tool-table-wrap { overflow-x: auto; max-width: 100%; margin: 10px 0 0; -webkit-overflow-scrolling: touch; }
.tool-table { border-collapse: collapse; width: 100%; min-width: 360px; font-size: .92em; background: #ffffff; }
.tool-table th, .tool-table td { padding: 8px 10px; border: 1px solid #e3e6ea; text-align: left; vertical-align: top; }
.tool-table th { background: #f0f2f4; color: #3b4652; font-weight: 700; }
.tool-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e8; border: 1px solid #f3c79b; color: #7a3a05; }
.tool-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef6ee; border: 1px solid #c4dec4; color: #25522a; }
.tool-bad { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdeeee; border: 1px solid #f0c0c0; color: #7d1f1f; }
.tool-note { margin: 12px 0 0; font-size: .8em; color: #5b6672; }
.tool-obd-card h4 { margin: 0 0 6px; font-size: 1.1em; }
.tool-obd-code { display: inline-block; padding: 2px 10px; border-radius: 10px; background: #e8590c; color: #ffffff; font-weight: 800; letter-spacing: .5px; }
.tool-tag { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 10px; background: #eceff2; color: #3b4652; font-size: .85em; }
.tool-obd-card ul { margin: 4px 0 10px; padding-left: 20px; }
.tool-list { list-style: none; margin: 8px 0 0; padding: 0; }
.tool-list li { margin: 0 0 6px; }
.tool-list button { width: 100%; min-height: 44px; text-align: left; padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: 10px; background: #ffffff; color: #1d232a; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.tool-list button:hover { border-color: #e8590c; }
.tool-list b { color: #e8590c; margin-right: 6px; }
.tool details { margin: 14px 0 0; border: 1px solid #e3e6ea; border-radius: 10px; padding: 0 12px; }
.tool summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: #3b4652; }
.tool details > div { padding: 0 0 12px; font-size: .92em; }
.tool details p { margin: 0 0 8px; }
@media (max-width: 480px) {
  .tool { padding: 14px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-actions .tool-btn { flex: 1 1 100%; }
}
