/* CollarID "next" pages: the look of the redesigned configurator, remote
 * schedule and detachment pages (configure-next.html, schedule-next.html,
 * detach-next.html). One stylesheet, light only: these pages look the same
 * whatever theme the person chose on the rest of the site, so nothing here
 * depends on html.light, and collarid.css is not loaded beside it.
 *
 * Tokens are the phone app's (CollarIDApp src/theme/index.ts), which took
 * them from the public pages: sand ground, ink, one burnt-orange accent.
 * #b9491a is the fill under white text (the public #c9531d fails contrast
 * there); #a8410f is orange text on sand.
 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@400;500&display=swap');

:root{
  --ground:#eceae3; --surface:#faf8f3; --card:#ffffff; --ink:#24272a; --ink2:#565b5f; --muted:#6b6455;
  --line:rgba(58,70,80,.14); --line2:rgba(58,70,80,.28);
  --accent:#b9491a; --accent-text:#a8410f; --accent-tint:#fbeee6;
  --green:#047857; --green-tint:#e2f2ea; --amber:#92400e; --amber-tint:#fdf1cf; --red:#b42318;
  --slate:#3a4650; --off:#c9c5b8; --grey-tint:#e6e3da;
}
*{box-sizing:border-box}
html{background:var(--ground)}
.hidden{display:none !important}
[hidden]{display:none !important}
:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px;border-radius:6px}

body{margin:0;font-family:'IBM Plex Sans','Helvetica Neue',sans-serif;background:#eceae3;color:#24272a}
a{color:#a8410f}a:hover{color:#8a350c}
button{font-family:inherit;cursor:pointer}
input,select{font-family:inherit}
.ic{flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
/* The site's menu bar (nav.nav, .logo, .np, the dropdowns, the phone Menu
 * button) is site-nav.css, shared with the dashboard pages; each page loads
 * it just before this file. */
