/* ============================================================
   components.css — ชิ้นส่วน UI ที่ใช้ซ้ำทั้งระบบ (ปุ่ม การ์ด ตาราง ฟอร์ม ป้ายสถานะ แถบเตือน empty state ฯลฯ)
   ทุกโมดูลใช้ชุดเดียวกัน ค่าสี/ระยะมาจาก tokens.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1rem; line-height: var(--lh); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 720px) { html { font-size: 16px; } }
img, svg { max-width: 100%; }
a { color: var(--logo-blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy-dark); font-weight: 700; line-height: var(--lh-tight); margin: 0 0 var(--s-2); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--s-3); }
ul { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- ตัวช่วยเล็ก ๆ ---------- */
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.pre-wrap { white-space: pre-wrap; }
.flex-1 { flex: 1; }
.inline { display: inline; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: .8rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.25rem; } .mt-5 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: .8rem; } .mb-3 { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; } .m-0 { margin: 0; }
.silent { color: var(--red); font-weight: 600; }
.ok-text { color: var(--green); font-weight: 600; }
.inc { color: var(--green); font-weight: 700; }
.exp { color: var(--red); font-weight: 700; }
.req { color: var(--red); font-weight: 700; }
.state-working { color: var(--green); font-weight: 700; }
.state-off { color: var(--muted); }
.state-lost { color: var(--red); font-weight: 700; }
.qty-low { color: var(--red); font-weight: 700; }
.opacity-60 { opacity: .55; }

