:root {
  color-scheme: light;
  --ink: #1e2824;
  --paper: #faf9f3;
  --side: #f1f0e7;
  --card: #fffcf5;
  --moss: #244a39;
  --green: #3d6351;
  --dim: #5d655b;
  --rule: #d6d6c8;
  --honey: #e9cb88;
  --red: #933822;
  --serif: "Noto Serif CJK KR", "Nanum Myeongjo", "Batang", Georgia, serif;
  --sans:
    "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial,
    sans-serif;
  font: 100%/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  word-break: keep-all;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.button {
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  line-height: 1.35;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  padding: 0.52rem 0.72rem;
  border-radius: 5px;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #e8e9de;
}
button:disabled,
.button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #267456;
  outline-offset: 2px;
}
.primary,
.primary:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: #fffdf2;
}
.primary:hover {
  background: #173b2a;
}
.border,
.button {
  border-color: var(--rule);
}
.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.square {
  padding: 0.46rem;
}
.pill {
  border: 1px solid var(--rule);
  border-radius: 50px;
  padding: 0.55rem 1rem;
}
.subtle {
  color: var(--dim);
}
.logo {
  font-family: Georgia, var(--serif);
  font-size: 2.55rem;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1.06;
  font-style: italic;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-wave {
  width: 38px;
  height: 32px;
  color: var(--moss);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.brand-place {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0 0.1rem 1rem;
  border-left: 1px solid var(--rule);
  color: var(--dim);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.32;
}
.fine,
.meta {
  font-size: 0.82rem;
  color: var(--dim);
}
.loading {
  padding: 4rem;
  text-align: center;
}
.notice-inline {
  font-size: 0.88rem;
  color: var(--red);
  min-height: 1rem;
}
.auth-wrap {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(20rem, 1.2fr) minmax(24rem, 0.8fr);
}
.auth-print {
  background: #153b37;
  color: #fff8dd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5vw;
  position: relative;
  overflow: hidden;
  min-width: 0;
  isolation: isolate;
}
.auth-print:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(20, 40, 43, 0.49),
      transparent 43%,
      rgba(15, 36, 38, 0.6)
    ),
    url(/static/wave.webp) center/cover;
  z-index: -1;
}
.auth-print .brand-wave {
  color: inherit;
}
.auth-print .brand-place {
  color: inherit;
  border-color: #ffffff65;
}
.auth-print .logo {
  font-size: 3.4rem;
}
.auth-print h1 {
  font:
    italic clamp(4rem, 7vw, 7.4rem) / 1 Georgia,
    serif;
  letter-spacing: -0.065em;
  text-shadow: 0 2px 15px #172c2b4f;
}
.auth-pane {
  align-self: center;
  justify-self: center;
  width: min(78%, 23rem);
  padding: 3rem 0;
}
.auth-pane h2,
.empty h1 {
  font: 400 2.3rem/1.25 var(--serif);
  letter-spacing: -0.07em;
  margin-bottom: 1.8rem;
}
.auth-tabs,
.tabbar {
  display: flex;
  gap: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.auth-tabs {
  margin-bottom: 1.5rem;
}
.tab,
.tab:hover {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.7rem 0.05rem;
  color: var(--dim);
  background: transparent;
}
.tab.active {
  color: var(--moss);
  border-bottom-color: currentColor;
  font-weight: 700;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.field > span span {
  font-size: 0.8rem;
  color: var(--dim);
  font-weight: 400;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fffef8;
  border-radius: 4px;
  padding: 0.58rem 0.7rem;
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 5rem;
}
.field select,
.inline-speaker select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='m2 3 4 4 4-4' fill='none' stroke='%234c594e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.full {
  width: 100%;
}
.flex {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.auth-pane .primary {
  margin-top: 0.4rem;
  padding: 0.75rem;
}
.mast {
  height: 4.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--rule);
  gap: 0.6rem;
}
.mast > .flex {
  gap: 1rem;
}
.account {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: calc(100vh - 4.45rem);
}
.shelf {
  border-right: 1px solid var(--rule);
  background: var(--side);
  padding: 1.7rem 1rem 2rem;
  min-width: 0;
}
.shelf-top,
.section-head,
.dialog-head,
.ins-head,
.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.shelf-top {
  padding: 0 0.45rem 0.7rem;
}
.shelf h2 {
  font-size: 1rem;
}
.project-list {
  display: grid;
  gap: 0.3rem;
}
.project-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0.75rem 0.6rem;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.project-link.active {
  background: var(--moss);
  color: var(--paper);
}
.project-link .icon {
  width: 1rem;
}
.shelf-bottom {
  margin: 1rem 0.45rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.workspace {
  min-width: 0;
}
.cover {
  position: relative;
  isolation: isolate;
  min-height: 11rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  align-items: flex-end;
  background: #254538;
  color: #fbf7e7;
  overflow: hidden;
}
.cover.project-wave:before {
  content: "";
  position: absolute;
  inset: 0 0 0 25%;
  z-index: -2;
  background: url(/static/wave.webp) center 48% / cover;
}
.cover.project-wave:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #213f36 8%,
    rgba(32, 61, 52, 0.98) 25%,
    rgba(35, 57, 53, 0.62) 56%,
    rgba(26, 47, 47, 0.08) 100%
  );
}
.cover h1 {
  font: 500 clamp(2.35rem, 4vw, 3.85rem) / 1.24 var(--serif);
  letter-spacing: -0.075em;
  overflow-wrap: anywhere;
}
.cover p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #edf1dc;
}
.cover.compact {
  min-height: 4.4rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
}
.cover.compact h1 {
  font-size: 1.5rem;
}
.cover.compact p {
  display: none;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 29%);
  padding-bottom: 5.2rem;
}
.script {
  padding: 1.45rem clamp(1rem, 2.25vw, 2.4rem) 2rem;
  min-width: 0;
}
.section-head {
  margin-bottom: 0.7rem;
}
.section-head h2,
.ins-head h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.section-head .flex {
  justify-content: flex-end;
}
.tabbar {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.tab em {
  display: inline-block;
  font-size: 0.78rem;
  font-style: normal;
}
.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.line {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0.2rem 0.9rem 0.55rem;
  display: grid;
  grid-template-columns: minmax(4.5rem, 6.6rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}
.line.selected {
  background: #eef0e5;
}
.line.playing {
  box-shadow: inset 3px 0 var(--green);
}
.line .text {
  display: block;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 0.3rem;
}
.line .text:hover {
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.27em;
}
.inline-speaker select {
  font-size: 0.83rem;
  border-color: transparent;
  background-color: transparent;
  max-width: 100%;
  padding: 0.3rem 1.45rem 0.3rem 0.15rem;
  cursor: pointer;
}
.line .indicator {
  display: block;
  font: 400 0.76rem/1.4 var(--sans);
  color: var(--dim);
  margin-top: 0.25rem;
}
.line .flag {
  color: #82632c;
}
.line .flag[aria-pressed="true"] {
  background: #e9d7ac;
  color: #5f481c;
}
.tag {
  font: 500 0.75rem/1 var(--sans);
  background: #e6e9da;
  color: var(--green);
  border-radius: 2px;
  padding: 0.12rem 0.22rem;
}
.text strong {
  color: #31543d;
}
.inspector {
  border-left: 1px solid var(--rule);
  padding: 1.45rem 1.2rem 2rem;
  background: #f5f4eb;
  min-width: 0;
}
.inspector .field {
  margin-bottom: 0.65rem;
}
.inspector textarea {
  min-height: 4.8rem;
}
.ins-head {
  margin-bottom: 1rem;
}
.ins-head small {
  font-size: 0.78rem;
  color: var(--dim);
}
.tools {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: -0.35rem;
  margin-bottom: 0.85rem;
}
.tools button {
  font-size: 0.78rem;
  padding: 0.22rem 0.42rem;
  background: #e8e8dc;
}
.details {
  margin-top: 0.75rem;
}
.details summary {
  cursor: pointer;
  color: var(--green);
  font-size: 0.875rem;
  padding: 0.3rem 0;
}
.take-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.take {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.83rem;
}
.take .name {
  margin-right: auto;
}
.take button {
  padding: 0.24rem 0.36rem;
  font-size: 0.79rem;
}
.take .chosen {
  color: var(--moss);
  font-weight: 700;
}
.generator {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  margin: 0.5rem 0;
  color: var(--dim);
}
.inline-check input {
  accent-color: var(--moss);
}
.status-msg {
  color: var(--green);
  font-size: 0.83rem;
  margin-top: 0.6rem;
  overflow-wrap: anywhere;
}
.edit-error {
  color: var(--red);
}
.player {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 15.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fbfaf2f7;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: 0.75rem clamp(1rem, 2vw, 2rem);
  min-height: 4.5rem;
}
.player .play {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.track {
  min-width: 0;
  flex: 1;
}
.track-head {
  font-size: 0.8rem;
}
.track-head span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.track-head span:last-child {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.seek {
  width: 100%;
  accent-color: var(--green);
  height: 0.6rem;
  cursor: pointer;
}
.player .mark-btn {
  border-color: #a49064;
  background: #f4ebd6;
  white-space: nowrap;
}
.toggle-on {
  background: #dae5d7 !important;
  color: var(--moss);
}
.empty {
  padding: clamp(2rem, 6vw, 6rem) clamp(1.3rem, 5vw, 4rem);
}
.empty p {
  margin: 0.5rem 0 1.25rem;
}
.empty-note {
  padding: 1.8rem 0.4rem;
  color: var(--dim);
  font-size: 0.95rem;
}
.empty-note button {
  margin-top: 0.7rem;
}
.mobile-only {
  display: none;
}
.dialog-head {
  margin-bottom: 1.4rem;
}
.dialog-head h2 {
  font: 500 1.65rem/1.3 var(--serif);
  letter-spacing: -0.055em;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1.45rem;
  width: min(29rem, 94vw);
  max-height: 86svh;
  overflow-y: auto;
  box-shadow: 0 1.5rem 5rem #17251d38;
}
dialog::backdrop {
  background: #1b27258c;
}
dialog form .actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.people {
  margin-bottom: 1rem;
}
.people button {
  justify-content: flex-start;
}
.form-err {
  font-size: 0.875rem;
  color: var(--red);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.warn {
  color: var(--red);
}
#notice {
  position: fixed;
  bottom: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(92vw, 38rem);
  padding: 0.75rem 1rem;
  background: #243c31;
  color: #fffef3;
  border-radius: 5px;
  box-shadow: 0 5px 20px #0002;
  font-size: 0.9rem;
}
#notice.error {
  background: #71362b;
}
dialog:open ~ #notice {
  position: fixed;
}
@media (min-width: 1600px) {
  .layout {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
  .player {
    left: 18rem;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
  .player {
    left: 12rem;
  }
  .shelf {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }
  .player {
    gap: 0.55rem;
  }
  .only-wide {
    display: none;
  }
}
@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .mobile-only {
    display: inline-flex;
  }
  .shelf {
    display: none;
  }
  .shelf.open {
    display: block;
    position: fixed;
    left: 0;
    top: 4.45rem;
    bottom: 0;
    width: min(85vw, 18rem);
    z-index: 12;
    box-shadow: 0.6rem 0.4rem 2rem #14251b33;
    overflow-y: auto;
  }
  .player {
    left: 0;
  }
  .mast {
    padding: 0 1rem;
  }
  .mast > .flex {
    gap: 0.25rem;
  }
  .account {
    display: none;
  }
  .auth-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .auth-print {
    padding: 6vw;
  }
  .auth-pane {
    width: 84%;
  }
}
@media (max-width: 650px) {
  .mast {
    height: 3.9rem;
  }
  .shelf.open {
    top: 3.9rem;
  }
  .logo {
    font-size: 2rem;
  }
  .brand {
    gap: 0.4rem;
  }
  .brand-wave {
    width: 1.65rem;
  }
  .brand-place {
    font-size: 0.67rem;
    letter-spacing: 0.06em;
    padding-left: 0.5rem;
  }
  .mast .button {
    padding: 0.45rem;
  }
  .work-grid {
    display: block;
  }
  .cover {
    min-height: 8rem;
  }
  .cover.compact {
    min-height: 3.4rem;
  }
  .script {
    padding: 1rem 1rem 1.5rem;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .player {
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    flex-wrap: wrap;
  }
  .player .context-label {
    display: none;
  }
  .player .mark-btn {
    padding: 0.48rem;
  }
  .line {
    gap: 0.3rem;
    grid-template-columns: 4.8rem minmax(0, 1fr) 1.9rem;
  }
  .line .text {
    font-size: 1rem;
  }
  .player .track {
    min-width: 5rem;
  }
  .player .play {
    width: 2.4rem;
    height: 2.4rem;
  }
  .section-head .border {
    padding: 0.4rem;
    font-size: 0.83rem;
  }
  .auth-wrap {
    display: flex;
    flex-direction: column;
  }
  .auth-print {
    min-height: 23svh;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.1rem;
  }
  .auth-print h1 {
    font-size: 2.7rem;
  }
  .auth-print .brand {
    align-self: flex-start;
  }
  .auth-pane {
    width: min(88%, 25rem);
    padding: 2rem 0 3rem;
  }
  .auth-pane h2 {
    font-size: 2rem;
  }
  .auth-print .logo {
    font-size: 2.2rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cover {
    transition:
      min-height 0.25s ease,
      padding 0.25s ease;
  }
  .line {
    transition: background-color 0.12s ease;
  }
}
.worker-status {
  margin: 0.85rem 0.15rem;
  color: var(--dim);
  font-size: 0.82rem;
}
.queue-all {
  margin-left: auto;
  align-self: center;
  background: #e8ecdf;
  color: var(--moss);
  font-size: 0.8rem;
}
.fish-credit {
  font-size: 0.8rem;
  margin: -0.35rem 0 0.6rem;
  color: var(--dim);
}
.fish-credit a {
  color: inherit;
}
.take-origin {
  width: 100%;
  color: var(--dim);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.take-origin summary {
  font-size: 0.78rem;
}
.take-origin p {
  font-size: 0.82rem;
}
.section-head {
  flex-wrap: wrap;
}
.mast > .flex {
  flex-wrap: nowrap;
  min-width: 0;
}
@media (max-width: 650px) {
  .mast {
    gap: 0.4rem;
    padding: 0 0.7rem;
  }
  .mast .brand {
    flex-shrink: 0;
  }
  .mast .brand-wave {
    display: none;
  }
  .mast .button {
    white-space: nowrap;
    font-size: 0.82rem;
  }
  .mast .square {
    padding: 0.35rem;
  }
}
@media (max-width: 380px) {
  .mast .brand-place {
    display: none;
  }
}
