.lotcost-app { max-width: 1100px; margin-top: 12px; }
.lotcost-title { margin-bottom: 12px; }
.lotcost-loading { display: flex; align-items: center; gap: 8px; padding: 24px 0; }
.lotcost-tabs { margin-bottom: 16px; }
.lotcost-section { margin-top: 8px; }
.lotcost-section .description { color: #50575e; }
.lotcost-empty { background: #fff; border: 1px solid #dcdcde; border-radius: 4px; padding: 16px 20px; max-width: 640px; }
.lotcost-empty h2 { margin-top: 0; }
.lotcost-empty ol { margin-left: 18px; list-style: decimal; }
.lotcost-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.lotcost-metric { background: #fff; border: 1px solid #dcdcde; border-radius: 4px; padding: 10px 14px; display: grid; gap: 2px; }
.lotcost-metric strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.lotcost-metric-label { color: #50575e; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.lotcost-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lotcost-table { margin-top: 4px; }
.lotcost-table th, .lotcost-table td { vertical-align: middle; }
.lotcost-table th.lotcost-num, .lotcost-table td.lotcost-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lotcost-table td.lotcost-actions { white-space: nowrap; text-align: right; }
.lotcost-badge { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #f0f0f1; color: #3c434a; }
.lotcost-badge.is-to_write { background: #fcf9e8; color: #6e5300; }
.lotcost-badge.is-incomplete { background: #fcf0f1; color: #8a2424; }
.lotcost-badge.is-in_sync { background: #edfaef; color: #1a5c2c; }
.lotcost-form { display: grid; gap: 16px; }
.lotcost-settings .lotcost-form { max-width: 560px; }
.lotcost-error { color: #b32d2e; margin: 4px 0; }
.lotcost-ok { color: #1a5c2c; margin: 4px 0; }
.lotcost-editor-title { margin: 0 0 12px; }
.lotcost-card { background: #fff; border: 1px solid #dcdcde; border-radius: 4px; padding: 14px 18px; margin-bottom: 16px; }
.lotcost-card h3 { margin: 0 0 12px; }
.lotcost-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lotcost-card-head h3 { margin: 0; }
.lotcost-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 14px; align-items: start; }
.lotcost-fields .has-error input { border-color: #d63638; }
.lotcost-pieces td .components-base-control { max-width: 120px; }
.lotcost-pieces th:nth-child(3), .lotcost-pieces td:nth-child(3) { width: 190px; }
.lotcost-pieces th:nth-child(2), .lotcost-pieces td:nth-child(2) { width: 110px; }
.lotcost-picker { background: #f6f7f7; border-radius: 4px; padding: 12px 16px; margin-bottom: 14px; max-width: 720px; }
.lotcost-picker-results ul { margin: 8px 0 0; max-height: 260px; overflow: auto; }
.lotcost-picker-results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; border-bottom: 1px solid #e0e0e0; }
.lotcost-sharing p { margin: 4px 0; }
.lotcost-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.lotcost-faq h3 { margin-bottom: 4px; }
.lotcost-faq p { margin-top: 0; max-width: 760px; }
/* Notices float above the page, so a message sent from the lot page is seen. */
.lotcost-toasts { position: fixed; top: 44px; right: 20px; z-index: 100001; width: min(420px, calc(100vw - 40px)); }
.lotcost-toasts .components-notice { margin: 0 0 8px; }
