:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* ==============================
 * Base
 * ============================== */
body {
  margin: 0;
  background: #0b0c10;
  color: #eaeef7;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
}

/* ==============================
 * Layout
 * ============================== */
.wrap {
  width: 360px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}

/* ==============================
 * Header
 * ============================== */
.head h1 {
  margin: 0;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #a9b2c3;
}
.head .logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ==============================
 * Channel Input
 * ============================== */
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #eaeef7;
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
  outline: none;
  line-height: 1.35;
}

textarea:focus {
  border-color: rgba(120,160,255,0.6);
  box-shadow: 0 0 0 3px rgba(120,160,255,0.15);
}

/* ==============================
 * Meta / Errors
 * ============================== */
.meta {
  display: grid;
  gap: 6px;
}

.count {
  font-size: 12px;
  color: #a9b2c3;
}

.errors {
  font-size: 11px;
  color: #ffb4b4;
  min-height: 14px;
}

/* ==============================
 * Actions
 * ============================== */
.actions {
  display: grid;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 650;
}

.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(120,160,255,0.95),
    rgba(180,120,255,0.95)
  );
  color: #0b0c10;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: #eaeef7;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn.ghost:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ==============================
 * Footer
 * ============================== */
.foot {
  margin-top: 4px;
}

.hint {
  font-size: 11px;
  color: #8f9bb2;
}

.footer-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.footer-icon:hover {
  opacity: 1;
}
