:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #25312a;
  background: #f7f9f8;
  font-synthesis: none;
  font-size: 14px;
  --accent: #b34726;
  --line: #dbe1dd;
  --muted: #667069;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 42px;
  border-radius: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  background: #fff;
  color: inherit;
}
button:hover {
  background: #f0f3f1;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 20px;
  top: -60px;
  background: #fff;
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
header {
  height: 94px;
  max-width: 1224px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.mark {
  background: #25312a;
  color: #fff;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 29px;
  font-weight: 500;
}
.brand-caption {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-top: 1px;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 20px;
}
.test-label {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1224px;
  margin: auto;
  padding: 36px 32px 64px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.6;
}
.page-head .notice {
  max-width: 300px;
  padding-top: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  background: #fff;
  border-block: 1px solid var(--line);
}
.create-pane {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.detail-pane {
  padding: 28px 34px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
}
.section-head button {
  font-size: 12px;
}
form {
  display: grid;
  gap: 19px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #c7d0ca;
  background: #fff;
  color: inherit;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
}
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  min-width: 0;
}
legend {
  padding: 0;
  font-size: 12px;
  margin-bottom: 13px;
}
.mode {
  gap: 12px;
  margin-bottom: 2px;
}
.mode label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary:hover {
  background: #983b20;
}
.quiet {
  font-weight: 500;
  background: transparent;
}
.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
#amount-help {
  margin-top: -13px;
}
.error {
  color: #9f3024;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.error:empty {
  display: none;
}
.empty {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  padding: 38px 0;
}
.payment-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}
.payment-summary strong {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
  margin-right: 4px;
}
.status {
  font-size: 12px;
  color: #73541e;
  background: #faf5e9;
  padding: 5px 8px;
  border-radius: 3px;
}
.status[data-status="succeeded"] {
  color: #2f6948;
  background: #edf5ef;
}
.status[data-status="failed"] {
  color: #9a392f;
  background: #faf0ed;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.facts {
  margin: 24px 0;
}
.facts > div,
dl > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  margin: 11px 0;
  font-size: 12px;
  line-height: 1.6;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
.requisites {
  padding-block: 22px;
  border-block: 1px solid var(--line);
}
.requisites dl {
  margin: 0 0 16px;
}
.requisites button {
  font-size: 12px;
}
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.detail-actions button {
  font-size: 12px;
}
.events {
  margin-top: 28px;
}
#events {
  padding: 0;
  list-style: none;
  margin: 0;
}
#events li {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 16px;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
#events time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#events span {
  overflow-wrap: anywhere;
}
.orders {
  margin-top: 32px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 0;
}
td:nth-child(3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
td button {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: Consolas, monospace;
  min-height: 28px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 400;
}
td button:hover {
  text-decoration: underline;
  background: transparent;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.login {
  max-width: 360px;
  margin: 65px auto 100px;
}
.login h1 {
  font-size: 25px;
  margin-bottom: 30px;
}
.global-message {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
  color: var(--muted);
}
@media (max-width: 760px) {
  header {
    height: 80px;
    padding: 0 20px;
  }
  main {
    padding: 28px 20px 45px;
  }
  .page-head {
    display: block;
    margin-bottom: 25px;
  }
  .page-head .notice {
    max-width: none;
    margin-top: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .create-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
  }
  .detail-pane {
    padding: 24px 20px;
  }
  .facts > div,
  dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 15px 0;
  }
  .payment-summary strong {
    font-size: 27px;
  }
  .header-end {
    gap: 10px;
  }
  .test-label {
    font-size: 10px;
  }
  .header-end button {
    font-size: 11px;
    padding: 8px;
  }
  .login {
    margin-top: 50px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head button {
    max-width: 150px;
  }
  table {
    min-width: 560px;
  }
  input,
  select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background-color 0.12s ease;
  }
}
