:root {
  font:
    15px/1.5 system-ui,
    sans-serif;
  color: #18283e;
  background: #f7f8f6;
  --border: #cbd2d7;
  --accent: #b83a25;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  flex-wrap: wrap;
}
header a {
  color: inherit;
}
header span {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
main {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
}
h1 {
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 16px;
}
h2 {
  font-size: 16px;
  margin: 0 0 14px;
}
p {
  margin: 8px 0 14px;
}
section {
  padding: 18px;
  border: 1px solid var(--border);
  background: white;
  margin-bottom: 16px;
}
.small {
  font-size: 12px;
  color: #506178;
}
label {
  display: block;
  font-size: 12px;
  margin: 8px 0;
}
input,
select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 8px;
  font: inherit;
  color: inherit;
  background: white;
  min-width: 0;
}
button,
.file {
  padding: 10px 12px;
  border: 1px solid #18283e;
  background: #18283e;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: center;
  display: block;
  width: 100%;
  margin: 8px 0;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.secondary {
  background: #f9fafb;
  color: #18283e;
  border-color: var(--border);
}
.file input[type="file"] {
  display: none;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.check input {
  width: auto;
  margin-top: 4px;
}
.row {
  display: flex;
  gap: 8px;
}
.row > * {
  flex: 1;
  min-width: 0;
}
article {
  min-width: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.toolbar label {
  width: 110px;
}
.toolbar label:first-child {
  width: 85px;
}
#viewport {
  height: 590px;
  overflow: auto;
  background-color: white;
  background-image:
    linear-gradient(#eaf0f4 1px, transparent 1px),
    linear-gradient(90deg, #eaf0f4 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border);
}
#stage {
  display: block;
  width: 100%;
  min-height: 100%;
  touch-action: none;
  user-select: none;
}
#stage circle {
  cursor: grab;
}
#message {
  padding: 10px 14px;
  background: #e8eef3;
  border-left: 3px solid #406783;
}
#problems:empty {
  display: none;
}
#problems {
  background: #fff0e8;
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
}
#result {
  font-variant-numeric: tabular-nums;
}
#result strong {
  display: block;
  font-size: 23px;
}
.review {
  margin-top: 20px;
}
.status-ok {
  color: #126944;
}
#dimensions button {
  font-size: 12px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a94732;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  aside section {
    margin: 0;
  }
  #viewport {
    height: 460px;
  }
  header {
    padding: 14px;
    font-size: 12px;
  }
  .row {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  aside {
    display: block;
  }
  aside section {
    margin-bottom: 12px;
  }
  .toolbar label {
    width: calc(33% - 10px);
  }
  #viewport {
    height: 380px;
  }
}

.vip-main{display:block;max-width:620px;margin:auto}.vip-main section{margin-top:24px}