@font-face {
  font-family: FS Me;
  src: url("/fonts/FSMe.otf");
}
@font-face {
  font-family: FS Me;
  src: url("/fonts/FSMe-Bold.otf");
  font-weight: 700;
}
:root {
  font-family:
    FS Me,
    Arial,
    sans-serif;
  color: #172c45;
  background: #f2f5f8;
  font-synthesis: none;
  --blue: #005b94;
  --line: #dce4ec;
  --muted: #617186;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
.button {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cbd7e2;
  background: #fff;
  color: #174669;
  padding: 12px 17px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
button:hover,
.button:hover {
  background: #eaf3f9;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ebbd26;
  outline-offset: 3px;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #004773;
}
.quiet {
  background: transparent;
}
.wide {
  width: 100%;
  margin-top: 18px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
header {
  height: 100px;
  padding: 0 4vw;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #124976;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  background: #005b94;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
}
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 44px 4vw 70px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1px;
  margin: 10px 0 12px;
  line-height: 1.15;
}
h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  line-height: 1.55;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.heading p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.environment {
  font-size: 12px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  color: var(--muted);
}
nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
nav button {
  justify-content: flex-start;
  padding: 22px 26px;
  font-size: 20px;
  text-align: left;
  gap: 22px;
  border: 1px solid var(--line);
}
nav button[aria-current="true"] {
  border: 2px solid var(--blue);
  background: #edf6fc;
  padding: 21px 25px;
}
nav small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.screen-icon {
  display: block;
  width: 39px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.portrait {
  width: 25px;
  height: 39px;
  margin: 0 7px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.playlist,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h3 span {
  background: #eaf0f5;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 8px;
  font-size: 12px;
}
.slide {
  display: grid;
  grid-template-columns: 30px 125px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.order {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.order button {
  padding: 4px 7px;
  font-size: 15px;
}
.thumb {
  width: 125px;
  height: 105px;
  object-fit: contain;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.slide-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.slide-title strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.text-button {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 0;
  color: var(--blue);
  font-weight: 400;
}
.danger {
  color: #a63838;
}
.fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
input,
select {
  width: 100%;
  padding: 9px 8px;
  margin-top: 6px;
  border: 1px solid #cbd7e2;
  border-radius: 4px;
  background: #fff;
  color: #243b53;
  font-size: 13px;
}
input[type="file"] {
  display: none;
}
.slide-actions {
  display: flex;
  gap: 18px;
  margin-top: 13px;
}
.panel {
  margin-bottom: 20px;
}
.panel h3 {
  margin-bottom: 17px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  background: #e9f4ed;
  color: #25633f;
  font-size: 12px;
}
.badge.draft {
  background: #fff3d8;
  color: #88601a;
}
.device {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.device small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a8794;
  margin-right: 7px;
}
.dot.online {
  background: #37885a;
}
.help {
  background: #eaf3f9;
}
.help ol {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.login {
  max-width: 470px;
  margin: 7vh auto 10vh;
}
.login h1 {
  font-size: 44px;
}
.login p {
  color: var(--muted);
  font-size: 15px;
}
.login form {
  margin-top: 30px;
}
.login label {
  font-size: 13px;
  margin-bottom: 18px;
}
.login input {
  font-size: 16px;
  padding: 14px;
}
.login button {
  width: 100%;
  justify-content: space-between;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 15px 4vw;
  background: #dff0e8;
  color: #21583d;
  border-bottom: 1px solid #bdd9ca;
}
#notice.error {
  background: #fce8e6;
  color: #8b302e;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(1000px, 90vw);
  max-height: 85vh;
  padding: 25px;
}
dialog::backdrop {
  background: #12263b99;
}
#library-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.media-card {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
}
.media-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #edf0f3;
}
.media-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-card .actions {
  gap: 8px;
}
.media-card button {
  padding: 7px 9px;
  font-size: 12px;
}
footer {
  padding: 24px 4vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  header {
    height: 80px;
  }
  .brand {
    font-size: 13px;
    gap: 10px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .brand small {
    font-size: 10px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  .environment {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  main {
    padding-top: 28px;
  }
  nav {
    gap: 8px;
  }
  nav button,
  nav button[aria-current="true"] {
    padding: 15px 12px;
    gap: 10px;
    font-size: 15px;
  }
  nav small {
    font-size: 10px;
  }
  .screen-icon {
    display: none;
  }
  .playlist,
  .panel {
    padding: 16px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .slide {
    grid-template-columns: 24px 1fr;
    gap: 12px;
  }
  .thumb {
    grid-column: 2;
    width: 100%;
    height: 140px;
  }
  .slide-content {
    grid-column: 2;
  }
  .order {
    grid-row: 1/3;
  }
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .actions {
    gap: 7px;
  }
  .actions button,
  .actions .button {
    font-size: 12px;
    padding: 10px;
  }
  aside {
    display: block;
  }
  .login h1 {
    font-size: 36px;
  }
  .brand small {
    max-width: 170px;
  }
  footer span {
    display: none;
  }
}
