:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #16365d; background: #f5f8fb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.settings-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 120px; }
.settings-header { margin-bottom: 22px; }
.back-link { color: #147f8c; text-decoration: none; font-weight: 700; }
h1 { margin: 18px 0 8px; font-size: clamp(30px, 6vw, 48px); letter-spacing: -.04em; }
h2 { margin: 0 0 8px; font-size: 22px; }
p { line-height: 1.6; }
.settings-header p, .hint { color: #607793; margin: 0; }
.settings-card { background: #fff; border: 1px solid #d7e3ee; border-radius: 16px; padding: 22px; margin: 16px 0; box-shadow: 0 8px 28px rgb(17 52 91 / 5%); }
.route-slot { border-top: 1px solid #e2eaf2; padding: 20px 0 4px; margin-top: 18px; }
.route-slot:first-child { border-top: 0; padding-top: 12px; margin-top: 10px; }
.route-slot-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.route-slot h3 { margin: 0; font-size: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
label { display: grid; gap: 7px; color: #45627f; font-weight: 700; font-size: 14px; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 44px; border: 1px solid #b9cddd; border-radius: 9px; padding: 9px 11px; background: #fff; color: #16365d; }
button { min-height: 44px; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; font-weight: 800; }
.primary-button { background: #123962; color: #fff; }
.secondary-button { background: #e8f1f6; color: #17546f; }
.text-button { background: transparent; color: #a34d47; }
.remove-route { min-height: 36px; padding: 6px 10px; background: #fff1ef; color: #a34d47; }
.search-row, .select-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.select-row { grid-template-columns: 1fr 1fr; }
.route-summary { min-height: 22px; margin: 12px 0 0; color: #607793; font-size: 14px; }
.confirm-button { margin-top: 10px; }
.inline-edit { min-height: 0; padding: 0; margin-left: 4px; vertical-align: baseline; }
.checkbox-label { display: flex; align-items: center; grid-template-columns: auto 1fr; margin-top: 18px; }
.checkbox-label input { width: 20px; min-height: 20px; }
.form-status { min-height: 24px; color: #a34d47; font-weight: 700; }
.form-status.success { color: #15766c; }
.save-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; padding: 14px 16px; background: rgb(255 255 255 / 94%); border-top: 1px solid #d7e3ee; backdrop-filter: blur(10px); }
@media (max-width: 680px) { .settings-shell { width: min(100% - 22px, 520px); padding-top: 18px; } .settings-card { padding: 17px; } .field-grid, .select-row { grid-template-columns: 1fr; } .search-row { grid-template-columns: 1fr; } .route-slot-header { align-items: flex-start; } .save-bar { flex-wrap: wrap; } .save-bar button { flex: 1 1 auto; } }
