* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; min-height: 100vh; background: #f5f6f8 url("/static/background.jpeg") center center / cover no-repeat fixed; color: #1a1a1a; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: #1a1a1a; color: #fff; }
.topbar a { color: #fff; text-decoration: none; margin-right: 16px; }
.brand { font-weight: 700; font-size: 1.1rem; }
.inline-form { display: inline; }
.link-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 0; font: inherit; }
.container { max-width: 1180px; margin: 24px auto; padding: 0 24px; }
.card { background: rgba(255,255,255,0.9); padding: 20px 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 20px; }
.card.narrow { max-width: 420px; margin: 80px auto; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-cols { grid-template-columns: 1fr; } }
h1 { margin: 0 0 16px; font-size: 1.5rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
h3 { margin: 16px 0 8px; font-size: 1rem; }
input[type=text], input[type=number], input[type=password], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd2d8; border-radius: 6px; font: inherit; }
textarea { font-family: inherit; }
button { background: #2864e8; color: #fff; border: none; padding: 10px 18px; border-radius: 6px; cursor: pointer; font: inherit; }
button:hover { background: #1f53c4; }
form p { margin: 0 0 12px; }
.muted { color: #777; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.alert-warn { background: #fff4e0; color: #8a5a00; }
.alert-error { background: #fde7e7; color: #8a1a1a; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-bottom: 16px; }
.numbers > div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #e1e4ea; }
.numbers span { color: #777; font-size: 0.9rem; }
.numbers b { font-size: 1.05rem; }
.good { color: #1c7a3a; }
.warn { color: #b8651b; }
.breakdown { list-style: none; padding: 0; margin: 0; }
.breakdown li { padding: 4px 0; border-bottom: 1px dashed #eee; }
.alts { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.alts th, .alts td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e1e4ea; }
.alts th { background: #f0f2f5; }
.messages { list-style: none; padding: 0; }
.msg-success { color: #1c7a3a; }
.msg-error { color: #8a1a1a; }
.help { color: #777; font-size: 0.85rem; display: block; margin-top: 2px; }
.error { color: #8a1a1a; font-size: 0.85rem; display: block; margin-top: 2px; }
.address-field { position: relative; }
.address-suggestions-wrap { display: block; position: relative; }
.address-suggestions { list-style: none; margin: 4px 0 0; padding: 4px 0; background: #fff; border: 1px solid #cfd2d8; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); max-height: 220px; overflow-y: auto; position: absolute; z-index: 10; width: 100%; }
.address-suggestions li { padding: 6px 12px; cursor: pointer; }
.address-suggestions li:hover, .address-suggestions li:focus { background: #f0f4ff; outline: none; }
.route-tabs { display: flex; gap: 4px; margin: 4px 0 0; border-bottom: 1px solid #cfd2d8; }
.route-tabs .tab { background: #f0f2f5; color: #1a1a1a; border: 1px solid #cfd2d8; border-bottom: none; border-radius: 6px 6px 0 0; padding: 7px 14px; font-size: 0.95rem; cursor: pointer; }
.route-tabs .tab.active { background: #fff; font-weight: 600; transform: translateY(1px); }
.route-tabs .tab[disabled] { opacity: .5; cursor: not-allowed; }
.tab-panel { display: none; padding: 12px 0 0; }
.tab-panel.active { display: block; }
.how-it-works { margin: 14px 0; border: 1px solid #e1e4ea; border-radius: 6px; background: #fafbfc; }
.how-it-works > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; color: #2a4d8f; user-select: none; }
.how-it-works[open] > summary { border-bottom: 1px solid #e1e4ea; }
.how-it-works ol { margin: 8px 0; padding: 0 16px 4px 30px; }
.how-it-works li { padding: 4px 0; font-size: 0.9rem; line-height: 1.45; }
.appfoot { max-width: 1180px; margin: 0 auto 28px; padding: 12px 22px; background: rgba(255,255,255,0.94); border: 1px solid #d8dbe0; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); color: #475066; font-size: 0.82rem; line-height: 1.7; text-align: center; }
.appfoot b { color: #1a1a1a; font-weight: 600; }