.head{display:flex;align-items:flex-end;gap:16px;padding:28px 40px 0}
.wrap{display:flex;gap:24px;padding:24px 40px 40px;align-items:flex-start}
.rail{width:236px;flex-shrink:0;display:flex;flex-direction:column;gap:2px}
.rail a,.rail span.off{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:#24272a;text-decoration:none;font-size:15px;line-height:20px;font-weight:500}
.rail a:hover{color:#24272a;background:rgba(58,70,80,.06)}
.rail a[aria-current]{background:#fbeee6;color:#a8410f;font-weight:600}
.rail span.off{color:#8d8775}
.rail .ic{color:#3a4650}
.rail a[aria-current] .ic{color:#a8410f}
.rail span.off .ic{color:#a39d8c}
.rail hr{width:100%;height:1px;border:0;background:rgba(58,70,80,.14);margin:8px 0}
.rail small{margin-left:auto;font-size:12px;line-height:16px;color:#6b6455;font-weight:500}
.main{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:16px}
.side{width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:12px}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid rgba(58,70,80,.14);border-radius:14px}
.soft{background:#faf8f3}
.pad{padding:20px;gap:12px}
.list{overflow:hidden}
.sec{margin:0;padding:6px 4px 0;font-size:12px;line-height:16px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#6b6455}
.h1{margin:0;font-family:'IBM Plex Serif',Georgia,serif;font-weight:500;font-size:34px;line-height:42px;letter-spacing:-.01em}
.h2{margin:0;font-family:'IBM Plex Serif',Georgia,serif;font-weight:500;font-size:24px;line-height:30px;letter-spacing:-.01em}
.h3{margin:0;font-size:16px;line-height:22px;font-weight:600}
.p{margin:0;font-size:15px;line-height:22px;color:#565b5f;text-wrap:pretty}
.p b,.s b{font-weight:600;color:#24272a}
.s{margin:0;font-size:13px;line-height:18px;color:#565b5f;text-wrap:pretty}
.cap{margin:0;font-size:13px;line-height:18px;color:#6b6455;text-wrap:pretty}
.mono{font-family:'IBM Plex Mono',Menlo,monospace}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:44px;padding:0 18px;border-radius:12px;font-size:15px;line-height:22px;font-weight:600;text-decoration:none;border:none;white-space:nowrap}
.btn.big{height:52px;font-size:16px;padding:0 22px}
.btn-p{background:#b9491a;color:#fff}.btn-p:hover{color:#fff}
.btn-s{background:transparent;color:#24272a;border:1.5px solid #3a4650}.btn-s:hover{color:#24272a}
.btn-q{background:transparent;color:#a8410f;padding:0 10px}
.btn-d{background:transparent;color:#b42318;border:1.5px solid #b42318}.btn-d:hover{color:#b42318}
.btn[disabled]{background:#dcd8cc;color:#6b6455;border:none;cursor:default}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;line-height:18px;font-weight:600;white-space:nowrap;flex-shrink:0}
.pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.pg{background:#e2f2ea;color:#047857}.pa{background:#fdf1cf;color:#92400e}.pn{background:#e6e3da;color:#565b5f}.po{background:#fbeee6;color:#a8410f}
.row{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 16px;color:#24272a;text-decoration:none;border-bottom:1px solid rgba(58,70,80,.14)}
.row:last-child{border-bottom:0}
a.row:hover{color:#24272a;background:#faf8f3}
.row>.ic:first-child{color:#3a4650}
.chev{color:#6b6455}
.rt{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1px}
.l{font-size:15px;line-height:20px;font-weight:500}
.fld{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:4px 14px 4px 16px;border-bottom:1px solid rgba(58,70,80,.14);font-size:15px;line-height:20px}
.fld:last-child{border-bottom:0}
.val{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px 0 14px;border:1px solid rgba(58,70,80,.28);border-radius:10px;background:#faf8f3;color:#24272a;font-size:15px;line-height:20px;font-weight:600;flex-shrink:0}
.val .ic{color:#565b5f}
.val small{font-family:'IBM Plex Mono',Menlo,monospace;font-size:12px;font-weight:400;color:#6b6455}
.tog{width:52px;height:44px;padding:8px 2px;border:none;background:transparent;flex-shrink:0}
.tog span{display:flex;box-sizing:border-box;width:48px;height:28px;padding:3px;border-radius:999px;background:#c9c5b8;justify-content:flex-start}
.tog[aria-pressed="true"] span{background:#047857;justify-content:flex-end}
.tog i{display:block;width:22px;height:22px;border-radius:50%;background:#fff}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tile{display:flex;flex-direction:column;gap:2px;padding:14px 16px;background:#fff;border:1px solid rgba(58,70,80,.14);border-radius:14px}
.tile .k{display:flex;align-items:center;gap:6px;font-size:13px;line-height:18px;color:#565b5f}
.tile .v{font-size:20px;line-height:28px;font-weight:600}
.note{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:14px;border:1px solid rgba(58,70,80,.14);background:#faf8f3}
.note.a{background:#fdf1cf;border-color:rgba(146,64,14,.28)}
.note.g{background:#e2f2ea;border-color:rgba(4,120,87,.28)}
.note.a .t{color:#92400e}.note.a .s{color:#5c3a0c}.note.a>.ic{color:#92400e}
.note.g .t{color:#03543d}.note.g .s{color:#1f4a3c}.note.g>.ic{color:#047857}
.note .t{font-size:15px;line-height:20px;font-weight:600}
.chk{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:22px}
.chk .ic{margin-top:2px}
.chip{display:inline-flex;align-items:center;height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(58,70,80,.28);background:transparent;color:#24272a;font-size:14px;font-weight:500}
.chip[aria-pressed="true"]{border:2px solid #b9491a;background:#fbeee6;color:#a8410f;font-weight:600}
.bar{display:block;height:6px;border-radius:3px;background:#e6e3da;overflow:hidden}
.bar b{display:block;height:6px;border-radius:3px;background:#b9491a}
.bar b.g{background:#047857}.bar b.a{background:#92400e}
.steps{display:flex;flex-direction:column;gap:8px}
.steps div{display:flex;gap:6px}
.steps i{flex:1 1 0;height:4px;border-radius:2px;background:#d3cfc2}
.steps i.on{background:#b9491a}
.foot{display:flex;align-items:center;gap:12px;padding:14px 20px;background:#faf8f3;border:1px solid rgba(58,70,80,.14);border-radius:14px}
.num{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#fbeee6;color:#a8410f;font-size:14px;line-height:18px;font-weight:600;flex-shrink:0}
table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px}
th{padding:10px 12px;font-size:12px;line-height:16px;font-weight:600;color:#6b6455;text-align:right;border-bottom:1px solid rgba(58,70,80,.14)}
td{padding:11px 12px;text-align:right;border-bottom:1px solid rgba(58,70,80,.14)}
th:first-child,td:first-child{text-align:left;padding-left:16px;font-weight:600}
th:last-child,td:last-child{padding-right:16px}
tr:last-child td{border-bottom:0}
.radar{position:relative;width:76px;height:76px;flex-shrink:0}
.radar .ring{position:absolute;inset:0;border-radius:50%;border:2px solid #b9491a;opacity:0;animation:ping 2.4s cubic-bezier(.2,.6,.4,1) infinite}
.radar .r2{animation-delay:.8s}.radar .r3{animation-delay:1.6s}
.radar .core{position:absolute;left:50%;top:50%;width:32px;height:32px;margin:-16px 0 0 -16px;border-radius:50%;background:#b9491a;color:#fff;display:flex;align-items:center;justify-content:center}
.radar.off .ring{animation:none;opacity:.4;border-color:#a39d8c;border-style:dashed}
.radar.off .r2{transform:scale(.7)}.radar.off .r3{transform:scale(.42)}
.radar.off .core{background:#a39d8c}
@keyframes ping{0%{transform:scale(.3);opacity:.95}100%{transform:scale(1);opacity:0}}
@media (prefers-reduced-motion: reduce){.radar .ring{animation:none;opacity:.5}.radar .r2{transform:scale(.7)}.radar .r3{transform:scale(.42)}}

/* ---- the site's menu: its look is site-nav.css; here it stays in view ---- */
.nav{position:sticky;top:0;z-index:30}

/* ---- forms ---- */
.in{height:44px;padding:0 12px;border:1px solid var(--line2);border-radius:10px;background:var(--surface);color:var(--ink);font-size:15px;line-height:20px;font-family:inherit;min-width:0}
select.in{padding-right:8px}
textarea.in{height:auto;padding:10px 12px;line-height:20px}
.in.mono{font-family:'IBM Plex Mono',Menlo,monospace;font-size:14px}
.in:disabled{color:var(--muted);background:var(--grey-tint)}
label.lab{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:20px;font-weight:600}
label.lab small{font-weight:400;font-size:13px;line-height:18px;color:var(--muted)}
.tog{border-radius:999px}
button.val{font-family:inherit}

/* ---- a list to choose one from, of our own (NextUI.pickList) ---- */
.pick{display:flex;flex-direction:column;max-height:340px;overflow-y:auto;border:1px solid var(--line2);border-radius:10px;background:var(--surface)}
.pick-row{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:52px;padding:6px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;font-size:15px;line-height:20px}
.pick-row:last-child{border-bottom:0}
.pick-row:hover{background:#fff}
.pick-row .l{font-weight:500}
.pick-row .s{white-space:normal;overflow-wrap:anywhere}
.pick-row[aria-checked="true"]{background:var(--accent-tint)}
.pick-row[aria-checked="true"] .l{font-weight:600;color:var(--accent-text)}
.pick-row:focus-visible{outline-offset:-3px}

/* ---- dialog and toast ---- */
.dlg-back{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(36,39,42,.45)}
.dlg{display:flex;flex-direction:column;gap:14px;width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow:auto;padding:24px;background:#fff;border-radius:16px;box-shadow:0 16px 48px rgba(36,39,42,.28)}
.dlg .acts{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.toast{position:fixed;left:50%;bottom:24px;z-index:70;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:12px 16px;border-radius:12px;background:var(--ink);color:#fff;font-size:15px;line-height:20px;box-shadow:0 8px 24px rgba(36,39,42,.28)}

/* ---- folds to a phone ---- */
@media (max-width: 1100px){
  .wrap{flex-wrap:wrap}
  .side{width:100%;flex-direction:row;flex-wrap:wrap}
  .side>*{flex:1 1 300px}
}
@media (max-width: 820px){
  .head{padding:20px 16px 0;flex-wrap:wrap}
  .wrap{padding:16px 16px 32px;gap:16px;flex-direction:column;align-items:stretch}
  .rail{width:100%;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;gap:0}
  .rail a,.rail span.off{min-height:52px;border-radius:0;border-bottom:1px solid var(--line);padding:0 16px}
  .rail hr{display:none}
  .main{flex:1 1 auto;width:100%}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h1{font-size:28px;line-height:34px}
  .two{grid-template-columns:minmax(0,1fr) !important}
  .foot{flex-wrap:wrap}
  .fld{flex-wrap:wrap}
}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
@media (max-width: 820px){.three{grid-template-columns:minmax(0,1fr)}}
