@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: var(--brand-navy);
  --muted: #53636b;
  --line: #d9e1e4;
  --light: #f3f6f7;
  --green: #135a40;
  --red: #9a2e24;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--light);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
textarea {
  resize: vertical;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: white;
  color: var(--ink);
  padding: 1rem;
  z-index: 6;
}
.skip:focus {
  top: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.brand strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.075em;
}
.brand small {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--brand-orange);
  background: var(--brand-orange);
  border-radius: 4px;
  color: var(--on-brand-orange);
  margin-left: 0.15rem;
}
.workspace {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 235px minmax(0, 1fr);
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--brand-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}
.sidebar .brand {
  padding: 0 0.75rem 2.6rem;
}
.sidebar nav {
  display: grid;
  gap: 0.28rem;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--brand-blue-soft);
  border-radius: 0.4rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}
.sidebar nav a:hover {
  background: var(--brand-blue-hover);
  color: var(--on-brand-blue);
}
.sidebar nav a[aria-current='page'] {
  background: var(--brand-blue);
  color: var(--on-brand-blue);
  font-weight: 700;
}
.sidebar :focus-visible {
  outline-color: var(--brand-orange);
}
.sidebar nav svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.2rem 0.75rem 0;
  border-top: 1px solid #34505c;
}
.sidebar-foot a,
.sidebar-foot button {
  font-size: 0.83rem;
  color: var(--brand-blue-soft);
  background: none;
  border: 0;
  text-decoration: none;
  padding: 0.4rem 0;
}
.sidebar-foot :hover {
  text-decoration: underline;
}
.main {
  min-width: 0;
}
.topbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.95rem clamp(1.1rem, 4vw, 4rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.topbar .right {
  margin-left: auto;
}
.topbar b {
  font-weight: 600;
  color: var(--ink);
}
.top-divider {
  color: #9aa9ae;
}
.view {
  max-width: 1450px;
  margin: auto;
  padding: clamp(1.3rem, 3.5vw, 3.5rem) clamp(1.1rem, 4vw, 4rem) 4rem;
}
.screen-head,
.toolbar,
.button-row,
.panel-title,
.detail-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.screen-head,
.panel-title {
  justify-content: space-between;
}
.screen-head {
  margin-bottom: 1.65rem;
}
.screen-head h1,
.login-intro h1 {
  font-size: clamp(1.5rem, 2.65vw, 2.125rem);
  letter-spacing: -0.075em;
  line-height: 1.23;
}
.sub,
.hint,
.empty-note,
.minor {
  color: var(--muted);
  line-height: 1.6;
}
.sub {
  margin-top: 0.55rem;
}
.hint,
.minor {
  font-size: 0.86rem;
}
.empty-note {
  text-align: center;
  padding: 2.6rem 1rem;
  font-size: 0.95rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: #fff;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
  padding: 1.35rem;
}
.stat:hover {
  border-color: var(--brand-blue);
}
.stat span {
  font-size: 0.92rem;
  color: var(--muted);
}
.stat strong {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.stat strong small {
  font-size: 0.87rem;
  color: var(--muted);
  margin-left: 0.3rem;
  letter-spacing: 0;
}
.panel {
  padding: clamp(1rem, 2.1vw, 1.65rem);
  margin: 0 0 1.05rem;
  min-width: 0;
}
.panel h2,
dialog h2 {
  font-size: 1.1rem;
  letter-spacing: -0.055em;
}
.panel h3 {
  font-size: 1rem;
}
.panel-title {
  margin-bottom: 1.1rem;
}
.toolbar {
  margin: 0.3rem 0 1rem;
  gap: 0.5rem;
}
.toolbar input,
.toolbar select {
  width: auto;
}
.toolbar input[type='search'] {
  min-width: min(100%, 240px);
  flex: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.03rem;
  border: 1px solid #b5c2c8;
  border-radius: 0.36rem;
  background: white;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.4;
  font-size: 0.94rem;
}
.btn:hover,
.icon-button:hover {
  background: var(--brand-blue-soft);
}
.btn.primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--on-brand-blue);
}
.btn.primary:hover {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
}
.btn.small {
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.84rem;
}
.text-link,
.link-button {
  font-size: 0.9rem;
  color: var(--brand-blue);
  font-weight: 650;
}
.link-button {
  border: 0;
  background: none;
  padding: 0.35rem 0.15rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.icon-button {
  border: 1px solid var(--line);
  font-size: 1.5rem;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.35rem;
  background: white;
}
.btn:disabled,
.link-button:disabled {
  cursor: not-allowed;
}
label {
  display: grid;
  gap: 0.48rem;
  font-size: 0.94rem;
  font-weight: 650;
}
input:not([type='checkbox']),
select,
textarea {
  display: block;
  border: 1px solid #b9c7ce;
  border-radius: 0.35rem;
  padding: 0.66rem 0.78rem;
  background: #fff;
  color: #182b32;
  width: 100%;
  min-height: 2.7rem;
  line-height: 1.5;
}
select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2353636b' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center/1rem;
}
.field-stack,
.form-grid {
  display: grid;
  gap: 1.1rem;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .wide {
  grid-column: 1 / -1;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  align-items: start;
  gap: 1rem;
}
.editor-grid textarea {
  font-weight: 400;
}
.editor-grid .button-row {
  gap: 0.5rem;
}
.cover {
  max-width: min(100%, 25rem);
  max-height: 300px;
  object-fit: contain;
  border-radius: 0.45rem;
}
.channels {
  display: grid;
  gap: 0.7rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 500;
}
.check input {
  accent-color: var(--brand-blue);
  width: 1.1rem;
  height: 1.1rem;
}
.editor-bottom {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.editor-bottom .hint {
  margin-right: auto;
}
.notice {
  padding: 0.8rem 1rem;
  background: var(--brand-blue-soft);
  border: 1px solid #d0e3eb;
  color: var(--brand-navy);
  line-height: 1.55;
  border-radius: 0.4rem;
}
.error {
  color: var(--red);
  line-height: 1.55;
}
.error:empty {
  display: none;
}
.status {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  font-size: 0.79rem;
  border-radius: 4px;
  padding: 0.27rem 0.48rem;
  line-height: 1.35;
  background: #eef1f3;
  color: #4a606b;
  white-space: nowrap;
}
.status.ok {
  background: #e7f2ea;
  color: var(--green);
}
.status.warn {
  background: #fff0d9;
  color: #825106;
}
.status.bad {
  background: #f8e5e1;
  color: var(--red);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.55rem;
  vertical-align: middle;
  line-height: 1.5;
}
th {
  color: var(--muted);
  background: #f7f9fa;
  font-size: 0.84rem;
  font-weight: 550;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 0.75rem;
}
td .subline {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.12rem;
  max-width: 30rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.date {
  white-space: nowrap;
  font-size: 0.87rem;
}
.list-title {
  font-weight: 650;
  text-align: left;
  color: var(--ink);
}
.list-title:hover {
  color: var(--brand-blue);
}
.table-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.8rem;
}
.empty-note .link-button {
  display: inline-block;
}
.conversation {
  display: grid;
  gap: 0.7rem;
}
.message {
  padding: 0.85rem 1rem;
  background: #f2f5f6;
  border-radius: 0.5rem;
}
.message.bot {
  background: var(--brand-blue-soft);
}
.message strong {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 0.25rem;
}
.message p,
.pre {
  white-space: pre-wrap;
  line-height: 1.65;
}
.details {
  display: grid;
  grid-template-columns: minmax(95px, auto) 1fr;
  margin: 0;
}
.details dt,
.details dd {
  margin: 0;
  padding: 0.65rem 0.3rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.details dt {
  color: var(--muted);
  font-size: 0.89rem;
}
.details dd {
  white-space: pre-wrap;
}
.detail-section {
  margin: 1rem 0;
}
.login-layout {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.25rem;
  background: linear-gradient(130deg, var(--brand-navy), var(--brand-blue-hover) 70%, var(--brand-blue));
}
.login-card {
  width: min(100%, 430px);
  padding: clamp(1.6rem, 5vw, 3rem);
  background: white;
  border-radius: 0.7rem;
  box-shadow: 0 24px 80px #05161d44;
}
.login-intro {
  margin: 2.3rem 0 1.6rem;
}
.login-intro p {
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.6rem;
}
.login-card form {
  display: grid;
  gap: 1rem;
}
.login-card .text-link {
  display: inline-block;
  margin-top: 1.35rem;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--brand-navy);
  color: var(--on-brand-blue);
  padding: 0.8rem 1.1rem;
  border-radius: 0.4rem;
  box-shadow: 0 8px 24px #102b3526;
  max-width: calc(100% - 2rem);
  line-height: 1.55;
  width: max-content;
}
.toast.failure {
  background: #782c24;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  width: min(94vw, 650px);
  max-height: 85vh;
  padding: 1.3rem 1.5rem;
  overflow: auto;
}
dialog::backdrop {
  background: #051a22a0;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
dialog form {
  margin-top: 1rem;
}
dialog .button-row {
  margin-top: 1rem;
}
@media (max-width: 990px) {
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 0.65rem;
  }
}
@media (max-width: 740px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    padding: 0.8rem 1rem 0.55rem;
    height: auto;
  }
  .sidebar .brand {
    padding: 0 0 0.55rem;
  }
  .sidebar .brand strong {
    font-size: 1.22rem;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 0.3rem;
    margin: 0 -0.2rem;
    scrollbar-width: thin;
  }
  .sidebar nav a {
    padding: 0.6rem 0.7rem;
    white-space: nowrap;
    font-size: 0.88rem;
    gap: 0.35rem;
  }
  .sidebar nav svg {
    width: 0.95rem;
  }
  .sidebar-foot {
    position: absolute;
    right: 1rem;
    top: 0.52rem;
    border: 0;
    margin: 0;
    padding: 0;
    gap: 0.7rem;
  }
  .topbar {
    padding: 0.7rem 1rem;
  }
  .topbar .right {
    display: none;
  }
  .view {
    padding: 1.4rem 1rem 3rem;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  .stat strong {
    font-size: 1.65rem;
  }
  .stat span {
    font-size: 0.8rem;
  }
  .screen-head {
    margin-bottom: 1rem;
  }
  .toolbar {
    align-items: stretch;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats .stat strong small {
    display: none;
  }
  th,
  td {
    padding: 0.65rem 0.45rem;
  }
  table {
    font-size: 0.88rem;
  }
  .button-row .btn {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  nav a,
  .stat {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
}

.brand-image {
  display: block;
  object-fit: contain;
}
@media (max-width: 740px) {
  .sidebar .brand-image {
    height: 24px;
    width: 25px;
  }
}

.hero-preview {
  display: block;
  width: min(100%, 40rem);
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--light);
}
