:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --line: #e2e7ee;
  --line-soft: #edf0f4;
  --text: #172033;
  --text-2: #4a5568;
  --text-3: #8a94a6;
  --accent: #0e8f7d;
  --accent-strong: #0a7366;
  --accent-soft: #e5f5f1;
  --accent-ring: rgba(14, 143, 125, 0.2);
  --ok: #138a4b;
  --ok-soft: #e3f5ea;
  --warn: #a5620f;
  --warn-soft: #fdf1dc;
  --danger: #cc3a30;
  --danger-soft: #fdebea;
  --muted-soft: #eef1f5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

body[data-division="ai"] {
  --accent: #2f62d8;
  --accent-strong: #244fb6;
  --accent-soft: #e9effc;
  --accent-ring: rgba(47, 98, 216, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.boot,
.loading {
  padding: 48px;
  color: var(--text-3);
  text-align: center;
}

.muted {
  color: var(--text-3);
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

.nowrap {
  white-space: nowrap;
}

.error-text {
  color: var(--danger);
}

/* layout */

.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.division-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.division-card b {
  display: block;
  font-size: 14px;
}

.division-card span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

.division-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-title {
  padding: 0 10px 4px;
  font-size: 12px;
  color: var(--text-3);
}

.nav-item {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.sidebar-note {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.6;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}

.crumbs b {
  color: var(--text);
  font-weight: 600;
}

.crumb-sep {
  color: var(--line);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.user b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.user span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.2;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.content {
  width: 100%;
  max-width: 1440px;
  padding: 24px 28px 56px;
}

/* page */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title {
  min-width: 0;
}

.back {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
}

.back:hover {
  color: var(--accent-strong);
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.page-sub {
  margin-top: 6px;
  max-width: 760px;
  color: var(--text-3);
  font-size: 13px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.grid-2 > .card,
.grid-2 > .card + .card {
  margin: 0;
}

/* cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card + .card,
.card + form,
form + .card,
.kpis + .card,
.tabs + .card {
  margin-top: 16px;
}

form > .card + .card {
  margin-top: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 16px 18px;
}

.card-flush {
  padding: 0;
}

.card-body > .check + .check {
  margin-top: 14px;
}

/* kpis */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpis-inline {
  margin: 0;
}

.kpi {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kpis-inline .kpi {
  background: var(--surface-2);
  box-shadow: none;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-3);
}

.kpi-value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

.kpi.is-warn .kpi-value {
  color: var(--warn);
}

.kpi.is-danger .kpi-value {
  color: var(--danger);
}

.kpi.is-accent .kpi-value {
  color: var(--accent-strong);
}

.progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  appearance: none;
}

.progress::-webkit-progress-bar {
  background: var(--line-soft);
  border-radius: 999px;
}

.progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}

.progress::-moz-progress-bar {
  background: var(--accent);
}

.progress.is-danger::-webkit-progress-value {
  background: var(--danger);
}

.progress.is-danger::-moz-progress-bar {
  background: var(--danger);
}

/* tabs, toolbar, segmented */

.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.input-search {
  width: 320px;
  max-width: 100%;
  height: 34px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.seg a {
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.seg a.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.select-inline {
  width: auto;
  min-width: 150px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

/* tables */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: #fafbfd;
}

.table th.num,
.table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table td.empty {
  padding: 32px;
  color: var(--text-3);
  text-align: center;
}

.table td.note {
  max-width: 280px;
  color: var(--text-2);
  font-size: 13px;
}

.table tr.is-void td {
  color: var(--text-3);
}

.table tr.is-void td.num {
  text-decoration: line-through;
}

.table tr.is-warn-row td {
  background: #fffaf2;
}

.is-danger {
  color: var(--danger);
  font-weight: 600;
}

.is-adjusted {
  color: var(--warn);
  font-weight: 600;
}

.cell-main {
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}

a.cell-main:hover {
  color: var(--accent-strong);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.note-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 11px;
}

.note-tag.is-void {
  background: var(--muted-soft);
  color: var(--text-3);
}

.file-link {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* chips */

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--muted-soft);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-muted {
  background: var(--muted-soft);
  color: var(--text-3);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--surface-2);
  border-color: #cfd6e0;
}

.btn:focus-visible,
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b3322a;
  border-color: #b3322a;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--muted-soft);
  border-color: transparent;
  color: var(--text);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
  height: 40px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--muted-soft);
  color: var(--text);
}

/* forms */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.field-hint {
  color: var(--text-3);
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
}

.input.is-readonly {
  background: var(--surface-2);
  color: var(--text-2);
}

.textarea {
  height: auto;
  min-height: 72px;
  padding: 9px 11px;
  resize: vertical;
}

input[type="file"].input {
  height: auto;
  padding: 7px 11px;
}

.check,
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.check input,
.radio input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check b,
.radio b {
  display: block;
  font-weight: 600;
}

.check em,
.radio em {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.6;
}

.check.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.radios {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.props {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.props dt {
  color: var(--text-3);
}

.props dd {
  margin: 0;
}

.summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px;
}

.summary dt {
  color: var(--text-3);
}

.summary dd {
  margin: 0;
  font-weight: 550;
}

.callout {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}

.callout-info {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.callout-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.modal.is-wide {
  width: min(720px, 100%);
}

.modal.is-xwide {
  width: min(1040px, 100%);
}

.radios-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.price-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.price-group[hidden] {
  display: none;
}

.price-more summary {
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}

.price-more[open] summary {
  margin-bottom: 12px;
}

.price-cell .price-main {
  display: block;
  white-space: nowrap;
}

.price-main em {
  color: var(--text-3);
  font-style: normal;
}

.compare-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.compare-table {
  overflow: auto;
  max-height: 52vh;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h2 {
  font-size: 16px;
  font-weight: 650;
}

.modal.is-danger .modal-head h2 {
  color: var(--danger);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  overflow-y: auto;
}

.modal-body > .chip {
  align-self: flex-start;
}

.modal-intro {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.modal.is-danger .modal-intro {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: #8f2a22;
}

.modal-error {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 14px 14px;
  background: var(--surface-2);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline time {
  color: var(--text-3);
  font-size: 12.5px;
}

.timeline p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
}

/* toast */

#toast-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #172033;
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
}

.toast-error {
  background: var(--danger);
}

/* portal */

.portal {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 16px;
  background: radial-gradient(900px 480px at 15% -10%, var(--accent-soft), transparent 70%), var(--bg);
}

.portal-card {
  width: min(540px, 100%);
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.portal-card h1 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 650;
}

.portal-lead {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.pick {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

a.pick:hover {
  border-color: #c6cfdb;
  background: var(--surface-2);
}

.pick.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.pick.is-disabled {
  opacity: 0.6;
}

.pick-dot {
  width: 8px;
  height: 8px;
  margin-bottom: 4px;
  border-radius: 50%;
}

.pick-cc {
  background: #0e8f7d;
}

.pick-ai {
  background: #2f62d8;
}

.pick-name {
  font-size: 15px;
  font-weight: 650;
}

.pick-site {
  color: var(--text-3);
  font-size: 12px;
}

.pick-flag {
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 600;
}

.pick:not(.is-current) .pick-flag {
  color: var(--text-2);
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-demo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--text-3);
  font-size: 12.5px;
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .topbar {
    padding: 0 16px;
  }

  .content {
    padding: 18px 16px 40px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid,
  .picks {
    grid-template-columns: minmax(0, 1fr);
  }

  .user div {
    display: none;
  }
}
