@font-face {
  font-family: Golos;
  src: url(/golos.woff2);
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Prata;
  src: url(/prata.woff2);
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --ink: #2c2522;
  --wine: #9d3025;
  --rule: #c9bdab;
  --mute: #62584f;
  font:
    16px/1.5 Golos,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
::selection {
  background: #edd0be;
}
header {
  border-bottom: 1px solid var(--rule);
}
.frame,
main {
  max-width: 84rem;
  margin: auto;
  padding-inline: clamp(1rem, 5vw, 5rem);
}
.frame {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.frame img {
  display: block;
  object-fit: contain;
}
.division {
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
  color: var(--mute);
}
#signout {
  margin-left: auto;
}
main {
  padding-block: clamp(2rem, 7vh, 5rem);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h3 {
  font-size: 1.1rem;
}
em {
  color: var(--wine);
  font-style: normal;
}
button,
.button,
input {
  font: inherit;
}
button,
.button {
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover,
button:hover {
  background: #ebe1d3;
}
.primary {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  font-weight: 600;
}
.primary:hover {
  background: #82271e;
}
.quiet,
.close,
.guest {
  border-color: transparent;
}
.quiet,
.guest,
.danger {
  color: var(--wine);
}
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  color: var(--ink);
  border: 1px solid #a79885;
  border-radius: 3px;
  background: #fffcf5;
  padding: 0.65rem 0.8rem;
}
label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.95rem;
  font-weight: 550;
}
#auth {
  max-width: 29rem;
  margin: 5vh auto;
}
#signin {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
#signin .primary {
  justify-self: start;
  min-width: 8rem;
}
.heading,
.tools,
.drawerHead,
.actions,
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.heading {
  align-items: flex-end;
}
.heading p,
#stamp,
.state,
#page,
#empty {
  color: var(--mute);
}
#count {
  margin-top: 0.7rem;
}
.state {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.state::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #a18760;
}
.state.online::before {
  background: #547051;
}
.tools {
  margin: 2rem 0 1rem;
}
.search {
  width: min(27rem, 100%);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.guest {
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
  padding-inline: 0;
  color: var(--ink);
}
.guest:hover {
  text-decoration: underline;
  background: transparent;
}
thead {
  border-block: 1px solid var(--ink);
}
th {
  font-size: 0.84rem;
  color: var(--mute);
}
th,
td {
  padding: 0.75rem 0.8rem 0.75rem 0;
}
td {
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
td:last-child {
  text-align: right;
}
td .pdfDownload {
  color: var(--wine);
  padding-block: 0.65rem;
}
#pages {
  justify-content: flex-end;
  margin-top: 1rem;
}
#empty {
  padding: 2rem 0;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  width: min(34rem, calc(100% - 2rem));
  max-height: 90dvh;
}
dialog::backdrop {
  background: #29242070;
}
#card {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: min(34rem, 100vw);
  max-width: 100vw;
  padding: 0;
  border-width: 0 0 0 1px;
}
.drawer {
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
}
.drawerHead {
  margin-bottom: 1.6rem;
}
.drawerHead > span {
  font-size: 0.86rem;
  color: var(--mute);
}
.close {
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  padding: 0;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.group {
  border-top: 1px solid var(--rule);
  padding-block: 1.25rem;
}
.group h3 {
  margin-bottom: 0.75rem;
}
#stamp {
  font-size: 0.88rem;
  margin: 0.5rem 0 1.4rem;
}
#editor {
  display: grid;
  gap: 0.7rem;
}
#editor .primary {
  justify-self: start;
}
.notice {
  background: #eee3d2;
  padding: 1rem;
  margin-bottom: 1rem;
}
.notice p,
#confirmText {
  margin: 0.5rem 0 1rem;
}
.error,
.danger {
  color: #972c20;
}
.error:empty,
#downloadStatus:empty,
#feedback:empty,
#status:empty {
  display: none;
}
#feedback,
#newLink {
  margin-block: 1rem;
}
#newLink button {
  margin-top: 0.5rem;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
li small {
  display: block;
  color: var(--mute);
}
#status {
  padding: 1rem;
  text-align: center;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 620px) {
  .frame {
    gap: 0.65rem;
  }
  .division {
    padding-left: 0.65rem;
    font-size: 0.8rem;
  }
  #card {
    width: 100vw;
  }
  .heading,
  .tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .tools {
    margin-top: 1.25rem;
  }
  .tools .quiet {
    padding-left: 0;
  }
  .search {
    width: 100%;
  }
  thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  tbody,
  tr {
    display: block;
  }
  tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--rule);
  }
  td {
    border: none;
    padding: 0;
  }
  td:first-child,
  td:nth-child(2),
  td:nth-child(3) {
    grid-column: 1;
  }
  td:nth-child(3) {
    font-size: 0.8rem;
    color: var(--mute);
    margin: 0.2rem 0;
  }
  td:last-child {
    grid-column: 2;
    grid-row: 1/4;
  }
  .guest {
    min-height: 36px;
  }
  #pages {
    justify-content: space-between;
  }
}