/* ---------- ไอคอน (SVG sprite เดียวกันทั้งเว็บ) ---------- */
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; stroke: currentColor; fill: none; }
.ico-lg { width: 1.6em; height: 1.6em; }
.ico-xl { width: 2rem; height: 2rem; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--gray-text); vertical-align: .05em; margin-right: .15em; }
.dot-green, .dot.green { background: var(--green); }
.dot-amber, .dot.yellow { background: #E2A11A; }
.dot-red, .dot.red { background: var(--red); }
.dot-blue { background: var(--sky-600); }
.dot-gray, .dot.gray { background: #9AA3BC; }

/* ---------- ปุ่ม: หนึ่งปุ่มหลัก (เข้ม) ต่อหน้า ปุ่มรองเป็นแบบขอบ/จาง ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); padding: .6rem 1.25rem;
  border-radius: 12px; border: 2px solid transparent; background: var(--navy); color: var(--on-brand); font: inherit; font-weight: 600;
  line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  box-shadow: 0 1px 2px rgba(23, 44, 116, .18);
}
.btn:hover { background: var(--navy-600); color: var(--on-brand); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { box-shadow: var(--focus); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--sky-soft); color: var(--navy-dark); border-color: var(--sky); }
.btn-accent { background: var(--sky); color: var(--navy-dark); border-color: var(--sky); box-shadow: none; font-weight: 700; }
.btn-accent:hover { background: var(--sky-600); color: #fff; border-color: var(--sky-600); }
.btn-good { background: var(--green); color: #fff; }
.btn-good:hover { background: #17693A; color: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.btn-danger:hover { background: #A81F1F; color: #fff; border-color: #A81F1F; }
.btn-small { min-height: 40px; padding: .35rem .9rem; font-size: var(--fs-sm); border-radius: 10px; }
.btn-big { min-height: 56px; padding: .8rem 1.5rem; font-size: 1.1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn[disabled], .btn.loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn.loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- การ์ด ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.card > h2:first-child, .card > .section-title:first-child { margin-top: 0; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid.two-fixed { grid-template-columns: 1fr 1fr; gap: .6rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: var(--s-3); }
.section-title h1, .section-title h2 { margin: 0; }
.page-head { margin-bottom: var(--s-4); }
.page-head p { color: var(--muted); margin: 0; }
.page-help { color: var(--muted); margin: -.35rem 0 1rem; }

/* ตัวเลขสำคัญ */
.stat { display: block; background: var(--surface); border-left: 6px solid var(--sky); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem .9rem .95rem; color: inherit; text-decoration: none; }
.stat.good { border-left-color: var(--green); } .stat.warn { border-left-color: #F2B200; } .stat.bad { border-left-color: var(--red); }
.stat .label { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.stat .value { font-size: 1.75rem; font-weight: 700; color: var(--navy); line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: var(--fs-sm); color: var(--muted); }
a.stat:hover { border-color: var(--sky); box-shadow: var(--shadow-lg); transform: translateY(-1px); transition: var(--ease); }
.delta { display: inline-flex; align-items: center; gap: .2rem; font-size: var(--fs-sm); font-weight: 600; border-radius: var(--radius-pill); padding: 0 .5rem; }
.delta.up { color: var(--green); background: var(--green-bg); } .delta.down { color: var(--red); background: var(--red-bg); } .delta.flat { color: var(--gray-text); background: var(--gray-bg); }

/* แถบความคืบหน้า */
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: .35rem; }
.bar > span { display: block; height: 100%; background: var(--sky); border-radius: 6px; transition: width .3s; }
.bar.full > span { background: var(--green); }

/* ---------- ป้ายสถานะ (chip โทนอ่อน) ---------- */
.badge, .chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: var(--radius-pill); padding: .1rem .7rem; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; line-height: 1.5; border: 1px solid transparent; }
.badge.red { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.badge.yellow { background: var(--amber-bg); color: var(--amber-text); border-color: var(--amber-line); }
.badge.green { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.badge.blue, .chip { background: var(--blue-bg); color: var(--blue-text); border-color: var(--blue-line); }
.badge.gray { background: var(--gray-bg); color: var(--gray-text); border-color: var(--gray-line); }
.badge.money { background: #fff; color: var(--red); border-color: var(--red-line); }
.chip.auto { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }

/* ---------- แถบแจ้งเตือน ---------- */
.flash { display: block; overflow: hidden; border-radius: 12px; padding: .85rem 1.1rem; margin: 0 0 .9rem; border: 1px solid var(--blue-line); background: var(--blue-bg); color: var(--blue-text); font-weight: 600; }
.flash > .ico { float: left; margin: .28em .6rem 0 0; }
.flash > div { overflow: hidden; }
.flash ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.flash.ok { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.flash.err { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.flash.warn { background: var(--amber-bg); color: var(--amber-text); border-color: var(--amber-line); }
.errors { background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.errors ul { margin: .3rem 0 0; }
.alert-list { display: grid; gap: .5rem; margin: 0 0 1rem; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty .ico-wrap { width: 56px; height: 56px; border-radius: 50%; background: var(--sky-soft); color: var(--logo-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.empty .ico-wrap .ico { width: 26px; height: 26px; }
.empty strong { display: block; color: var(--text); font-size: 1.05rem; }
.table-wrap td[colspan].muted, table.t td[colspan].muted { text-align: center; padding: 1.6rem 1rem; color: var(--muted); }

/* ---------- ฟอร์ม: คอลัมน์เดียว ป้ายชื่ออยู่เหนือช่อง ---------- */
label.field { display: block; font-weight: 600; margin: 1rem 0 .3rem; color: var(--text); }
label.field .hint, .hint { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=month], input[type=time], input[type=password],
input[type=search], input[type=email], select, textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .85rem; font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: 12px; transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6884' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: var(--focus); }
input::placeholder, textarea::placeholder { color: #6C7592; }
input[type=file] { width: 100%; padding: .55rem; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); font: inherit; }
input[readonly] { background: var(--gray-bg); }
.in-sm { min-height: 40px; padding: .3rem .7rem; border-radius: 10px; }
.check { display: flex; gap: .6rem; align-items: center; margin-top: .9rem; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); flex: none; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap); padding: .4rem .6rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-weight: 600; line-height: 1.25; transition: var(--ease); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choice.good input:checked + span { background: var(--green); border-color: var(--green); }
.choice.bad input:checked + span { background: var(--red); border-color: var(--red); }
.quick-dates { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.transfer-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.transfer-form select, .transfer-form input[type=text], .transfer-form input[type=password], .transfer-form input[type=date], .transfer-form input[type=number] { width: auto; flex: 1 1 150px; min-height: 44px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; align-items: end; }
.filters label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .2rem; }
.filters input, .filters select { min-height: 46px; }
.gps-box { background: var(--sky-soft); border: 1px solid var(--blue-line); border-radius: 12px; padding: .8rem 1rem; margin-top: 1rem; font-size: .95rem; color: var(--blue-text); }
.gps-box.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.gps-box .btn { margin-top: .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- ตาราง: สะอาด หัวตารางอ่อน ตัวเลขชิดขวา ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.t th { text-align: left; color: var(--text); font-weight: 700; font-size: var(--fs-sm); padding: .6rem .75rem; white-space: nowrap; background: #E1EFF9; }
table.t th:first-child { border-radius: 8px 0 0 8px; } table.t th:last-child { border-radius: 0 8px 8px 0; }
table.t td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 7rem 1fr; } }

/* ---------- แท็บ / pager / ไทม์ไลน์ ---------- */
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; background: var(--gray-bg); border-radius: 14px; padding: .3rem; }
.tabs a { flex: 1 1 140px; text-align: center; padding: .6rem .8rem; border-radius: 11px; text-decoration: none; font-weight: 600; color: var(--gray-text); transition: var(--ease); min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.tabs a:hover { color: var(--navy); }
.tabs a.on { background: var(--surface); color: var(--navy-dark); box-shadow: var(--shadow-sm); }
.tabs .n { display: inline-block; min-width: 24px; padding: 0 .45rem; border-radius: 12px; background: var(--red); color: #fff; font-size: .8rem; text-align: center; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .time { color: var(--muted); font-size: var(--fs-sm); }
.feed .ico-cell { color: var(--logo-blue); padding-top: .15rem; }
.feed img.photo { max-width: 200px; border-radius: 12px; margin-top: .3rem; display: block; }
.timeline-sale { background: var(--green-bg); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .5rem; }
.reasons { margin: .4rem 0; padding-left: 1.2rem; }
.reasons li { margin: .1rem 0; }
.checklist-row { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.checklist-row .mark { width: 1.6rem; flex: none; padding-top: .1rem; }
.doc-thumb { max-width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid var(--line); }
.msg-box { width: 100%; min-height: 150px; }

/* ---------- การ์ดรายการ "ต้องตามใคร" ---------- */
.todo { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 6px solid var(--line-strong); padding: 1rem 1.1rem; margin-bottom: .8rem; }
.todo.red { border-left-color: var(--red); } .todo.yellow { border-left-color: #F2B200; } .todo.green { border-left-color: var(--green); }
.todo .head { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.todo .name { font-weight: 700; font-size: 1.1rem; flex: 1 1 200px; }
.todo .name a { color: var(--navy-dark); text-decoration: none; }
.todo .where { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.todo .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }

/* ---------- ตัวเลือกลูกค้า ---------- */
.picker-list { max-height: 46vh; overflow-y: auto; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.picker-item { display: block; position: relative; border-bottom: 1px solid var(--line); cursor: pointer; }
.picker-item:last-child { border-bottom: 0; }
.picker-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.picker-item .in { padding: .75rem 1rem; display: block; }
.picker-item input:checked + .in { background: var(--navy); color: #fff; }
.picker-item input:checked + .in .muted { color: #CBD3F5; }
.picker-item input:focus-visible + .in { box-shadow: inset 0 0 0 3px var(--sky); }
.picker-item .nm { font-weight: 600; }

/* ---------- ตัวเลือกสวิตช์ / segmented ---------- */
.seg { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.seg button { min-height: 44px; padding: .3rem 1rem; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; transition: var(--ease); }
.seg button:hover { border-color: var(--sky); }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg select { width: auto; min-height: 44px; border-radius: var(--radius-pill); font-weight: 600; color: var(--navy); }
.switches { display: flex; gap: .4rem; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .9rem; border-radius: var(--radius-pill); cursor: pointer; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; user-select: none; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch .sw { width: 36px; height: 20px; border-radius: 10px; background: #B9C0D8; position: relative; transition: var(--ease); flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: var(--ease); }
.switch input:checked + .sw { background: var(--logo-blue); }
.switch input:checked + .sw::after { left: 19px; }
.switch:has(input:checked) { border-color: var(--logo-blue); background: var(--sky-soft); }
.switch:has(input:focus-visible) { box-shadow: var(--focus); }

/* ---------- การเคลื่อนไหวเล็กน้อย: เคารพ prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* utility เล็ก ๆ (แทน inline style) */
.items-center { align-items: center; } .justify-center { justify-content: center; }
.my-0 { margin-block: 0; } .my-1 { margin-block: .5rem; }
.scroll-y-420 { max-height: 420px; overflow-y: auto; }
.w-110 { width: 110px; max-width: 100%; } .w-150 { width: 150px; max-width: 100%; }
.posting-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.gps-status { min-height: 1.2em; }
.break-any { overflow-wrap: anywhere; max-width: 22rem; }
input.cb-lg { width: 22px; height: 22px; min-height: 0; }
td.empty { padding: 1.6rem 1rem; }
td.empty strong { display: block; }
.in-md { min-height: 44px; }
.w-130 { width: 130px; max-width: 100%; } .w-140 { width: 140px; max-width: 100%; } .w-160 { width: 160px; max-width: 100%; }
.w-170 { width: 170px; max-width: 100%; } .w-200 { width: 200px; max-width: 100%; } .w-220 { width: 220px; max-width: 100%; } .w-260 { width: 260px; max-width: 100%; }
.d-inline { display: inline-block; } .self-center { align-self: center; }
.flex-2 { flex: 2 1 200px; } .flex-3 { flex: 3 1 260px; }
.fs-lg { font-size: 1.2rem; } .fs-xl { font-size: 1.4rem; } .fs-xxl { font-size: 2.2rem; }
a.card-link { display: block; text-decoration: none; color: inherit; }
.m-0-b { margin-bottom: 0; }
.ta-tall { min-height: 220px; }
img.img-200 { max-height: 200px; }
.card-danger { border: 2px solid var(--red-line); }
.card-soft { background: var(--sky-soft); box-shadow: none; }
.card-short { border-left: 6px solid var(--amber); }
tr.row-shade > td, .row-shade { background: var(--surface-2); }
.map-note-static { position: static; margin: .5rem 0; }
.cal-cell-pad { padding: .3rem .25rem; }

/* สถานะกำลังส่งข้อมูล */
.btn.loading { position: relative; pointer-events: none; opacity: .85; }
.btn.loading::after { content: ""; width: 1em; height: 1em; margin-left: .5rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
