:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #080a08;
  background: #f4f5f1;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}

.site-legal {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  color: #60675f;
  font-size: 0.82rem;
}

.site-legal a,
.legal-page a {
  color: #0d6b45;
}

.legal-page {
  width: min(760px, calc(100% - 2rem));
  margin: 4rem auto;
  line-height: 1.65;
}

.legal-page h1,
.legal-page h2 {
  color: #080a08;
}

.legal-page h2 {
  margin-top: 2rem;
}

.legal-page .eyebrow {
  color: #0d6b45;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}
h2 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1rem;
}
.muted {
  color: #60675f;
}
.loading {
  padding: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.brand img {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.brand b {
  color: #10e47b;
}
.eyebrow {
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 750;
  color: #0d6b45;
}
.button {
  border: 1px solid #d9ddd6;
  border-radius: 11px;
  padding: 11px 16px;
  background: #fff;
  color: #080a08;
  font-size: 0.9rem;
  font-weight: 650;
  min-height: 42px;
}
.button:hover {
  border-color: #728476;
}
.button.primary {
  background: #10e47b;
  border-color: #10e47b;
  color: #04130b;
}
.button.primary:hover {
  background: #a5ff76;
}
.button.dark {
  background: #080a08;
  color: #fff;
  border-color: #080a08;
}
.button.small {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 0.78rem;
}
.button.danger {
  color: #a52b2b;
}
.field {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  font-size: 0.82rem;
  font-weight: 650;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cdd4cb;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #080a08;
  outline: none;
}
.field textarea {
  min-height: 98px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #0d6b45;
  box-shadow: 0 0 0 3px #10e47b3b;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ebf0ea;
  color: #4d5b50;
  font-size: 0.72rem;
  font-weight: 680;
}
.pill.green {
  background: #d8fae5;
  color: #085b35;
}
.pill.gold {
  background: #fff5d4;
  color: #765a05;
}
.pill.red {
  background: #ffe7e2;
  color: #a23b2a;
}
.auth-screen {
  min-height: 100vh;
  background: #080a08;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  padding: 54px min(6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 60% 42%, #0d6b4550, transparent 48%), #080a08;
}
.auth-art h1 {
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  max-width: 700px;
}
.auth-art h1 span {
  color: #10e47b;
}
.auth-art p {
  max-width: 480px;
  color: #b7c0b8;
  line-height: 1.65;
}
.auth-panel {
  background: #f4f5f1;
  color: #080a08;
  display: grid;
  place-items: center;
  padding: 35px;
}
.auth-card {
  width: min(100%, 470px);
  background: #fff;
  border: 1px solid #d9ddd6;
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 30px 70px #0001;
}
.auth-card .eyebrow {
  margin-bottom: 16px;
}
.auth-card p {
  color: #60675f;
  line-height: 1.6;
}
.auth-card .button {
  width: 100%;
  margin-top: 8px;
}
.auth-card .hint {
  font-size: 0.75rem;
  margin: 20px 0 0;
}
.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #0d100e;
  color: #f1f5f1;
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin: 0 9px;
}
.side-business {
  padding: 17px 11px;
  border-top: 1px solid #283129;
  border-bottom: 1px solid #283129;
}
.side-business small {
  display: block;
  color: #9dad9e;
  font-size: 0.7rem;
  margin-bottom: 4px;
}
.side-business strong {
  display: block;
  font-size: 0.91rem;
}
.side-business select {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #182019;
  color: #fff;
  border: 1px solid #354236;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  color: #aab7ab;
  padding: 12px 13px;
  text-align: left;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
}
.nav button:hover {
  background: #182019;
  color: #fff;
}
.nav button.active {
  background: #173824;
  color: #a5ff76;
}
.side-bottom {
  margin-top: auto;
  font-size: 0.78rem;
  color: #aab7ab;
  overflow-wrap: anywhere;
}
.side-bottom .button {
  margin-top: 14px;
  width: 100%;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 38px;
  background: #fff;
  border-bottom: 1px solid #d9ddd6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar small {
  color: #69746b;
}
.content {
  max-width: 1380px;
  margin: auto;
  padding: 40px;
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.heading h1 {
  margin: 7px 0 9px;
}
.heading p {
  margin: 0;
  color: #60675f;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid #d9ddd6;
  border-radius: 17px;
  padding: 21px;
  min-width: 0;
}
.card h2 {
  margin-bottom: 9px;
}
.card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #60675f;
}
.card small {
  color: #60675f;
}
.metric strong {
  font-size: 2rem;
  letter-spacing: -0.06em;
  display: block;
}
.metric small {
  display: block;
  margin-top: 5px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.8fr);
  gap: 17px;
}
.stack {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e9e3;
}
.row:last-child {
  border: 0;
}
.row strong {
  display: block;
  font-size: 0.91rem;
}
.row small {
  display: block;
  color: #6a746b;
  margin-top: 4px;
  font-size: 0.76rem;
}
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.capture {
  display: block;
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  object-position: top;
  background: #eef1ed;
  border: 1px solid #d9ddd6;
  border-radius: 10px;
}
.capture-wrap {
  position: relative;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  background: #10e47b;
  color: #04130b;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 7px #0005;
}
.comment {
  padding: 16px 0;
  border-top: 1px solid #e5e9e3;
}
.comment:first-child {
  border-top: 0;
}
.comment header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.comment p {
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 10px 0;
}
.comment small {
  color: #69746b;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  border: 1px solid #d9ddd6;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}
.tabs button.active {
  background: #080a08;
  color: #fff;
  border-color: #080a08;
}
.notice {
  padding: 15px 18px;
  background: #e8f6ec;
  border: 1px solid #c4eacb;
  border-radius: 12px;
  color: #244b31;
  font-size: 0.85rem;
  line-height: 1.55;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: #60675f;
}
.empty h3 {
  color: #080a08;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  padding: 13px 16px;
  border-radius: 12px;
  background: #080a08;
  color: white;
  box-shadow: 0 10px 30px #0003;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  pointer-events: none;
  max-width: 380px;
  font-size: 0.84rem;
}
#toast.show {
  opacity: 1;
  transform: none;
}
#toast.error {
  background: #9b332d;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .sidebar .brand {
    font-size: 0;
    margin: 0 auto;
  }
  .sidebar .brand img {
    width: 36px;
    height: 36px;
  }
  .side-business,
  .side-bottom span {
    display: none;
  }
  .nav button {
    font-size: 0;
    text-align: center;
  }
  .nav button::first-letter {
    font-size: 1rem;
  }
  .topbar {
    padding: 0 22px;
  }
  .content {
    padding: 28px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 220px;
    padding: 28px;
  }
  .auth-art h1 {
    font-size: 2.7rem;
    margin: 25px 0;
  }
  .auth-art p {
    display: none;
  }
  .auth-panel {
    padding: 18px;
  }
  .auth-card {
    padding: 25px;
  }
  .shell {
    display: block;
    padding-bottom: 67px;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 67px;
    z-index: 20;
    padding: 5px 8px;
    background: #0d100e;
    display: block;
  }
  .sidebar .brand,
  .side-business,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
  }
  .nav button {
    font-size: 0.65rem;
    text-align: center;
    padding: 8px 5px;
    min-width: 58px;
  }
  .nav button::first-letter {
    font-size: 0.65rem;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .content {
    padding: 23px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading h1 {
    font-size: 2.35rem;
  }
  .card {
    padding: 17px;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .row-actions {
    width: 100%;
  }
  #toast {
    right: 14px;
    left: 14px;
    bottom: 80px;
    max-width: none;
  }
}
