@font-face { font-family: "Open Sans"; src: url(fonts/opensans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(fonts/opensans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(fonts/opensans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --brand: #b50600; --ink: #111; --sub: #5b5b5b; --line: #e6e6e6; --bg: #f6f6f7; --card: #fff; --r: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 "Open Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2 { line-height: 1.2; text-wrap: balance; margin: 0 0 16px; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 16px; text-wrap: pretty; }
a { color: var(--brand); }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
main.wrap { flex: 1; padding: 64px 0 96px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a, .link { font: 600 16px "Open Sans", sans-serif; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .link:hover { color: var(--brand); }
.nav form { margin: 0; }
.link.danger { color: var(--brand); font-size: 15px; }

.head { margin-bottom: 48px; }
.lede { font-size: 19px; color: var(--sub); max-width: 60ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; margin-bottom: 32px; }
.card.narrow { max-width: 520px; margin: 32px auto; padding: 48px; }
.center { text-align: center; }
.sub { color: var(--sub); font-size: 15px; }
.err { color: var(--brand); font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 12px; border: 0;
  background: var(--brand); color: #fff; font: 600 17px "Open Sans", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #8f0500; }
.btn.ms { background: #fff; color: var(--ink); border: 1px solid #c9c9c9; }
.btn.ms:hover { border-color: var(--ink); background: #fff; }
.actions { margin: 32px 0 0; }
.signin h1 { font-size: 32px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) and (min-width: 769px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tile svg { color: var(--brand); margin-bottom: 16px; }
.tile .t { font-size: 22px; font-weight: 700; }
.tile .d { color: var(--sub); font-size: 16px; }
.tile:hover { transform: translateY(-2px); border-color: #d5d5d5; box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.tile:focus-visible, .btn:focus-visible { outline: 3px solid rgba(181,6,0,.35); outline-offset: 2px; }

.stack label, .row label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.stack label { margin-top: 24px; }
input[type=text], input[type=email], input[type=password], input:not([type]) { font: 17px "Open Sans", sans-serif; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 10px; min-width: 0; }
input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.row label { flex: 1 1 240px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
input[type=checkbox]:disabled { cursor: not-allowed; opacity: .55; }

.scroll { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: 16px; }
.grid th { text-align: left; font-size: 14px; font-weight: 600; color: var(--sub); padding: 0 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid .c { text-align: center; }
.grid form { margin: 0; }
.who { display: flex; flex-direction: column; max-width: 260px; }
.tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.foot { text-align: center; font-size: 10px; color: var(--sub); padding: 24px; }

@media (max-width: 768px) {
  .wrap { width: calc(100% - 12%); }
  main.wrap { padding: 48px 0 72px; }
  h1 { font-size: 32px; }
  .bar { height: 68px; }
  .logo img { height: 32px; }
  .nav { gap: 20px; }
  .nav a, .link { font-size: 15px; white-space: nowrap; }
  .nav a[href="/"] { display: none; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile { display: grid; grid-template-columns: 28px 1fr; column-gap: 20px; row-gap: 2px; padding: 24px; align-items: center; }
  .tile svg { margin: 0; grid-row: span 2; }
  .tile .t { font-size: 19px; }
  .tile .d { font-size: 15px; }
  .card, .card.narrow { padding: 32px 24px; }
}
@media (max-width: 480px) { .nav a[href="/activity"] { display: none; } .logo img { height: 28px; } }
