@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/manrope.woff2') format('woff2');
}
:root {
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #392f3d;
  background: #faf7fa;
  font-synthesis: none;
}
.pdf-area {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pdf-tools {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #fff;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pdf-tools button {
  padding: 8px 13px;
  font-size: 13px;
}
.pdf-surface {
  flex: 1;
  overflow: auto;
  min-height: 0;
  text-align: center;
  padding: 16px;
}
.pdf-surface canvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 5px #0003;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 4vw;
  background: #fff;
  border-bottom: 1px solid #e9dee9;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #776979;
  margin-top: 4px;
}
.mark {
  display: grid;
  place-items: center;
  background: #5f215e;
  color: #fff;
  width: 60px;
  height: 50px;
  border-radius: 14px;
  letter-spacing: 2px;
  font-size: 13px;
}
#context {
  margin-left: auto;
  font-size: 13px;
  color: #776979;
}
main {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 28px;
  min-height: 70vh;
}
footer {
  text-align: center;
  padding: 25px;
  color: #776979;
  font-size: 12px;
}
h1 {
  font-size: clamp(25px, 3vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 23px;
  margin-top: 0;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.6;
  color: #625665;
}
.intro {
  max-width: 630px;
  margin: 70px auto;
  padding: 36px;
  background: #fff;
  border: 1px solid #e9dee9;
  border-radius: 18px;
}
.note {
  font-size: 13px;
  color: #776979;
}
button,
.button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: #5f215e;
  color: #fff;
  border-radius: 8px;
  padding: 12px 19px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #f0e7f0;
  color: #5f215e;
}
.danger {
  background: #a2333c;
}
input,
select {
  font: inherit;
  padding: 12px;
  border: 1px solid #cfc1d0;
  border-radius: 7px;
  background: #fff;
  width: 100%;
  color: inherit;
}
label {
  display: block;
  font-size: 14px;
  margin: 15px 0 8px;
}
label input[type='checkbox'] {
  width: auto;
  margin-right: 10px;
}
form button {
  margin-top: 18px;
}
.error {
  padding: 14px;
  border-radius: 8px;
  background: #fff0ef;
  color: #842c2c;
  white-space: pre-wrap;
  margin: 18px 0;
}
.success {
  padding: 18px;
  background: #eaf6ef;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
  align-items: center;
}
.toolbar input,
.toolbar select {
  width: auto;
  flex: 1;
  min-width: 180px;
}
.layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.person {
  background: #fff;
  color: #28464e;
  text-align: left;
  border: 1px solid #d9e5e8;
  padding: 17px;
  display: block;
}
.person small {
  display: block;
  font-weight: 400;
  margin-top: 6px;
  font-size: 12px;
}
.person.active {
  border: 2px solid #5f215e;
  background: #edf6f6;
}
.panel {
  background: #fff;
  border: 1px solid #e9dee9;
  border-radius: 14px;
  padding: 27px;
  min-width: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0;
}
.fields div {
  overflow-wrap: anywhere;
}
.fields dt {
  color: #6c818a;
  font-size: 12px;
  margin-bottom: 5px;
}
.fields dd {
  margin: 0;
  font-size: 14px;
}
.file {
  border-top: 1px solid #e2e9eb;
  padding: 18px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}
