/* 알림 설정 페이지 — 채널 탭 레이아웃 */

.notify-main {
  padding: 1.15rem clamp(1rem, 3vw, 1.75rem) 2.5rem;
}

.notify-page {
  max-width: 1100px;
  margin: 0 auto;
}

.notify-page > .dp-preview-bar {
  margin-bottom: 1rem;
}

html.dp-authenticated-mode .notify-preview.dp-preview-sample::after {
  display: none;
}

.notify-head {
  margin-bottom: 0.75rem;
}

.notify-common {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.notify-common__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.notify-common__identity {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.notify-common__title {
  margin: 0;
  color: #f5f7fa;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.notify-common__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.notify-common__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.notify-common__field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.notify-common__field > span {
  color: #9aa3af;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.notify-common__field input,
.notify-common__field select {
  min-height: 34px;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #f1f5f9;
  font-size: 0.84rem;
}

.notify-common__field input[type="time"] {
  width: 7.2rem;
}

.notify-common__field select {
  min-width: 7.5rem;
}

.notify-common__value {
  color: #e8eef5;
  font-size: 0.84rem;
  font-weight: 700;
}

.notify-common__hint {
  margin: 0;
  color: #7f8b9a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.notify-common__msg {
  margin: 0;
  min-height: 0;
}

.notify-common__msg:empty {
  display: none;
}

.notify-btn--sm {
  min-height: 34px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
}

.notify-channel {
  display: grid;
  gap: 0.75rem;
}

.notify-channel-tabs {
  width: 100%;
  max-width: 28rem;
}

.notify-channel-panel {
  display: none;
  grid-gap: 0.85rem;
}

.notify-channel-panel.is-active {
  display: grid;
}

.notify-channel-panel[hidden] {
  display: none !important;
}

.notify-block--soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
}

.notify-block--soon h2 {
  font-size: 1rem;
}

.notify-block--soon p {
  margin: 0.45rem 0 0;
  color: #9aa3af;
  font-size: 0.86rem;
  line-height: 1.5;
}

.notify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.notify-layout__main,
.notify-layout__side {
  display: grid;
  gap: 0.85rem;
}

.notify-block,
.notify-preview {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.notify-block__head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.notify-block h2,
.notify-preview h2 {
  margin: 0;
  color: #f5f7fa;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.notify-block__desc {
  margin: 0.4rem 0 0.8rem;
  color: #aeb8c6;
  font-size: 0.84rem;
  line-height: 1.5;
}

.notify-badge {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.notify-badge.is-off {
  background: rgba(255, 255, 255, 0.1);
  color: #d5dde7;
}

.notify-badge.is-on {
  background: rgba(3, 199, 90, 0.18);
  color: #7aeba8;
}

.notify-block__actions,
.notify-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef2f7;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.notify-btn[hidden] {
  display: none !important;
}

.notify-btn:hover:not(:disabled),
.notify-btn:focus-visible:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.notify-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.notify-btn--primary {
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(255, 138, 61, 0.22);
  color: #ffe0c4;
}

.notify-btn--primary:hover:not(:disabled),
.notify-btn--primary:focus-visible:not(:disabled) {
  border-color: rgba(255, 138, 61, 0.75);
  background: rgba(255, 138, 61, 0.32);
  color: #fff0e0;
}

.notify-btn--primary:disabled {
  opacity: 0.48;
}

.notify-placeholder {
  display: none;
}

.notify-inline-msg {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: #9aa8b8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.notify-cafe-tracks .notify-inline-msg:empty {
  display: none;
}

.notify-tracks__limit {
  margin: 0 0 0.55rem;
  color: #ffb07a;
  font-size: 0.78rem;
  font-weight: 700;
}

.notify-tracks__list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}

.notify-cafe-tracks .notify-tracks__list {
  gap: 0.75rem;
}

.notify-tracks__empty {
  padding: 0.65rem 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #93a0b0;
  font-size: 0.8rem;
}

.notify-tracks__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.28);
}

.notify-tracks__kw {
  min-width: 0;
  flex: 1 1 auto;
  color: #e8eef5;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notify-tracks__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.notify-tracks__alert-label {
  color: #8f9aab;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.notify-tracks__add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.notify-tracks__add input {
  min-height: 38px;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.55);
  color: #eef3f8;
  font-size: 0.88rem;
}

.notify-tracks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notify-tracks__remove {
  min-height: 28px;
  padding: 0 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9aa8b8;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.notify-tracks__remove:hover,
.notify-tracks__remove:focus-visible {
  color: #ffb4a0;
  outline: none;
}

@media (max-width: 720px) {
  .notify-tracks__add {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .notify-tracks__alert-label {
    display: none;
  }
}

.notify-toggle-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notify-toggle-list li {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.notify-toggle-list li > div {
  min-width: 0;
  flex: 1 1 auto;
}

.notify-toggle-list strong {
  display: block;
  color: #f5f7fa;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.notify-toggle-list li > div > span {
  display: block;
  margin-top: 0.22rem;
  color: #aeb8c6;
  font-size: 0.82rem;
  line-height: 1.4;
}

.notify-toggle-list small {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.14);
  color: #ffc09a;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.notify-toggle-list li.is-locked {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.notify-toggle-list li.is-locked strong {
  color: #c9d2dd;
}

.notify-toggle-list li.is-locked > div > span {
  color: #8f9aab;
}

.notify-toggle-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.notify-toggle-state--on {
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.16);
  color: #ffd2b0;
}

.notify-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notify-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.notify-switch input:disabled,
.notify-switch:has(input:disabled) {
  cursor: not-allowed;
}

.notify-switch i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #3d4654;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transition: background 0.18s ease;
}

