/* USADATA tools hub. Colors, type and shapes follow the USADATA design system, matching quotes.usadata.com. */
:root {
  --navy: #10294C; --blue: #2E6BF0; --aqua: #05D8D2; --lime: #DEF16A;
  --ground: #F4F7FD; --surface: #FFFFFF; --text: #10294C; --muted: #5B6475; --border: #D5E1FC;
  --tint-blue: #D5E1FC; --tint-aqua: #CDF7F6; --tint-lime: #F7FAE4;
  --bad: #C8372D; --bad-bg: #FDECEA; --good: #17794A; --good-bg: #E3F8EB;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,41,76,.06), 0 6px 20px rgba(16,41,76,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 15px/1.5 Figtree, "DM Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: "DM Sans", Figtree, sans-serif; margin: 0; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
button, input { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid rgba(46,107,240,.45); outline-offset: 1px; }

/* top bar */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.top img { height: 26px; display: block; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand span { font: 500 14px "DM Sans", sans-serif; color: #C9D6EE; border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: #C9D6EE; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: var(--navy); background: #fff; }
.who { font-size: 13px; color: #C9D6EE; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.who button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.who button:hover { background: rgba(255,255,255,.1); }
main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid #B9C7E6; background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1F57D0; border-color: #1F57D0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.link { border: none; background: none; padding: 0; min-height: 0; color: var(--blue); }
input[type=text], input[type=email] { width: 100%; background: #fff; border: 1px solid #B9C7E6; border-radius: 10px; padding: 9px 11px; min-height: 40px; }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.signin .card { width: 100%; max-width: 420px; padding: 32px; text-align: center; }
.signin img { height: 30px; margin-bottom: 22px; }
.signin h1 { font-size: 22px; }
.signin p { color: var(--muted); margin: 8px 0 22px; }
.signin .btn { width: 100%; min-height: 46px; }
.signin .tag { margin-top: 20px; font: 500 12px "DM Sans", sans-serif; letter-spacing: .08em; color: var(--muted); }
.msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; text-align: left; }
.msg.bad { background: var(--bad-bg); color: var(--bad); }

/* launcher */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-height: 168px; text-decoration: none; color: var(--text); }
a.tile:hover { border-color: var(--blue); box-shadow: 0 1px 2px rgba(16,41,76,.06), 0 10px 28px rgba(46,107,240,.14); }
.tile p { color: var(--muted); font-size: 14px; flex: 1; }
.tile .go { font-weight: 600; color: var(--blue); font-size: 14px; }
.tile.soon { background: #FAFBFE; box-shadow: none; border-style: dashed; }
.tile.soon h3 { color: var(--muted); }
.pill { display: inline-block; align-self: flex-start; font: 500 11px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--tint-aqua); color: #065F5C; }
.pill.soon { background: var(--tint-lime); color: #4A5220; }
.sect { margin: 30px 0 12px; font: 500 12px "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }

/* a tool page inside the hub */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h1 { font-size: 20px; margin-right: 8px; }
.seg { display: inline-flex; border: 1px solid #B9C7E6; border-radius: 999px; overflow: hidden; background: #fff; }
.seg a { padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--navy); color: #fff; }
.toolbar .right { margin-left: auto; display: flex; gap: 14px; font-size: 14px; }
.frame { width: 100%; height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: block; }
main.wide { max-width: none; padding: 20px 24px 24px; }

/* people */
.tablewrap { overflow-x: auto; }
table.people { width: 100%; border-collapse: collapse; font-size: 14px; }
table.people th, table.people td { padding: 10px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.people th { font: 500 12px "DM Sans", sans-serif; color: var(--muted); white-space: nowrap; }
table.people th.c, table.people td.c { text-align: center; }
table.people tr.off td { color: var(--muted); }
table.people input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
table.people .em { color: var(--muted); font-size: 13px; }
.addrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.addrow label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; }
.addrow label span { display: block; margin-bottom: 5px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 14px; }
.picks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.picks input { width: 18px; height: 18px; accent-color: var(--blue); }
.loglist { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.loglist b { color: var(--text); font-weight: 600; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
#toast.on { opacity: 1; }
#toast.bad { background: var(--bad); }

@media (max-width: 720px) {
  .top-in { gap: 12px; padding: 0 16px; }
  .brand span, .who .nm { display: none; }
  main { padding: 20px 16px 60px; }
  .addrow { grid-template-columns: 1fr; }
  .frame { height: calc(100vh - 200px); }
}