.file-info {
  flex: 1;
  overflow-wrap: anywhere;
}
.file small {
  display: block;
  color: #76878e;
  margin-top: 5px;
}
.file button {
  font-size: 13px;
  padding: 9px 12px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #edf2f4;
}
.muted {
  color: #72868e;
}
dialog {
  padding: 0;
  border: 1px solid #becdd3;
  border-radius: 12px;
  width: 94vw;
  max-width: 1800px;
  height: 93vh;
  max-height: 95vh;
}
dialog::backdrop {
  background: #142d3bcc;
}
.viewer-head {
  display: flex;
  padding: 14px 20px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #e9dee9;
  height: 76px;
}
.viewer-head strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-head button {
  flex-shrink: 0;
}
#file-content {
  height: calc(100% - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #e8edef;
}
#file-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#file-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#file-content pre {
  white-space: pre-wrap;
  align-self: start;
  width: 100%;
  padding: 25px;
  margin: 0;
  background: #fff;
  line-height: 1.65;
  font-family: inherit;
  font-size: 14px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.filters label {
  margin: 0;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #e0e8eb;
  vertical-align: top;
}
th {
  font-size: 12px;
  color: #667f89;
}
td small {
  display: block;
  margin-top: 5px;
  color: #6e838d;
}
.share {
  border-top: 1px solid #e9dee9;
  padding: 18px 0;
}
.checklist {
  max-height: 250px;
  overflow: auto;
}
.checklist label {
  padding: 6px;
}
.status {
  font-size: 13px;
}
a {
  color: #5f215e;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #5db2c5;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    gap: 10px;
    padding: 18px;
  }
  #context {
    display: none;
  }
  main {
    padding: 0 16px;
    margin-top: 25px;
  }
  .intro {
    padding: 26px;
    margin: 35px auto;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .list {
    max-height: 280px;
    overflow: auto;
  }
  .panel {
    padding: 20px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .file {
    flex-wrap: wrap;
  }
  .file-info {
    flex-basis: 100%;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar input,
  .toolbar select {
    width: 100%;
  }
  dialog {
    width: 98vw;
    height: 94vh;
  }
  .viewer-head {
    padding: 12px;
  }
  .brand {
    font-size: 14px;
  }
}

header {
  padding: 18px max(28px, calc((100vw - 1400px) / 2));
  box-shadow: 0 2px 10px #5f215e0a;
}
.brand img {
  display: block;
  width: 172px;
  height: auto;
}
.portal-label {
  padding-left: 24px;
  border-left: 1px solid #e9dee9;
  color: #5f215e;
  font-size: 14px;
}
h1,
h2,
h3 {
  color: #5f215e;
}
.intro {
  position: relative;
  border-radius: 22px;
  border-top: 4px solid #eb5759;
  box-shadow: 0 14px 45px #5f215e08;
  padding: 38px;
}
.home-notice {
  max-width: 780px;
  margin: 70px auto;
  padding: 52px;
  overflow: hidden;
}
.home-notice:after {
  content: '';
  position: absolute;
  width: 150px;
  height: 60px;
  border-radius: 100% 0 100% 0;
  background: #eb57591c;
  right: -20px;
  top: 15px;
  transform: rotate(-25deg);
  pointer-events: none;
}
.home-notice h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  max-width: 560px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b33350;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.home-notice .toolbar {
  margin-top: 28px;
  gap: 24px;
  align-items: center;
}
.text-link {
  color: #5f215e;
  font-size: 14px;
  text-underline-offset: 4px;
}
button,
.button {
  border-radius: 10px;
  transition: background-color 0.15s;
}
:focus-visible {
  outline: 3px solid #eb5759;
  outline-offset: 3px;
}
.otp-input {
  font-size: 25px;
  letter-spacing: 8px;
  max-width: 300px;
}
.resend-form {
  margin-top: 12px;
}
.resend-form button {
  background: #f0e7f0;
  color: #5f215e;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.settings-card {
  padding: 24px;
  border: 1px solid #e9dee9;
  border-radius: 16px;
}
.switch-control {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.switch-control input {
  width: 22px;
  height: 22px;
  accent-color: #5f215e;
}
.status-on {
  color: #27664c;
  font-weight: 700;
}
.bindings {
  margin-top: 32px;
}
.binding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e9dee9;
}
.binding-row p {
  margin: 6px 0;
}
.binding-row small {
  color: #776979;
}
footer {
  background: #5f215e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(28px, calc((100vw - 1320px) / 2));
  text-align: left;
}
footer img {
  width: 150px;
  height: auto;
}
footer span {
  font-size: 16px;
  font-weight: 500;
}
footer a {
  color: #fff;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  header {
    padding: 16px 20px;
    gap: 12px;
  }
  .brand img {
    width: 135px;
  }
  .portal-label {
    display: none;
  }
  main {
    padding: 0 20px;
    margin: 28px auto;
  }
  .intro,
  .home-notice {
    padding: 28px;
    margin: 40px auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-card {
    padding: 18px;
  }
  .binding-row {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  #context {
    font-size: 11px;
  }
}