:root {
  --tui-typography-family-text: Golos, Arial, sans-serif;
  --surface: #fffcf6;
  --soft-rule: #ded5c7;
}
body {
  scrollbar-gutter: stable;
}
.frame {
  min-height: 4.15rem;
}
.search {
  position: relative;
  width: min(32rem, 100%);
}
.search input {
  padding-left: 2.8rem;
}
.search::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.04rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 1.7px solid var(--mute);
  border-radius: 100%;
  transform: translateY(-65%);
  pointer-events: none;
}
.search::after {
  content: "";
  position: absolute;
  top: 56%;
  left: 1.79rem;
  width: 0.42rem;
  height: 1.7px;
  background: var(--mute);
  transform: rotate(45deg);
  pointer-events: none;
}
input {
  border-radius: var(--tui-radius-m);
  border-color: #b4a997;
  background: var(--surface);
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
input:focus-visible {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 2px #9d302527;
}
input[aria-invalid="true"] {
  border-color: var(--wine);
}
.state[tuiStatus] {
  --t-status: #a18760;
}
.state[tuiStatus].online {
  --t-status: #547051;
}
#count {
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: #efe8dd;
}
.guest {
  font-weight: 550;
}
td:last-child a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
[tuiButton] {
  white-space: normal;
  text-align: center;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
[tuiButton]:hover {
  background: #eee5d9;
}
[tuiButton].primary {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
[tuiButton].primary:hover {
  background: #85271e;
}
[tuiButton].danger {
  color: var(--wine);
}
#card {
  width: min(46rem, 100vw);
  border: 0;
  overscroll-behavior: contain;
  background: var(--surface);
}
.drawer {
  padding: 1.5rem clamp(1.25rem, 3.8vw, 3rem) 2.5rem;
}
.cardTop {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.6rem clamp(1.25rem, 3.8vw, 3rem);
  background: var(--surface);
  border-bottom: 1px solid var(--soft-rule);
}
.cardTop > span {
  font-size: 0.95rem;
  font-weight: 550;
}
.close {
  border-radius: 50%;
}
#cardTitle {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
}
#stamp {
  margin: 0.55rem 0 1.65rem;
}
.group {
  padding: 1.45rem 0;
  border-color: var(--soft-rule);
}
.group h3 {
  margin-bottom: 1rem;
}
#editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
#editor > div {
  min-width: 0;
}
#editor .primary {
  grid-column: 1/-1;
}
#editor .error:not(:empty) {
  margin-top: 0.4rem;
  font-size: 0.88rem;
}
#feedback:not(:empty) {
  padding: 0.6rem 0.8rem;
  background: #f3ecdf;
  border-radius: var(--tui-radius-s);
}
#newLink:not([hidden]) {
  margin-bottom: 0;
}
.ticket .actions {
  gap: 0.6rem;
}
#historyCount {
  font:
    500 0.85rem Golos,
    Arial,
    sans-serif;
  color: var(--mute);
}
.fold {
  border-top: 1px solid var(--soft-rule);
}
.fold summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.4rem;
  list-style: none;
  font-weight: 550;
  cursor: pointer;
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary::after {
  content: "";
  margin-inline-start: auto;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  width: 0.46rem;
  height: 0.46rem;
  transform: rotate(45deg);
  transition: transform 150ms;
}
.fold[open] summary::after {
  transform: rotate(225deg);
}
.fold .actions,
.fold ul {
  padding-bottom: 1rem;
}
.fold li:last-child {
  border-bottom: 0;
}
dialog {
  border-radius: 12px;
}
#card {
  border-radius: 0;
}
@media (max-width: 620px) {
  #card {
    width: 100vw;
  }
  #editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .drawer {
    padding-block-start: 1.25rem;
  }
  .tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .tools .quiet {
    justify-self: start;
  }
  td:last-child a {
    padding: 0.65rem;
    display: inline-flex;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #card {
    transform: translateX(100%);
    transition:
      transform 210ms var(--tui-curve-productive-exit),
      display 220ms allow-discrete,
      overlay 220ms allow-discrete;
  }
  #card[open] {
    transform: translateX(0);
    transition:
      transform 260ms var(--tui-curve-productive-entrance),
      display 260ms allow-discrete,
      overlay 260ms allow-discrete;
  }
  #card::backdrop {
    background: rgb(40 31 27 / 0);
    transition:
      background-color 200ms,
      display 220ms allow-discrete,
      overlay 220ms allow-discrete;
  }
  #card[open]::backdrop {
    background: rgb(40 31 27 / 0.34);
  }
  @starting-style {
    #card[open] {
      transform: translateX(100%);
    }
    #card[open]::backdrop {
      background: rgb(40 31 27 / 0);
    }
  }
  #newLink:not([hidden]),
  #save:not([hidden]),
  .fold[open] > .actions,
  .fold[open] > ul {
    animation: invite-reveal 170ms var(--tui-curve-productive-entrance);
  }
  @keyframes invite-reveal {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

#card input,
.search input {
  font-weight: 400;
}
[tuiButton] {
  border-radius: var(--tui-radius-m);
}
#getLink {
  min-inline-size: min(12.75rem, 100%);
}
#editFeedback:not(:empty) {
  margin-top: 0.65rem;
  color: var(--mute);
  font-size: 0.92rem;
}
