/* Portal form styles (copied from the producer portal's styles.css), scoped to .sq so they don't touch the website. */
.sq { --navy: #0f2a4a; --navy-2: #163a63; --blue: #2563eb; --blue-50: #eaf1fe; --ink: #14233a; --muted: #5d6b7e;
  --line: #e2e8f0; --bg: #f4f7fb; --card: #fff; --red: #b42318; --amber: #b45309; --green: #15803d;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); }
.sq, .sq * { box-sizing: border-box; }
.sq { margin: 0; font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); }
.sq a { color: var(--blue); text-decoration: none; }
.sq h1, .sq h2, .sq h3, .sq h4 { margin: 0; }
.sq .ico { flex: none; }
.sq .muted { color: var(--muted); }
.sq .req { color: var(--red); }
.sq .shell { display: flex; min-height: 100vh; }
.sq .sidebar { width: 236px; flex: none; background: var(--navy); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sq .brand { display: flex; gap: 10px; align-items: center; color: #fff; padding: 4px 8px 22px; }
.sq .brand b { display: block; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; }
.sq .brand small { font-size: 9.5px; letter-spacing: 2.4px; opacity: .85; }
.sq .sidebar nav a, .sq .sidebar nav span { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #dbe5f2; margin-bottom: 4px; }
.sq .sidebar nav a:hover { background: var(--navy-2); color: #fff; }
.sq .sidebar nav a.active { background: var(--blue); color: #fff; }
.sq .sidebar nav span.soon { opacity: .55; cursor: default; }
.sq .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sq .topbar { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sq .menu-btn { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }
.sq .search { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: min(320px, 40vw); color: var(--muted); }
.sq .search input { border: 0; outline: 0; width: 100%; font: inherit; background: transparent; }
.sq .user { display: flex; align-items: center; gap: 10px; }
.sq .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; }
.sq .who b { display: block; font-size: 14px; }
.sq .who small { color: var(--muted); font-size: 12px; }
.sq .logout { color: var(--muted); display: grid; place-items: center; padding: 6px; border-radius: 6px; }
.sq .logout:hover { background: var(--bg); }
.sq .content { padding: 24px; max-width: 1400px; width: 100%; }
.sq .flash { margin: 12px 24px 0; padding: 10px 14px; background: #fff7e6; border: 1px solid #f5d38a; border-radius: 8px; }
.sq .page-title { font-size: 28px; letter-spacing: -.4px; }
.sq .lede { color: var(--muted); margin: 6px 0 18px; font-size: 16px; }
.sq .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; border: 1px solid transparent; }
.sq .btn.primary { background: var(--blue); color: #fff; }
.sq .btn.primary:hover { background: #1d4ed8; }
.sq .btn.primary:disabled { opacity: .6; cursor: wait; }
.sq .btn.outline { background: #fff; color: var(--blue); border-color: #bcd0f7; }
.sq .btn.outline:hover { background: var(--blue-50); }
.sq .btn.light { background: #fff; color: var(--blue); }
.sq .btn.small { padding: 6px 12px; font-size: 13px; }
.sq .btn.block { width: 100%; }
.sq .btn.link { background: none; border: 0; color: var(--blue); padding: 2px 4px; font-weight: 500; }
.sq .btn.link.danger { color: var(--red); }
.sq .btn.icon { background: #fff; border: 1px solid var(--line); color: var(--muted); padding: 6px 10px; align-self: end; margin-bottom: 2px; }
.sq .pill { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sq .pill.blue { background: #e0ebff; color: #1d4ed8; }
.sq .pill.amber { background: #fdf0d5; color: var(--amber); }
.sq .pill.green { background: #dcf5e4; color: var(--green); }
.sq .pill.teal { background: #d7f3ef; color: #0f766e; }
.sq .pill.gray { background: #eef1f5; color: var(--muted); }
.sq .auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--navy), #1e4b7d); }
.sq .auth-card { background: #fff; width: min(420px, 100%); border-radius: 14px; padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.sq .auth-brand { display: flex; gap: 10px; align-items: center; color: var(--navy); margin-bottom: 20px; }
.sq .auth-brand b { display: block; font-size: 20px; }
.sq .auth-brand small { font-size: 10px; letter-spacing: 2.4px; }
.sq .auth h1 { font-size: 22px; margin-bottom: 6px; }
.sq .auth .flash { margin: 12px 0; }
.sq .auth form { margin-top: 18px; display: grid; gap: 14px; }
.sq .code-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; }
.sq .fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.sq .dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sq .stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.sq .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.sq .stat small { color: var(--muted); font-size: 12px; display: block; }
.sq .stat b { font-size: 22px; }
.sq .muted-stat b { color: var(--muted); }
.sq .hero { border-radius: 12px; padding: 34px 32px; color: #fff; margin-bottom: 26px;
  background: linear-gradient(100deg, rgba(10, 30, 55, .92), rgba(20, 60, 100, .55)),
              linear-gradient(160deg, #6b8fb8 0%, #2b4c73 55%, #1b3350 100%); position: relative; overflow: hidden; }
.sq .hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 60%; height: 150%;
  background: linear-gradient(160deg, transparent 45%, rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, .08) 60%, transparent 61%); }
.sq .hero h2 { font-size: 26px; margin-bottom: 6px; }
.sq .hero p { margin: 0 0 18px; opacity: .9; }
.sq .section-title { font-size: 20px; margin-bottom: 4px; scroll-margin-top: 80px; }
.sq .lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sq .line-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sq .line-card.disabled { opacity: .72; }
.sq .line-top { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.sq .line-building { background: linear-gradient(135deg, #7ea0c9, #34577f); }
.sq .line-hardhat { background: linear-gradient(135deg, #d6a86b, #8a5a2b); }
.sq .line-home { background: linear-gradient(135deg, #6ea786, #2f5f45); }
.sq .line-car { background: linear-gradient(135deg, #5b87c5, #1f3f6e); }
.sq .line-truck { background: linear-gradient(135deg, #8fa7bd, #45596d); }
.sq .line-people { background: linear-gradient(135deg, #c98b6b, #7c4a33); }
.sq .line-office { background: linear-gradient(135deg, #9a8fc9, #4d4380); }
.sq .line-umbrella { background: linear-gradient(135deg, #7c8a96, #333d47); }
.sq .line-key { background: linear-gradient(135deg, #b88a6a, #5e4331); }
.sq .line-boat { background: linear-gradient(135deg, #5fb0cf, #1f5f7b); }
.sq .line-rv { background: linear-gradient(135deg, #a3b68a, #56693f); }
.sq .line-photo { background-size: cover; background-position: center; }
.sq .line-flood { background: linear-gradient(135deg, #6fa3c9, #2b5f86); }
.sq .line-gem { background: linear-gradient(135deg, #9d8bc4, #4b3f7a); }
.sq .line-condo { background: linear-gradient(135deg, #8aa9c4, #3e5f7e); }
.sq .line-rental { background: linear-gradient(135deg, #b9a07a, #6b5434); }
.sq .line-shield { background: linear-gradient(135deg, #d6b25c, #8a6a1f); }
.sq .line-body { padding: 0 14px 14px; position: relative; flex: 1; display: flex; flex-direction: column; }
.sq .line-icon { width: 40px; height: 40px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); margin-top: -20px; margin-bottom: 8px; }
.sq .line-body h3 { font-size: 15px; }
.sq .line-body p { color: var(--muted); font-size: 13px; margin: 4px 0 12px; flex: 1; }
.sq .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.sq .line-body .pill { align-self: start; }
.sq .dash-side { display: grid; gap: 16px; position: sticky; top: 80px; }
.sq .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.sq .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sq .panel-head h3 { font-size: 16px; }
.sq .panel-head a { font-size: 13px; font-weight: 600; }
.sq .recent { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.sq .recent b { display: block; font-size: 14px; }
.sq .recent small { color: var(--muted); font-size: 12px; }
.sq .recent .date { grid-column: 2; text-align: right; }
.sq .empty { padding: 12px 0; font-size: 14px; }
.sq .quick { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.sq .quick.soon { opacity: .55; }
.sq .quick b { display: block; font-size: 14px; }
.sq .quick small { color: var(--muted); font-size: 12px; }
.sq .quick > span:nth-child(2) { flex: 1; }
.sq .qi { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.sq .assist { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; }
.sq .assist b { display: block; }
.sq .assist small { color: var(--muted); font-size: 13px; }
.sq .assist .btn { grid-column: 1 / -1; }
.sq .table-wrap { overflow-x: auto; padding: 0; }
.sq .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sq .table th, .sq .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sq .table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: #fafbfd; }
.sq .table .num { text-align: right; }
.sq .form-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.sq .steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.sq .steps button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 500 13px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.sq .steps button:disabled { cursor: default; opacity: .6; }
.sq .steps .is-done button { color: var(--green); border-color: #bfe5cb; }
.sq .steps .current button { background: var(--navy); color: #fff; border-color: var(--navy); }
.sq .form-panel { padding: 22px 24px; }
.sq .form-panel h2 { font-size: 18px; margin: 22px 0 12px; }
.sq .form-panel h2:first-child { margin-top: 0; }
.sq .form-panel h3 { font-size: 15px; margin: 18px 0 10px; }
.sq .form-panel h4 { font-size: 14px; margin: 14px 0 6px; }
.sq .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.sq .span2 { grid-column: 1 / -1; }
.sq .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }
.sq .field input, .sq .field select, .sq .field textarea { font: 400 15px Inter, sans-serif; color: var(--ink); padding: 9px 11px; border: 1px solid #cdd6e2; border-radius: 8px; background: #fff; width: 100%; }
.sq .field input:focus, .sq .field select:focus, .sq .field textarea:focus { outline: 2px solid #bcd0f7; border-color: var(--blue); }
.sq .field input:disabled, .sq .field select:disabled { background: #f1f4f8; color: var(--muted); }
.sq .field .invalid, .sq .invalid { border-color: var(--red) !important; background: #fff6f5; }
.sq .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; margin: 2px 0 8px; }
.sq .field .hint { margin: 0; }
.sq .check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 10px 0; }
.sq .checks { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.sq .group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 12px 0; }
.sq .group legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.sq .group.sub { background: #fafbfd; }
.sq .row-inline { display: flex; gap: 12px; align-items: end; margin-bottom: 10px; flex-wrap: wrap; }
.sq .row-inline .field { flex: 1; min-width: 180px; }
.sq .row-inline .grow { flex: 2; }
.sq .vin-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.sq .vin-row .field { flex: 1; min-width: 240px; }
.sq .or { color: var(--muted); font-size: 13px; }
.sq .card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.sq .card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; cursor: pointer; background: #f7f9fc; border-radius: var(--radius); }
.sq .card.open .card-head { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.sq .card-body { padding: 0 16px; }
.sq .card.open .card-body { padding: 8px 16px 16px; }
.sq .caret { color: var(--muted); margin-left: 6px; }
.sq .notice { background: var(--blue-50); border: 1px solid #c9d9fb; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.sq .warn { background: #fff4e0; border: 1px solid #f5d38a; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 8px 0; }
.sq .errors { background: #fff1f0; border: 1px solid #f3b8b3; color: var(--red); padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.sq .errors ul { margin: 6px 0 0; padding-left: 18px; }
.sq .form-nav { display: flex; justify-content: space-between; margin: 16px 0 40px; }
.sq .review-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.sq .review-sec header { display: flex; justify-content: space-between; align-items: center; }
.sq .review { display: grid; grid-template-columns: 220px 1fr; gap: 4px 14px; margin: 8px 0; font-size: 14px; }
.sq .review dt { color: var(--muted); }
.sq .review dd { margin: 0; }
.sq .done { text-align: center; padding: 40px 24px; }
.sq .done-icon { width: 56px; height: 56px; border-radius: 50%; background: #dcf5e4; color: var(--green); display: grid; place-items: center; font-size: 28px; margin: 0 auto 12px; }
.sq .done p { color: var(--muted); }
.sq .done .btn { margin: 6px 4px 0; }
@media (max-width: 1200px) {
.sq .dash { grid-template-columns: 1fr; }
.sq .dash-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sq .lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sq .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
.sq .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; }
.sq .sidebar.open { left: 0; }
.sq .menu-btn { display: block; }
.sq .who { display: none; }
.sq .search { width: auto; flex: 1; }
.sq .content { padding: 16px; }
.sq .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sq .grid { grid-template-columns: 1fr; }
.sq .review { grid-template-columns: 1fr; }
.sq .review dd { margin-bottom: 6px; }
.sq .form-head { flex-direction: column; }
.sq .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
.sq .lines { grid-template-columns: 1fr; }
.sq .topbar { padding: 10px 16px; }
}
.sq .segs { display: flex; flex-wrap: wrap; gap: 6px; }
.sq .seg { border: 1px solid #cdd6e2; background: #fff; border-radius: 8px; padding: 8px 14px; font: 500 14px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.sq .seg:hover { border-color: var(--blue); }
.sq .seg.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sq .field.invalid .seg { border-color: var(--red); }
.sq .tip { font-style: normal; color: var(--blue); cursor: help; margin-left: 4px; }
.sq .pct-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.sq .pct-row .check { margin: 0; min-width: 230px; }
.sq .pct { width: 70px; padding: 7px 9px; border: 1px solid #cdd6e2; border-radius: 8px; font: 400 15px Inter, sans-serif; }
.sq .field.inline { flex-direction: row; align-items: center; gap: 8px; }
.sq .field.inline input { width: 110px; }
.sq .danger { color: var(--red); }
.sq .cc input[type=search] { width: 100%; }
.sq .cc-results { border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; max-height: 280px; overflow-y: auto; background: #fff; box-shadow: var(--shadow); }
.sq .cc-results .hint { padding: 10px 12px; margin: 0; }
.sq .cc-opt { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: 14px Inter, sans-serif; cursor: pointer; }
.sq .cc-opt:last-child { border-bottom: 0; }
.sq .cc-opt:hover, .sq .cc-opt:focus { background: var(--blue-50); }
.sq .cc-picked { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; font-size: 14px; }
.sq .cc.invalid input { border-color: #d92d20; }
.sq .vehicles th, .sq .vehicles td { padding: 5px 3px; font-size: 12px; text-align: center; }
.sq .vehicles tbody th { text-align: left; font-weight: 500; }
.sq .vehicles input { width: 100%; min-width: 100px; padding: 6px 6px; border: 1px solid #cdd6e2; border-radius: 6px; font: 400 14px Inter, sans-serif; }
.sq .vehicles input.narrow { min-width: 40px; width: 46px; text-align: center; }
.sq .line-heart { background: linear-gradient(135deg, #7fb5a8, #2f6a5e); }
.sq .line-store { background: linear-gradient(135deg, #d39b6a, #8b4f2b); }
.sq .line-briefcase { background: linear-gradient(135deg, #6f86b5, #2c3e6b); }
.sq .line-crane { background: linear-gradient(135deg, #e0a44f, #8a5a1c); }
.sq .line-layers { background: linear-gradient(135deg, #6aa3a8, #25575c); }
.sq .rating .rq { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.sq .rating .rq:nth-child(odd) { background: #fafbfd; }
.sq .rating .rq-n { flex: 0 0 34px; text-align: right; color: var(--muted); font-weight: 600; font-size: 14px; }
.sq .rating .rq-q { flex: 1 1 auto; font-size: 14px; line-height: 1.4; }
.sq .rating .rq-a { flex: 0 0 auto; }
.sq .rating input.narrow { width: 84px; padding: 8px 10px; border: 1px solid #cdd6e2; border-radius: 8px; font: 400 15px Inter, sans-serif; text-align: center; }
.sq .rating input.invalid { border-color: #d92d20; }
.sq .line-classic { background: linear-gradient(135deg, #b5524a, #5e2320); }
.sq .line-semi { background: linear-gradient(135deg, #6f7f8f, #2b3540); }
.sq .errors .fix-link { padding: 0; text-align: left; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.sq .errors .fix-link span { color: var(--blue, #2557d6); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sq .fix-here { outline: 3px solid #f5b400; outline-offset: 4px; border-radius: 8px; transition: outline-color .4s; }
.sq .ms { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-top: 6px; }
.sq .ms > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 36px 10px 12px; position: relative; min-height: 22px; }
.sq .ms > summary::-webkit-details-marker { display: none; }
.sq .ms > summary::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sq .ms[open] > summary::after { content: "▴"; }
.sq .ms-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.sq .ms-chip { background: #eef3fd; color: var(--ink); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.sq .ms-chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); padding: 0 6px; }
.sq .ms-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.sq .ms-panel { border-top: 1px solid var(--line); padding: 10px 12px; }
.sq .ms-find { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.sq .ms-list { max-height: 300px; overflow-y: auto; }
.sq .ms .ms-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 5px 2px; text-align: left; margin: 0; font-weight: 400; }
.sq .ms .ms-row[hidden] { display: none; }
.sq .ms .ms-row input[type=checkbox] { width: auto; flex: 0 0 auto; margin: 0; }
.sq .field.invalid .ms { border-color: var(--red); }
.sq .powered { margin-top: auto; padding: 16px 4px 2px; text-align: right; color: #f6f1d9; font-weight: 700; font-size: 11.5px; letter-spacing: .3px; white-space: nowrap; text-transform: uppercase; }
