:root {
  --bg: #fff; --ink: #39617C; --soft: rgba(57, 97, 124, .84); --accent: #ED9439;
  --rule: #E2D3BC; --rule2: #EFDCBE; --wash: rgba(57, 97, 124, .05); --err: #B5533C;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif; font-weight: 300; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.top, main { max-width: 1120px; margin: 0 auto; padding: 16px 20px; }
.top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); }
.logo { display: block; width: 110px; height: auto; }
main { padding-bottom: 48px; }
h1 { font-size: 23px; font-weight: 300; letter-spacing: -.012em; line-height: 1.25; margin: 18px 0 6px; }
h2 { font-size: 12px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); margin: 26px 0 8px; }
p { line-height: 1.5; }
.muted { color: var(--soft); font-size: 14px; }
.err { color: var(--err); font-size: 14px; min-height: 1em; }
label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--soft); }
input, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 2px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.go, .go2 {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; margin-top: 12px; font-size: 16px; font-weight: 400; border-radius: 2px;
}
.go { color: #fff; background: var(--ink); border: 0; }
.go2 { color: var(--ink); background: var(--bg); border: 1px solid var(--ink); }
.go:disabled, .go2:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--ink); padding: 6px 0; font-size: 15px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; color: var(--soft); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule2); }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; font-weight: 400; overflow-wrap: anywhere; }
.row span { font-size: 13px; color: var(--soft); }
a.row { color: inherit; text-decoration: none; }
.tag { font-size: 11px; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.drop {
  display: block; margin-top: 18px; padding: 22px 16px; text-align: center; border: 1px dashed var(--accent);
  border-radius: 2px; color: var(--ink); cursor: pointer;
}
.drop.over { background: var(--wash); }
.drop input { display: none; }
.inline { display: flex; gap: 8px; }
.inline > * { margin-top: 0; }
.inline .go, .inline .go2 { width: auto; padding: 0 16px; min-height: 46px; }
.bar { height: 3px; background: var(--rule2); margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; }
.sm { font-size: 13px; }

/* v2: forms and prose stay at reading width; grids and the drive use the full width. */
main > h1, main > p, main > form, main > .or, main > .go, main > .go2, #members { max-width: 640px; }
.bar-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  font-size: 15px; font-weight: 400; border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.btn { color: #fff; background: var(--ink); border: 0; }
.btn2 { color: var(--ink); background: var(--bg); border: 1px solid var(--ink); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; border: 1px solid var(--rule); border-radius: 2px; }
.card-main { display: flex; flex-direction: column; gap: 4px; padding: 16px 52px 16px 16px; color: inherit; text-decoration: none; min-height: 112px; }
.card-main b { font-weight: 400; font-size: 17px; overflow-wrap: anywhere; }
.card-main span { font-size: 13px; color: var(--soft); }
.card-main .meta { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule2); }
.card:hover { border-color: var(--accent); }
.card .more { position: absolute; top: 4px; right: 4px; }

.more {
  min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ink);
  font-size: 22px; line-height: 1; border-radius: 2px;
}
.more:hover { background: var(--wash); }
.row .grow { color: inherit; text-decoration: none; }
.row .plain { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; }
.glyph { color: var(--accent); }
.drive { min-height: 120px; border-top: 1px solid var(--rule); margin-top: 8px; }
.drive.over { background: var(--wash); outline: 1px dashed var(--accent); }
.empty { padding: 22px 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 18px 0 6px; font-size: 20px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs b { font-weight: 300; }
.crumbs i { font-style: normal; color: var(--rule); }

.sheet {
  border: 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); width: 100%; max-width: 480px;
  margin: auto auto 0; border-radius: 6px 6px 0 0; color: var(--ink); background: var(--bg);
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 4px; } }
.sheet::backdrop { background: rgba(57, 97, 124, .35); }
.sheet-title { margin: 0 0 8px; font-weight: 400; overflow-wrap: anywhere; }
.sheet-item {
  display: block; width: 100%; min-height: 50px; text-align: left; padding: 0 4px; font-size: 16px;
  background: none; border: 0; border-bottom: 1px solid var(--rule2); color: var(--ink);
}
.sheet-item.danger, .danger { color: var(--err); }
.sheet-item.cancel { color: var(--soft); border-bottom: 0; }
.danger-bg { background: var(--err); }
.linkbox { padding: 10px 12px; background: var(--wash); font-size: 14px; overflow-wrap: anywhere; }
