* {
  box-sizing: border-box;
}
:root {
  font:
    100%/1.55 "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: #143d52;
  background: #f5fafe;
  color-scheme: light;
  --blue: #006c9f;
  --line: #c8dbe4;
  --pale: #e9f6fc;
}
body {
  margin: 0;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar,
main {
  max-width: 1190px;
  margin: auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.bar {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  width: 142px;
  height: auto;
  display: block;
}
main {
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
h1,
h2,
h3,
p {
  margin: 0 0 0.72em;
}
h1,
h2,
h3 {
  line-height: 1.13;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 675;
  letter-spacing: -0.045em;
  color: #123c56;
}
h2 {
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
}
.intro {
  padding: clamp(24px, 5vw, 54px) 0 20px;
}
.intro p {
  font-size: 1.15rem;
  color: #466374;
  max-width: 66ch;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(235px, 1fr);
  gap: 26px;
  align-items: start;
}
aside {
  background: #e7f5fb;
  border-top: 4px solid var(--blue);
  border-radius: 4px 4px 14px 14px;
  padding: 0 24px;
}
.side {
  padding: 23px 0;
}
.side + .side {
  border-top: 1px solid #c4dce7;
}
.side h2 {
  font-size: 1.12rem;
}
.side p:last-child {
  margin-bottom: 0;
}
dt {
  font-weight: 650;
}
dd {
  margin: 2px 0 12px;
  color: #426174;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
dl {
  margin-bottom: 0;
}
dd:last-child {
  margin-bottom: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 30px);
  margin: 0 0 18px;
}
input,
select,
textarea,
button {
  font: inherit;
}
.language {
  display: flex;
  gap: 8px;
  align-items: center;
}
.language span {
  font-size: 0.9rem;
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  border: 1px solid #839eae;
  background: white;
  border-radius: 6px;
  color: #153c52;
  padding: 8px 10px;
}
select {
  width: auto;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
button,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  font-weight: 650;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 7px;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #07587c;
}
.secondary {
  background: white;
  color: var(--blue);
  border-color: #92b5c7;
}
.secondary:hover {
  background: #edf8fc;
}
.danger {
  background: white;
  border-color: #ac3941;
  color: #932d35;
}
.danger:hover {
  background: #fff0ef;
}
button:disabled {
  background: #e4ecef;
  color: #506976;
  border-color: #d8e1e5;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #008bba;
  outline-offset: 3px;
}
.drop {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 2px dashed #80b4c9;
  background: #f2faff;
  border-radius: 10px;
  min-height: 154px;
  cursor: pointer;
  text-align: center;
  padding: 16px;
}
.drop:focus-within,
.drop.drag {
  outline: 3px solid #008bba;
  background: #dff4fd;
}
.drop input[type="file"] {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload-symbol {
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  background: #d9f1fb;
  border-radius: 50%;
  color: #006c9f;
  margin-bottom: 9px;
  font-weight: bold;
}
.drop > span:last-of-type,
.muted {
  color: #4c6777;
  font-size: 0.92rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.94rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-weight: 400;
}
.field select {
  width: 100%;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0 0;
  padding: 8px 12px;
}
legend {
  font-weight: 600;
  padding: 0 6px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  line-height: 1.35;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}
summary {
  font-weight: 650;
  cursor: pointer;
  min-height: 48px;
  padding: 10px 0;
  color: #134967;
}
.terms {
  white-space: pre-wrap;
  max-height: 30rem;
  overflow: auto;
  overflow-wrap: anywhere;
  background: #f5fafe;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 16px;
}
#submit {
  margin-top: 12px;
}
.notice,
.error,
.success {
  padding: 13px 16px;
  border-radius: 6px;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.notice {
  background: #fff5d8;
  border-left: 4px solid #a57712;
}
.error {
  background: #fff0ee;
  border-left: 4px solid #a63735;
  color: #792823;
}
.success {
  background: #edf8ed;
  border-left: 4px solid #397e43;
}
.info {
  background: #e5f3fa;
  border-left: 4px solid var(--blue);
  padding: 13px 16px;
  border-radius: 6px;
  margin: 0 0 18px;
}
input[type="file"] {
  min-height: 48px;
  max-width: 100%;
}
input::file-selector-button {
  min-height: 48px;
}
.file,
.record {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.file:first-child {
  margin-top: 16px;
}
.record:last-child,
.file:last-child {
  padding-bottom: 0;
}
.row,
.actions,
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row {
  justify-content: space-between;
}
.tools {
  align-items: end;
}
.tools .field {
  flex: 1;
  min-width: min(180px, 100%);
}
.actions {
  margin: 10px 0;
}
.file strong,
.record strong {
  overflow-wrap: anywhere;
}
.mini {
  font-size: 0.9rem;
  padding: 6px 12px;
}
.mono,
code {
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
progress {
  display: block;
  margin: 5px 0 0;
  width: 100%;
  height: 14px;
  accent-color: var(--blue);
}
a {
  color: #005b85;
  overflow-wrap: anywhere;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 12px;
  margin: 0;
}
.metrics div {
  border-left: 3px solid #51b6d9;
  padding: 4px 12px;
  background: #f5fafe;
}
.metrics dt {
  font-size: 0.88rem;
  font-weight: 500;
}
.metrics dd {
  color: #123c56;
  font-size: 1.45rem;
  font-weight: 650;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--pale);
  padding: 12px;
  max-height: 32rem;
  overflow: auto;
}
video {
  max-width: 100%;
  max-height: 420px;
}
.login {
  max-width: 560px;
}
.gap {
  margin-top: 16px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .bar,
  main {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .bar {
    min-height: 72px;
  }
  .logo {
    width: 112px;
  }
  .language span {
    display: none;
  }
  aside {
    padding: 0 18px;
  }
  .intro {
    padding-top: 26px;
  }
  .card {
    border-radius: 10px;
  }
  .intro p {
    font-size: 1.03rem;
  }
}
@media (max-width: 510px) {
  .fields,
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .file > .row {
    align-items: start;
  }
  .terms {
    max-height: 20rem;
  }
  .language select {
    max-width: 110px;
  }
  .actions .button,
  .actions button {
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