.notify-switch i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4f6f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  content: "";
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.notify-switch input:checked + i {
  background: #ff8a3d;
  box-shadow: none;
}

.notify-switch input:checked + i::after {
  transform: translateX(20px);
  background: #fff;
}

.notify-switch input:focus-visible + i {
  outline: 2px solid rgba(255, 168, 107, 0.7);
  outline-offset: 2px;
}

.notify-switch:has(input:disabled) i {
  background: #2f3641;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.notify-switch:has(input:disabled) i::after {
  background: #9aa3af;
  box-shadow: none;
}

.notify-switch:has(input:disabled:checked) i {
  background: rgba(255, 138, 61, 0.35);
}

.notify-switch:has(input:disabled:checked) i::after {
  background: #e8cbb6;
}

.notify-switch--sm {
  width: 36px;
  height: 20px;
}

.notify-switch--sm i::after {
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
}

.notify-switch--sm input:checked + i::after {
  transform: translateX(16px);
}

.notify-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.notify-schedule label {
  display: grid;
  gap: 0.4rem;
}

.notify-schedule span {
  color: #d0d7e0;
  font-size: 0.9rem;
  font-weight: 650;
}

.notify-schedule input,
.notify-schedule select {
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #f1f5f9;
  font-size: 0.95rem;
}

.notify-preview__phone {
  position: relative;
  padding: 0.95rem;
  border-radius: 14px;
  background: #0f141b;
  overflow: hidden;
  min-height: 17rem;
}

.notify-preview__toast {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: 2;
  min-width: 10rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 48, 64, 0.96);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.notify-preview__toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.notify-preview__feed {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.8rem;
}

.notify-preview__bubble {
  padding: 0.95rem 1rem;
  border-radius: 12px 12px 12px 4px;
  background: #1b2734;
  color: #e8eef5;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.notify-preview__bubble.is-active {
  opacity: 1;
  transform: translateY(0);
}

.notify-preview__bubble strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: 0.98rem;
}

.notify-preview__bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.notify-preview__cafe {
  margin: 0 0 0.35rem !important;
  color: #86efac;
  font-size: 0.8rem !important;
  font-weight: 700;
}

.notify-preview__bubble ul {
  margin: 0.6rem 0;
  padding-left: 1.1rem;
  color: #c8d1dc;
  font-size: 0.88rem;
  line-height: 1.5;
}

.notify-preview__bubble em {
  color: #8ec5ff;
  font-size: 0.88rem;
  font-style: normal;
}

.notify-block--note ol {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: #c2cbd6;
  font-size: 0.92rem;
  line-height: 1.75;
}

.notify-footer-actions {
  margin-top: 0.35rem;
}

.notify-blog-add {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.notify-blog-add__label {
  margin: 0;
  color: #c2cbd6;
  font-size: 0.78rem;
  font-weight: 700;
}

.notify-blog-add__url {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: #f1f5f9;
  font-size: 0.9rem;
}

.notify-blog-add__mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.notify-blog-add__ai-note {
  margin: 0;
  color: #8f9bab;
  font-size: 0.78rem;
  line-height: 1.45;
}

.notify-blog-add__ai-note[hidden] {
  display: none !important;
}

.notify-blog-add__actions {
  margin: 0;
}

.notify-blog-tracks__item {
  align-items: flex-start;
}

.notify-blog-tracks__meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.notify-blog-tracks__title {
  display: block;
  color: #f3f6fa;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notify-blog-tracks__kw {
  color: #9aa3af;
  font-size: 0.76rem;
  line-height: 1.4;
  word-break: keep-all;
}

@media (max-width: 640px) {
  .notify-common__top {
    align-items: flex-start;
  }

  .notify-common__actions {
    width: 100%;
  }

  .notify-common__fields {
    flex-direction: column;
    align-items: stretch;
  }

  .notify-common__field {
    justify-content: space-between;
  }

  .notify-common__field input[type="time"],
  .notify-common__field select {
    width: auto;
    flex: 1 1 auto;
  }
}

.notify-cafe-watch {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  list-style: none;
}

.notify-cafe-watch__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.notify-cafe-watch__title {
  display: block;
  color: #f5f7fa;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.notify-cafe-watch__cafe {
  display: block;
  margin-top: 0.28rem;
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

.notify-cafe-watch__alerts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.notify-cafe-alert {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  min-height: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.notify-cafe-alert:hover {
  border-color: rgba(114, 183, 255, 0.35);
}

.notify-cafe-alert.is-on {
  border-color: rgba(3, 199, 90, 0.5);
  background: rgba(3, 199, 90, 0.12);
}

.notify-cafe-alert span {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d5dce6;
}

.notify-cafe-alert b {
  margin-right: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #9aa3af;
}

.notify-cafe-alert i {
  font-style: normal;
  font-weight: 600;
}

.notify-cafe-alert.is-on span,
.notify-cafe-alert.is-on b,
.notify-cafe-alert.is-on i,
.notify-cafe-alert.is-on em {
  color: #86efac;
}

.notify-cafe-alert em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
}

.notify-cafe-alert * {
  pointer-events: none;
}

.notify-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1400;
  max-width: min(92vw, 28rem);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(19, 19, 19, 0.96);
  color: #86efac;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.notify-toast.is-error {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.notify-toast[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .notify-layout,
  .notify-schedule {
    grid-template-columns: 1fr;
  }

  .notify-channel-tabs {
    max-width: none;
  }

  .notify-layout__side {
    order: 3;
  }
}
