:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #191c1f;
  --edge: #353a3e;
  --muted: #b2b7bb;
  --gold: #ffd238;
  --fg: #f6f6f4;
  font-family:
    Inter,
    Roboto,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
.btn {
  border: 1px solid #485055;
  background: #262a2d;
  color: var(--fg);
  padding: 0.76rem 1.1rem;
  border-radius: 7px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
}
button:hover,
.btn:hover {
  border-color: #a9afb2;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #161711;
}
.primary:hover {
  background: #ffdc64;
  border-color: #ffe383;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid #303336;
  background: #121416;
}
.bar,
main {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.bar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  white-space: nowrap;
  font-size: 1.39rem;
  font-weight: 850;
  letter-spacing: -0.07em;
  font-style: italic;
}
.brand b {
  color: var(--gold);
}
sup {
  font-size: 0.4em;
  vertical-align: top;
  letter-spacing: 0;
}
.brand small {
  border: 1px solid #676531;
  border-radius: 4px;
  color: #dfce69;
  font-size: 0.57em;
  letter-spacing: 0.03em;
  padding: 0.1em 0.3em;
  margin-left: 3px;
  font-style: normal;
}
.brandmark {
  display: inline-block;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 5px,
    transparent 5px 9px
  );
  width: 24px;
  height: 19px;
  transform: skew(-18deg);
  margin-right: 5px;
}
nav {
  display: flex;
  gap: 1.65rem;
  align-items: center;
}
nav a {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
  padding: 14px 0;
}
nav a[aria-current] {
  color: var(--gold);
}
main {
  min-height: 78vh;
  padding: 32px 0 66px;
  outline: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.13;
}
h1 {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  margin-bottom: 0.63rem;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.1rem;
}
p,
.small {
  line-height: 1.55;
  color: var(--muted);
}
.small {
  font-size: 0.89rem;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #393b3b;
  border-radius: 15px;
  background: #171919 url("/assets/studio.webp") center center/cover no-repeat;
  min-height: 365px;
  display: flex;
  align-items: center;
  padding: clamp(26px, 4.5vw, 66px);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.63), transparent 68%);
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.65vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  max-width: 11em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  color: #e0e1df;
  max-width: 30ch;
  margin: 12px 0 22px;
}
.hero .primary {
  padding: 0.85rem 1.3rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin: 32px 0 15px;
}
.section-title h2 {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.tile {
  text-align: left;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  background: linear-gradient(115deg, #202427, #191b1d);
  border: 1px solid #34393d;
  border-radius: 11px;
  padding: 20px;
  gap: 0;
  min-height: 157px;
  height: 100%;
  width: 100%;
}
.tile:hover {
  border-color: #9a8743;
  background: #272a2b;
}
.tile .iconbox {
  color: var(--gold);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #323127;
  border: 1px solid #494432;
  margin-bottom: 14px;
}
.tile strong {
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}
.tile span:last-child {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.89rem;
}
.mini .icon {
  width: 15px;
  height: 15px;
}
.return {
  color: var(--muted);
  display: inline-flex;
  padding: 7px 0 12px;
  font-size: 0.92rem;
}
.return:hover,
.link:hover {
  color: var(--gold);
}
.overview {
  margin: 8px 0 20px;
}
.overview h1,
.history h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  overflow-wrap: anywhere;
}
.overview p {
  margin: 0;
}
.steps {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 0 0 7px;
  margin: 0 0 18px;
  scrollbar-width: thin;
}
.steps a {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--edge);
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 650;
}
.steps a[aria-current] {
  background: #393522;
  border-color: #8c793b;
  color: var(--gold);
}
.work {
  max-width: 920px;
}
.panel,
.entry,
.box {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
}
.panel {
  padding: clamp(18px, 3vw, 32px);
}
.panel > p:first-of-type {
  margin-bottom: 20px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 14px 0 19px;
}
.wide {
  grid-column: 1/-1;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #e7e9e7;
}
input,
textarea,
select {
  border: 1px solid #474c50;
  border-radius: 6px;
  background: #101315;
  color: var(--fg);
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
textarea {
  line-height: 1.5;
  min-height: 90px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #92989c;
  font-weight: 400;
}
input[type="file"] {
  padding: 10px;
}
input[type="file"]::file-selector-button {
  border: 0;
  background: #353a3e;
  color: #f2f2ee;
  border-radius: 5px;
  padding: 8px;
  margin-right: 10px;
}
label:has(input[type="checkbox"]) {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #c9ced0;
  font-size: 0.9rem;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex: none;
}
.actions,
.foot,
.headingrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.headingrow,
.foot {
  justify-content: space-between;
}
.foot {
  margin: 15px 0;
}
.link {
  color: var(--gold);
  font-weight: 650;
}
.box {
  padding: 15px 17px;
  margin: 15px 0;
  background: #141719;
}
.box :last-child {
  margin-bottom: 0;
}
.box strong {
  color: var(--gold);
}
.box p {
  margin: 4px 0;
}
.analysis {
  border-left: 3px solid var(--gold);
  overflow-wrap: anywhere;
}
.analysis ul,
.report ul {
  padding-left: 1.3rem;
  line-height: 1.6;
}
.analysis h3 {
  margin: 18px 0 4px;
}
.output {
  margin-top: 16px;
}
.status {
  color: var(--muted);
  line-height: 1.5;
}
.error {
  color: #ffb8a8;
}
.risk-high,
.danger {
  color: #ffb8a8;
}
.risk-medium {
  color: var(--gold);
}
.risk-low {
  color: #a1e2bf;
}
.risk-unknown {
  color: #c4cbd0;
}
.notice {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 10px 0;
}
.checkrow {
  padding: 16px 0;
  border-top: 1px solid var(--edge);
}
.checkrow h3 {
  margin-bottom: 4px;
}
.checkrow p {
  margin: 0 0 9px;
}
.options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.options button {
  padding: 0.42rem 0.67rem;
  font-size: 0.86rem;
  min-height: 40px;
  background: #202326;
  color: #bbc0c3;
  font-weight: 550;
}
.options button[aria-pressed="true"] {
  border-color: #a6aeb1;
  color: white;
  background: #363b3e;
}
.options .ok[aria-pressed="true"] {
  background: #233d32;
  border-color: #589878;
  color: #c0f1d1;
}
.options .issue[aria-pressed="true"] {
  background: #4b3028;
  border-color: #bb765c;
  color: #ffd3c3;
}
.progress {
  width: 100%;
  height: 8px;
  accent-color: var(--gold);
  margin-bottom: 9px;
}
.jump {
  display: inline-flex;
  margin-top: 4px;
}
.entry {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
}
.entry a {
  flex: 1;
  min-width: 0;
}
.entry strong {
  display: block;
  overflow-wrap: anywhere;
}
.entry small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.entry .delete {
  padding: 7px 9px;
  background: transparent;
}
.empty {
  padding: 26px 0;
}
.history {
  max-width: 920px;
}
.financial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 16px;
  border: 1px solid #3c4145;
  border-radius: 8px;
}
.metric span,
.metric b {
  display: block;
}
.metric span {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric b {
  font-size: 1.35rem;
}
.signal {
  display: block;
  border-top: 1px solid var(--edge);
  padding: 10px 0;
}
.signal b {
  font-weight: 550;
}
.signal label {
  margin-top: 5px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 6px;
}
.skip:focus {
  top: 3px;
  z-index: 5;
  background: #131516;
  padding: 8px;
}
.recent {
  margin: 14px 0 0;
}
.recent a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f1dd8b;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.filehint {
  margin-top: 0;
}
.filelabel {
  font-weight: 650;
}
.danger {
  border-color: #805344;
}
dialog {
  background: #202427;
  color: var(--fg);
  border: 1px solid #545a5e;
  border-radius: 12px;
  width: min(420px, calc(100% - 30px));
  padding: 24px;
}
dialog::backdrop {
  background: #000a;
}
#toast:not(:empty) {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 11px 17px;
  background: #292f32;
  border: 1px solid #747a7d;
  border-radius: 8px;
  z-index: 10;
  font-size: 0.92rem;
  width: max-content;
  max-width: 95%;
}
.hintline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
  margin: 14px 0;
}
.hintline .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.print-title {
  display: none;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bar,
  main {
    width: calc(100% - 40px);
  }
  .hero {
    min-height: 320px;
  }
  .hero:before {
    background: linear-gradient(
      90deg,
      #090b0dde 0%,
      #090b0d55 52%,
      transparent 80%
    );
  }
}
@media (max-width: 600px) {
  .bar,
  main {
    width: calc(100% - 28px);
  }
  .bar {
    height: 60px;
  }
  .brand {
    font-size: 1.17rem;
  }
  .brandmark {
    width: 19px;
    height: 16px;
  }
  nav {
    gap: 13px;
  }
  nav a {
    font-size: 0.86rem;
  }
  main {
    padding: 14px 0 42px;
  }
  .hero {
    min-height: 330px;
    align-items: flex-start;
    padding: 23px;
    background-size: auto 76%;
    background-position: 76% 111%;
    background-color: #141617;
  }
  .hero:before {
    background: linear-gradient(
      180deg,
      #141617 1%,
      #141617e8 23%,
      transparent 64%
    );
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.36rem);
    max-width: 100%;
  }
  .hero p {
    display: none;
  }
  .hero .primary {
    margin-top: 3px;
  }
  .grid {
    gap: 8px;
  }
  .tile {
    padding: 13px;
    min-height: 151px;
  }
  .tile strong {
    font-size: 1rem;
  }
  .tile span:last-child {
    font-size: 0.87rem;
  }
  .tile .iconbox {
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
  }
  .section-title {
    margin: 24px 0 12px;
  }
  .section-title .mini {
    display: none;
  }
  .fields {
    gap: 12px;
  }
  .panel {
    padding: 15px;
  }
  .steps a {
    padding: 9px 11px;
  }
  .financial {
    gap: 7px;
  }
  .metric {
    padding: 11px;
  }
  .metric b {
    font-size: 1.1rem;
  }
  .overview {
    margin: 4px 0 12px;
  }
  .overview h1 {
    font-size: 1.85rem;
  }
  .checkrow {
    padding: 14px 0;
  }
  .actions button {
    flex-grow: 1;
  }
  .entry {
    padding: 13px;
  }
  .return {
    padding-top: 3px;
  }
}
@media (max-width: 375px) {
  .bar,
  main {
    width: calc(100% - 20px);
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 1.05rem;
  }
}
@media print {
  header,
  .steps,
  .foot,
  .return,
  .actions,
  .skip,
  #toast,
  .report button,
  .recent {
    display: none !important;
  }
  body,
  main,
  .panel,
  .box,
  .metric {
    color: #111 !important;
    background: white !important;
    border-color: #bbb !important;
  }
  main,
  .work {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  p,
  .small,
  .notice,
  .metric span,
  .box strong,
  .report h2 {
    color: #333 !important;
  }
  .print-title {
    display: block;
  }
  .panel {
    padding: 14px;
  }
  .box,
  .metric {
    break-inside: avoid;
  }
}
