.local-tool-entry { flex: none; width: 100%; min-height: 55px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #2c4656; border-radius: 14px; background: linear-gradient(115deg, #142b38, #111d27); text-align: left; color: #d6edf9; cursor: pointer; }
.local-tool-entry > span:nth-child(2) { flex: 1; min-width: 0; }
.local-tool-entry b { display: block; font-size: 12px; font-weight: 700; }
.local-tool-entry small { display: block; margin-top: 4px; color: #8aa6b8; font-size: 9px; line-height: 1.4; }
.local-tool-entry > span:last-child { color: #84d7ff; font-size: 20px; }
.tool-dialog { width: min(480px, calc(100% - 20px)); margin: auto; padding: 0; border: 1px solid #355365; border-radius: 23px; background: #0e1923; color: #e8f5fd; overflow: hidden; color-scheme: dark; box-shadow: 0 20px 90px #0008; }
.tool-dialog[open] { display: flex; flex-direction: column; }
.tool-dialog::backdrop { background: #02070bd9; backdrop-filter: blur(5px); }
.tool-dialog-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 17px 14px; border-bottom: 1px solid #253d4d; background: #101e29; }
.tool-dialog-head small { color: #7fb9d4; font-size: 8px; letter-spacing: 1.8px; }
.tool-dialog h2 { margin: 5px 0 0; font-size: 20px; }
.tool-close { flex: none; min-width: 64px; min-height: 56px; padding: 8px 12px; border: 1px solid #365162; border-radius: 10px; background: #182e3c; color: #c6e7f7; font-size: var(--ui-text-small); line-height: 1.5; cursor: pointer; }
.tool-body { min-height: 0; padding: 17px; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 16px; }
.tool-note { margin: 11px 0 0; color: #8fa9bb; font-size: 10px; line-height: 1.8; }
.tool-note a { color: #98daf7; }
.tool-body :is([data-tool-panel="lease"], [data-tool-panel="breakeven"]) .tool-note { color: #9cabbc; font-size: .8125rem; line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 11px; }
.tool-grid label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #afcadb; font-size: 11px; line-height: 1.6; }
.tool-grid .tool-wide { grid-column: 1 / -1; }
:where(.tool-dialog input:not([type=checkbox]), .tool-dialog select, .tool-dialog textarea) { width: 100%; min-width: 0; min-height: 45px; padding: 11px; border: 1px solid #2d4b5d; border-radius: 11px; background: #08141e; color: #ecf7fd; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.currency-money-inline input, .currency-money-inline select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #2d4b5d; border-radius: 11px; background: #08141e; color: #ecf7fd; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.currency-money-inline input::placeholder { color: #668397; font-size: 11px; }
.currency-money-inline :focus-visible { outline: 2px solid #8edfff; outline-offset: 2px; }
.currency-money-inline > .tool-tabs { display: none; }
.currency-money-inline .tool-grid { gap: 11px 9px; }
.currency-money-inline .tool-details { margin: 14px 0 0; }
.currency-money-inline .tool-note { font-size: 9px; }
.currency-money-inline .tool-actions { gap: 7px; }
.currency-money-inline .tool-actions .tool-secondary { padding: 9px 7px; min-height: 40px; font-size: 10px; }
.tool-dialog textarea { resize: vertical; min-height: 125px; line-height: 1.8; }
.tool-dialog input::placeholder, .tool-dialog textarea::placeholder { color: #668397; font-size: 12px; }
.tool-dialog :focus-visible { outline: 2px solid #8edfff; outline-offset: 3px; }
.tool-primary, .tool-secondary { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 15px; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.tool-primary { width: 100%; margin-top: 16px; border: 1px solid #8edbfb; background: linear-gradient(100deg, #a0e4fb, #63c4ef); color: #082333; }
.tool-secondary { border: 1px solid #355569; background: #152b3a; color: #b5dfef; }
.tool-secondary:disabled, .tool-primary:disabled { opacity: .55; cursor: wait; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.tool-actions > * { flex: 1; }
.tool-lease-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #263e4e; }
.tool-lease-footer > button { width: 100%; min-width: 0; height: 46px; min-height: 46px; margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.3; }
.tool-lease-footer > .tool-secondary { border-color: #304a5b; background: #132430; color: #b6cad6; font-weight: 500; }
.tool-lease-footer > .tool-primary { border-color: #80d5f3; background: linear-gradient(110deg, #95dff6, #6bc9ed); font-weight: 700; }
.tool-lease-footer > .tool-secondary:hover { border-color: #598094; background: #1a303e; }
.tool-lease-footer > .tool-primary:hover { filter: brightness(1.05); }
.tool-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 18px; border: 1px solid #2a4556; border-radius: 12px; background: #0b1721; }
.tool-tabs button { flex: 1; min-height: 37px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: #8ca9bb; font-size: 12px; cursor: pointer; }
.tool-tabs button[aria-pressed=true] { background: #204355; color: #caeeff; }
.tool-section-title { margin: 20px 0 16px; color: #c6e0ef; font-size: var(--ui-text); }
#tool-lease-form { scroll-margin-top: 8rem; }
.tool-details { margin: 17px 0; border: 1px solid #2a4354; border-radius: 12px; }
.tool-details > summary { padding: 12px; color: #a7cbde; font-size: var(--ui-text-small); cursor: pointer; }
.tool-details > div { padding: 0 12px 12px; }
.tool-result { margin-top: 18px; padding: 16px 14px; border: 1px solid #3b6579; border-radius: 15px; background: radial-gradient(ellipse at 100% 0, #4ca1c41b, transparent 70%), #142b37; }
.tool-result > p { margin: 0 0 9px; color: #9dbdce; font-size: 11px; line-height: 1.8; }
.tool-result > strong { display: block; color: #b1edff; font-size: 29px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0 0; }
.tool-metrics > div { min-width: 0; padding-top: 10px; border-top: 1px solid #315064; }
.tool-metrics dt { color: #89a7bb; font-size: 10px; }
.tool-metrics dd { margin: 7px 0 0; color: #dbf3ff; font-size: 15px; overflow-wrap: anywhere; }
.tool-feedback { margin: 13px 0 0; color: #f0bd92; font-size: 11px; line-height: 1.8; }
.tool-feedback:empty { display: none; }
.tool-empty { margin: 0; padding: 22px 15px; border: 1px dashed #355165; border-radius: 12px; color: #829fb3; font-size: 11px; text-align: center; line-height: 1.8; }
.tool-lease-list { display: grid; gap: 12px; margin: 15px 0; }
.tool-lease-card { padding: 14px; border: 1px solid #2d4d60; border-radius: 14px; background: #101f2c; }
.tool-lease-card h3 { margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.tool-lease-card p { margin: 6px 0; color: #9ab7cb; font-size: 11px; line-height: 1.7; }
.tool-lease-card .tool-due { color: #9ce4ff; }
.tool-lease-card .tool-overdue { color: #f2bd92; }
.tool-lease-card .tool-actions button { min-height: 38px; padding: 8px; font-size: 10px; }
.tool-payments { padding-left: 20px; color: #93adbf; font-size: 10px; line-height: 1.9; }
@media (max-width: 360px) { .tool-body { padding: 14px; } .tool-grid { gap: 12px 8px; } }
@media (max-height: 650px) { .local-tool-entry { min-height: 44px; padding: 7px 11px; } .local-tool-entry small { display: none; } }
