@font-face {
  font-family: "Inter";
  font-weight: 400;
  src: url("fonts/inter-400.a32ace5dba84.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  src: url("fonts/inter-500.eb0312411b13.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  src: url("fonts/inter-600.84cf795ee940.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  src: url("fonts/mono-400.3d12b91dc3e0.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 400;
  src: url("fonts/space-400.1590f1cda578.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  src: url("fonts/space-500.4fb435f07dde.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  src: url("fonts/space-600.e553a4de3dac.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #1b1e24;
  --muted: #676c75;
  --accent: #ff5a2a;
  --line: #e1e3e7;
  --surface: #f3f4f6;
  --sidebar: #0a0b0d;
  --positive: #34634f;
  --danger: #ad341a;
  --radius: 6px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    14px/1.55 Inter,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  min-height: 40px;
  padding: 9px 17px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: #db4318;
  border-color: #db4318;
  color: #fff;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #e9ebef;
  border-color: #b8bdc5;
  color: var(--ink);
}
.small {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 10px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 0;
  font-weight: 400;
}
.text-button:hover {
  background: none;
  color: var(--danger);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8dce2;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  min-height: 42px;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}
input[type="file"] {
  padding: 12px;
}
input::placeholder {
  color: #8a8f98;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffad94;
  outline-offset: 1px;
  border-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #ecece8;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #262a31;
  overflow: auto;
  z-index: 20;
}
.brand {
  font-family:
    JetBrains Mono,
    monospace;
  font-size: 10px;
  color: #ff8a65;
  letter-spacing: 0.9px;
  margin-bottom: 25px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 30px;
}
.avatar {
  display: flex;
  width: 27px;
  height: 27px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 35px;
  font-size: 12px;
  color: #c3c5ca;
  border-radius: 4px;
  padding: 8px 10px;
}
.sidebar nav a.selected {
  background: #2b1c17;
  color: #ff9a78;
}
.sidebar nav a:hover {
  background: #1e2025;
  color: #fff;
}
.sidebar nav a > span {
  width: 16px;
  display: inline-flex;
  justify-content: center;
}
.nav-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  display: grid;
  gap: 10px;
}
.sidebar-bottom p {
  font-size: 10px;
  color: #848991;
  margin: 0 0 8px;
}
.sidebar-bottom a,
.logout {
  font-size: 11px;
  color: #a3a7af;
}
.logout {
  padding: 4px 0;
  min-height: 24px;
  background: none;
  border: 0;
  font-weight: 400;
}
.logout:hover {
  background: none;
  color: #fff;
}
.app {
  margin-left: 228px;
  min-height: 100vh;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(400px, 46%);
}
.search > span {
  font-size: 24px;
  color: var(--muted);
}
.search input {
  background: #fff;
  border: 0;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick > .subtle {
  font-size: 11px;
  margin-right: 10px;
}
.mobile-toggle {
  display: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 25px;
}
.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.page-heading .eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
}
.eyebrow {
  font-family:
    JetBrains Mono,
    monospace;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family:
    Space Grotesk,
    Inter,
    sans-serif;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
h1 {
  font-size: 27px;
  margin: 0;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  margin: 0 0 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  overflow: hidden;
}
.metric p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 5px;
}
.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1.5;
  font-family:
    Space Grotesk,
    sans-serif;
  font-weight: 500;
  letter-spacing: -1px;
}
.metric > span {
  color: var(--muted);
  font-size: 11px;
}
.metric-rule {
  height: 5px;
  margin-top: 20px;
  background: var(--line);
}
.metric-rule.orange {
  background: #ff9473;
}
.metric-rule.gray {
  background: #858b96;
}
.metric-rule.green {
  background: #658075;
}
.grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.two-one {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}
.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.grid > .panel {
  margin-bottom: 0;
}
.grid > div > .panel:last-child,
.grid > aside > .panel:last-child {
  margin-bottom: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-size: 11px;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font:
    9px JetBrains Mono,
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  max-width: 350px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
.table-panel {
  padding: 0;
}
.record-name {
  font-weight: 600;
  min-width: 100px;
  display: inline-block;
}
.subline {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.badge {
  font-size: 10px;
  background: #f0f1f3;
  color: #515762;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}
.badge[data-status="Hotovo"],
.badge[data-status="Dokončeno"] {
  background: #e8f0eb;
  color: var(--positive);
}
.agenda-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.agenda-item:last-child {
  border: 0;
}
.agenda-item > span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.agenda-item .eyebrow {
  font-size: 9px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.payment-row > div {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.payment-row > div:last-child {
  text-align: right;
}
.payment-row strong {
  font-weight: 500;
}
.payment-row span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.section-link {
  display: inline-block;
  font-size: 12px;
  color: var(--positive);
  margin-top: 18px;
}
.empty {
  color: var(--muted);
  padding: 24px 8px;
  font-size: 12px;
}
.empty-state {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state h2 {
  color: var(--ink);
  margin: 12px 0;
}
.empty-state p {
  max-width: 460px;
  margin: 0 auto 20px;
}
.empty-icon {
  font-size: 24px;
  color: var(--accent);
}
.subtle,
.caption,
.help {
  color: var(--muted);
  font-size: 11px;
}
.caption {
  margin: 14px 0;
}
.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  margin-bottom: 28px;
}
.welcome h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.welcome p {
  margin-bottom: 0;
}
.welcome .eyebrow {
  margin-bottom: 9px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.record-form {
  max-width: 1000px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  font-size: 13px;
}
.required {
  color: var(--accent);
}
.form-actions {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  margin-top: 30px;
}
.form-actions .subtle {
  margin-left: auto;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.filters input {
  max-width: 360px;
}
.filters select {
  max-width: 220px;
}
.text-link {
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.text-link + .text-link {
  margin-left: 8px;
}
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.status-strip a {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tabs a {
  padding: 0 0 14px;
  font-size: 12px;
}
.tabs .current {
  border-bottom: 2px solid var(--accent);
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 28px;
}
.details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.details dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.vertical-actions {
  display: grid;
  gap: 12px;
}
.vertical-actions form button {
  width: 100%;
}
.related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.related-row:last-child {
  border: 0;
}
.related-row > span {
  color: var(--muted);
}
.related-row strong {
  font-weight: 500;
}
.history-item {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  font-size: 12px;
}
.history-item strong {
  font-weight: 500;
}
.notice {
  padding: 14px 18px;
  background: #eaf0ec;
  border: 1px solid #cddfd1;
  border-radius: 5px;
  margin-bottom: 22px;
  font-size: 12px;
}
.notice.error,
.notice.warning {
  background: #fff0e8;
  border-color: #f0c5b7;
}
.notice.error {
  color: var(--danger);
}
.notice.success {
  color: #28563b;
}
.danger {
  color: var(--danger) !important;
}
.positive {
  color: var(--positive);
}
.errorlist {
  margin: 8px 0;
  padding: 0;
  list-style: none;
  color: var(--danger);
  font-size: 12px;
}
.vertical-form {
  display: grid;
  gap: 10px;
  max-width: 550px;
}
.vertical-form label {
  font-size: 12px;
  margin-top: 8px;
}
.vertical-form button {
  margin-top: 10px;
}
.vertical-form p {
  margin: 0;
}
.vertical-form p label {
  display: block;
  margin-bottom: 8px;
}
.vertical-form .helptext {
  font-size: 11px;
  color: var(--muted);
}
.vertical-form ul {
  font-size: 11px;
  color: var(--muted);
  padding-left: 20px;
}
.actions {
  display: flex;
  gap: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  font-size: 12px;
}
.timeline-item {
  border-left: 1px solid var(--line);
  padding: 0 0 25px 24px;
  margin-left: 5px;
}
.timeline-item h3 {
  margin: 6px 0;
}
.timeline-item p {
  font-size: 11px;
  color: var(--muted);
}
.alert-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.alert-row:last-child {
  border: 0;
}
.alert-row h2 {
  margin: 5px 0 8px;
}
.alert-row p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.alert-date {
  font-family:
    Space Grotesk,
    sans-serif;
  font-size: 22px;
  min-width: 90px;
}
.alert-date small {
  font:
    10px Inter,
    sans-serif;
  display: block;
}
.alert-row > span:last-child {
  margin-left: auto;
  font-size: 12px;
}
.chart-legend {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.income-dot,
.expense-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.expense-dot {
  background: #7b828e;
  margin-left: 15px;
}
.chart-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}
.chart-month {
  text-align: center;
  min-width: 0;
}
.chart-month > span {
  font:
    9px JetBrains Mono,
    monospace;
  color: var(--muted);
}
.chart-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 125px;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.bar {
  appearance: none;
  writing-mode: vertical-lr;
  width: 28px;
  height: 120px;
  border: 0;
  background: transparent;
}
.bar::-webkit-meter-bar {
  background: #f1f2f4;
  border: 0;
  border-radius: 3px;
}
.bar::-webkit-meter-optimum-value {
  background: var(--accent);
  border-radius: 3px;
}
.bar.expense::-webkit-meter-optimum-value {
  background: #7b828e;
}
.bar::-moz-meter-bar {
  background: var(--accent);
}
.totals {
  display: flex;
  gap: 35px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
}
.totals strong {
  display: block;
  font-family:
    Space Grotesk,
    sans-serif;
  font-size: 22px;
  margin-top: 4px;
}
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}
.app-footer .dot {
  background: var(--positive);
}
.auth-page {
  display: grid;
  grid-template-columns: 37% 63%;
  min-height: 100vh;
}
.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0a0b0d;
  color: #ecece8;
  padding: 42px 10% 34px;
}
.auth-brand {
  font-size: 14px;
  font-family:
    Space Grotesk,
    sans-serif;
  font-weight: 500;
}
.auth-story > div {
  padding: 60px 0;
}
.auth-story h1 {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
}
.auth-story .eyebrow {
  color: #9b9fa6;
  font-size: 9px;
}
.auth-story .serif {
  font:
    italic 34px Georgia,
    serif;
  color: #ff8a65;
  margin: 25px 0 30px;
}
.auth-story p:not(.eyebrow):not(.serif) {
  font-size: 12px;
  color: #a3a7af;
  line-height: 1.8;
}
.auth-story hr {
  border: 0;
  border-top: 1px solid #262a31;
  margin: 28px 0 20px;
}
.auth-story b {
  float: right;
  color: var(--accent);
}
.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 12%;
  min-width: 0;
}
.auth-private {
  position: absolute;
  right: 8%;
  top: 40px;
  font-size: 10px;
  color: var(--muted);
}
.auth-card {
  max-width: 380px;
  width: 100%;
  margin: auto;
}
.auth-card .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.auth-card h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}
.auth-card > p {
  font-size: 12px;
  color: var(--muted);
}
.auth-card .vertical-form {
  margin-top: 25px;
}
.auth-card input {
  font-size: 12px;
  border-color: #e1e3e7;
}
.auth-card button {
  justify-content: space-between;
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  margin-top: 5px;
}
.login-options .checkbox {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.auth-card .auth-note {
  font-size: 10px;
  margin-top: 30px;
}
.auth-main footer {
  position: absolute;
  bottom: 35px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 245px;
  background: var(--ink);
  color: #fff;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  max-width: 450px;
  width: calc(100% - 40px);
}
dialog::backdrop {
  background: #0008;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 24px;
}
dialog p {
  font-size: 13px;
}
main {
  min-width: 0;
}
section {
  scroll-margin-top: 24px;
}
button.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
}
@media (min-width: 1700px) {
  .app {
    padding: 0 55px;
  }
  .topbar {
    min-height: 100px;
  }
  h1 {
    font-size: 31px;
  }
  .metric strong {
    font-size: 35px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 26px 15px;
  }
  .app {
    margin-left: 205px;
    padding: 0 24px;
  }
  .quick > .subtle {
    display: none;
  }
  .two-one {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  }
  .grid {
    gap: 20px;
  }
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 26px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 36px;
  }
  .auth-main {
    padding: 70px 10%;
  }
  .auth-story {
    padding: 38px 9%;
  }
  .auth-card h2 {
    font-size: 26px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 228px;
    box-shadow: 15px 0 50px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app {
    margin-left: 0;
    padding: 0 22px;
  }
  .mobile-toggle {
    display: inline-flex;
    min-height: 34px;
    padding: 4px 11px;
  }
  .topbar {
    gap: 12px;
    min-height: 76px;
    margin-bottom: 22px;
  }
  .search {
    width: 100%;
  }
  .quick .small:not(:first-of-type) {
    display: none;
  }
  .two-one {
    grid-template-columns: 1fr;
  }
  .grid > section:not(.panel) {
    margin-bottom: 10px;
  }
  .auth-story {
    padding: 35px 10%;
  }
  .auth-story h1 {
    font-size: 31px;
  }
  .auth-story .serif {
    font-size: 26px;
  }
  .auth-main {
    padding: 70px 9%;
  }
  .auth-page {
    grid-template-columns: 39% 61%;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 13px;
  }
  .app {
    padding: 0 16px;
  }
  .topbar {
    gap: 10px;
  }
  .quick {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading > .actions {
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading > .button {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 35px;
    white-space: nowrap;
  }
  .page-heading p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 15px;
    padding: 15px 18px;
  }
  .metric p {
    grid-column: 1;
    align-self: end;
    margin: 0;
  }
  .metric strong {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 27px;
    align-self: center;
  }
  .metric > span {
    grid-column: 1;
    font-size: 10px;
  }
  .metric-rule {
    display: none;
  }
  .equal {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .panel {
    padding: 20px;
    margin-bottom: 18px;
  }
  .table-panel {
    padding: 0;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading a {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .field.wide {
    grid-column: auto;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .subtle {
    margin-left: 0;
    width: 100%;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    max-width: none;
  }
  .filters select {
    flex: 1;
  }
  .filters .text-link {
    margin-left: 0;
  }
  .tabs {
    gap: 18px;
  }
  .tabs a {
    font-size: 11px;
  }
  .welcome {
    flex-direction: column;
    align-items: flex-start;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .chart-columns {
    gap: 5px;
  }
  .chart-bars {
    padding: 0 4px;
  }
  .bar {
    width: 15px;
  }
  .chart-month > span {
    font-size: 8px;
  }
  .totals {
    gap: 20px;
  }
  .totals strong {
    font-size: 20px;
  }
  .alert-row {
    gap: 15px;
    flex-wrap: wrap;
  }
  .alert-date {
    min-width: 65px;
    font-size: 18px;
  }
  .alert-row > span:last-child {
    display: none;
  }
  .alert-row h2 {
    font-size: 16px;
  }
  .app-footer {
    font-size: 9px;
    gap: 12px;
  }
  .auth-page {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    min-height: 100svh;
    padding: 100px 28px;
  }
  .auth-card {
    max-width: 380px;
  }
  .auth-card h2 {
    font-size: 29px;
  }
  .auth-private {
    top: 30px;
    right: 28px;
  }
  .auth-main footer {
    left: 28px;
    right: 28px;
    bottom: 28px;
  }
  .login-options {
    font-size: 10px;
  }
  .details {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  td {
    padding: 15px 12px;
  }
  th {
    padding: 12px;
  }
  .brand {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.project-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.project-counts span {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.project-counts progress {
  width: 100%;
  height: 8px;
  appearance: none;
  margin-top: 10px;
  border: 0;
}
.project-counts progress::-webkit-progress-bar {
  background: #eceef1;
  border-radius: 2px;
}
.project-counts progress::-webkit-progress-value {
  background: #ff8a65;
  border-radius: 2px;
}
.project-counts progress::-moz-progress-bar {
  background: #ff8a65;
}
@media (max-width: 850px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}
