@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* CSS reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;

  &:disabled {
    cursor: auto;
  }
}

/* CSS common */

:root {
  --primary: #3dc0a9;
  --hover-primary: #3dc0a921;
  --bg: #1a1919;
  --nav-bg: #333335;
  --sub-text: #9da0a8;
  --input-text: #3e515b;
  --placeholder: #d2d5dd;
  --input-border: #d3dae6;
  --search-input-bg: #cccccc30;
  /* --line: #67696d; */
  --light-gray: #b6b9c0;
  --dark-gray: #4e4f54;
  --gray-button: #c7cbd5;
  --hover-tool-bg: #cccccc30;
  --scroll-thumb: #ccc;
  --badge-bg: #4e4f54;
  --table-bg: #f7f7f7;
  --white: #fff;
  --red: #eb4833;
  --orange: #ff623a;
  --green: #0ec36b;
  --blue: #4385f6;
  --black: #000;
  --text: #323642;
  --primary-filter: invert(67%) sepia(22%) saturate(1076%) hue-rotate(116deg) brightness(132%)
    contrast(89%);
}

* {
  font-family: "Pretendard";
}

h3,
h4,
p,
span,
button {
  color: var(--text);
  /* color: var(--white); */
}

body {
  min-height: 100vh;
  /* background-color: var(--bg); */
  min-width: 360px;
}

.input {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;

  /* &::placeholder {
    color: var(--placeholder);
  } */

  &:hover {
    border: 1px solid var(--primary) !important;
  }

  &:focus {
    border-color: var(--primary) !important;
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }
}

.radio-input {
  width: 18px;
  height: 18px;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;

  &:has(input:checked) {
    border-color: var(--primary);
    & .radio-input-dot {
      background-color: var(--primary);
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }

  & input {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.border-input {
  border: 1px solid var(--input-border);
  background-color: transparent;
  /* color: var(--white); */
}

.icon-input {
  display: flex;
  align-items: center;
  border-radius: 8px;
  gap: 0 8px;
  cursor: pointer;
  border: 1px solid transparent;

  &:hover {
    border: 1px solid var(--primary);
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  & input {
    background-color: transparent;
    outline: none;
    border: none;
    flex-grow: 1;
  }
}

.search-input {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--search-input-bg);
  padding: 4px 10px;
  border-radius: 8px;
  gap: 0 8px;
  border: 1px solid transparent;
  cursor: pointer;
  /* width: 100%; */

  &:hover {
    border: 1px solid var(--primary);
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  & img {
    width: 24px;
  }

  & input {
    background-color: transparent;
    outline: none;
    border: none;
    color: white;
    width: 100%;
  }
}

.button {
  padding: 8px 16px;
  border-radius: 8px;
}

.primary-button {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--white);
  transition-duration: 0.2s;
  &:hover {
    background-color: #2f9785;
    border: 1px solid #2f9785;
  }

  & span {
    color: var(--white);
  }

  &:disabled {
    border-color: var(--hover-tool-bg);
    background-color: var(--hover-tool-bg);
    color: var(--sub-text);
  }
}

.border-button {
  background-color: transparent;
  /* color: var(--white); */
  color: var(--sub-text);
  border: 1px solid var(--light-gray);
  &:hover {
    background-color: var(--black);
    /* border-color: var(--black); */
    color: var(--white);

    & span {
      color: var(--white);
    }

    & img {
      filter: brightness(10);
    }
  }
}

.setting-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  padding: 6px 8px;
  border-radius: 8px;

  &:disabled {
    filter: grayscale(1) opacity(0.3);
    background-color: transparent;
    cursor: auto;
  }

  & img {
    width: 18px;
    height: 18px;
  }
}

.icon-button {
  border: 1px solid var(--sub-text);
  background-color: transparent;

  &:hover {
    background-color: var(--hover-tool-bg);
  }
}

.red-button {
  border: 1px solid transparent;
  background-color: transparent;

  &:hover {
    background-color: var(--hover-tool-bg);
  }

  & span {
    color: var(--red);
  }
}

.gray-border-button {
  padding: 6px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--sub-text);
  background-color: transparent;
  &:hover {
    background-color: var(--hover-tool-bg);
  }
}

.cancel-button {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--sub-text);

  &:hover {
    background-color: var(--hover-tool-bg);
    border: 1px solid var(--hover-tool-bg);
  }
}

.layout {
  padding-left: 46px;
}

.side-bar-layout {
  display: flex;
}

.inner {
  padding: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--dark-gray);
  background-color: var(--bg);
  & h2 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
  }

  & span,
  p {
    color: var(--white);
  }
}

.select-box {
  position: relative;
  &.open-select-box {
    & .select-option-wrap {
      display: initial;
      max-height: 300px;
    }
    & .select-arrow-img {
      transform: rotate(180deg);
    }
  }
  & > div {
    background-color: #fff;
    border-radius: 8px;
  }
  & .select-result {
    border: 1px solid #d3dae6;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    cursor: pointer;
  }
  & .select-result-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
  }
  & .select-option-wrap {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 20;
    right: 0;
    margin-top: 8px;
    overflow-y: auto;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.15);
  }
  & .select-option-item {
    padding: 8px 16px;
    cursor: pointer;
    &:hover {
      background-color: #eaf3fd;
    }
  }
}

.table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;

  & th {
    padding: 6px 10px;
    & > div {
      display: flex;
      text-align: left;
    }
  }

  & .ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  & tbody {
    & td {
      padding: 10px;
    }
  }

  & .text-center-td {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .actions-td {
    & .tool-item {
      & img {
        width: 24px;
        height: 24px;
      }
    }
  }
}

.left-nav {
  width: 46px;
  border-right: 1px solid var(--dark-gray);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--nav-bg);
  z-index: 100;

  & nav {
    display: flex;
    flex-direction: column;
    gap: 8px;

    & .menu-item {
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;

      &:not(.current) {
        &:hover {
          background-color: var(--hover-primary);
          & > img {
            width: 26px;
          }
        }
      }

      &.current {
        position: relative;
        &::before {
          content: "";
          display: block;
          position: absolute;
          width: 4px;
          height: 100%;
          left: 0;
          background-color: var(--primary);
          border-radius: 10px;
        }
        & img {
          filter: none;
        }
      }
      & img {
        width: 24px;
        filter: brightness(100);
      }
    }
  }

  & .setting-menu {
    position: relative;
  }

  & .setting-sub-menu {
    position: absolute;
    right: -6px;
    transform: translateX(100%);
    top: 0;
    width: 280px;
    border-radius: 8px;
    border: 1px solid var(--dark-gray);
    background-color: var(--nav-bg);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    animation: fadeIn 0.3s;

    & hr {
      border-color: var(--sub-text);
      height: 1px;
    }

    & .quick-sub-menu {
      display: flex;
      border-radius: 8px;
      gap: 0 8px;
      flex-direction: column;
    }

    & .quick-title {
      color: var(--sub-text);
      padding: 8px 10px;
      font-size: 14px;
      font-weight: 600;
    }
  }

  & .sub-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    gap: 0 8px;

    &:not(.disabled) {
      cursor: pointer;
      &:hover {
        background-color: var(--hover-primary);
      }
    }

    &.disabled {
      filter: brightness(0.5);
    }

    & img {
      width: 24px;
      height: 24px;
      filter: brightness(10);
    }

    & .title-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;
      & .title {
        color: var(--white);
        font-size: 14px;
      }

      & .sub-title {
        color: var(--sub-text);
        font-size: 12px;
      }
    }
  }
}

#refreshButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  & img {
    height: 16px;
  }
  & span {
    font-size: 14px;
    color: var(--white);
  }
}

.border-box {
  border-radius: 8px;
  border: 1px solid var(--light-gray);
}

.scrollbar {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
  }
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
  }
}

.small-scrollbar {
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 10px;
  }
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
  }
}

.user-img {
  border-radius: 50%;
  background-color: #f2f2f2;
  position: relative;

  & .user-status-circle {
    position: absolute;
    background-color: var(--green);
    border-radius: 50%;
    border: 2px solid var(--white);
    bottom: 0;
    right: 0;
    transform: translateX(50%);
    width: 14px;
    height: 14px;
  }
}

& .channel-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--input-border);
  display: flex;
  justify-content: center;
  align-items: center;

  & img {
    width: 100%;
    height: 100%;
  }
}

.side-bar {
  background-color: var(--nav-bg);
  border-right: 1px solid var(--dark-gray);
  height: 100vh;
  overflow: auto;
  flex-shrink: 0;

  & .menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px 0;

    &.empty {
      & li {
        padding: 2px 8px;
        font-size: 14px;
        color: #616161;
      }
    }
  }

  & .menu-item {
    padding: 2px 8px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 8px;
    gap: 8px;

    &:hover {
      background-color: var(--bg);
    }

    &.current {
      background-color: var(--hover-primary);

      & .noti-count {
        color: var(--white);
        &.new {
          background-color: transparent;
        }
      }
    }

    & img {
      width: 18px;
      height: 18px;
      filter: brightness(100);
    }

    & .menu-title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0 8px;
      overflow: hidden;
    }

    & .menu-title {
      color: var(--sub-text);
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;

      &.emoji {
        flex-shrink: 0;
      }
    }
  }

  & .arcodian-wrap {
    display: flex;
    flex-direction: column;
    &:open {
      /* & .menu-wrap {
        overflow: hidden;
        animation-name: openArcodian;
        animation-duration: 1s;
      } */

      & .arcodian-tool-wrap {
        & .select-arrow {
          transform: rotate(-90deg);
        }
      }
    }

    & .menu-wrap {
      /* height: 0; */
      padding-top: 12px;
      &.close {
        overflow: hidden;
        animation-name: closeArcodian;
        animation-duration: 4s;
        animation-fill-mode: forwards;
      }
    }
  }

  & .arcodian-cate-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
    overflow: auto;

    & .arcodian-tool-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;

      & .select-arrow {
        -webkit-mask-image: url("/images/icon_arrow.svg");
        mask-image: url("/images/icon_arrow.svg");
        width: 16px;
        height: 16px;
        transform: rotate(90deg);
        background-color: white;
      }
    }

    & .arcodian-title {
      color: var(--sub-text);
      font-size: 14px;
    }
  }

  & .stage-menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px 0;

    & .stage-title {
      color: var(--sub-text);
      font-size: 14px;
      padding: 2px 8px;
    }
  }

  & .stage-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;
  }

  & .toggle-bar-button {
    & img {
      transform: rotate(90deg);
    }
    &.open {
      transform: rotate(180deg);
    }
  }
}

.side-body {
  padding: 12px 8px;
}

.mid-side-bar {
  width: 230px;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  display: flex;
  flex-direction: column;

  & .side-body {
    display: flex;
    flex-direction: column;
    gap: 32px 0;
    overflow: hidden;
    height: 100%;
  }

  &.open {
    animation-name: openSidebar;
  }

  &.close {
    animation-name: closeSidebar;
  }
}

.modal-bg {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: #00000040;
  z-index: 200;
}

.right-modal-box {
  width: 450px;
  position: absolute;
  height: 100%;
  right: 0;
  background-color: var(--nav-bg);

  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  animation-name: openRightModal;

  & p,
  span {
    color: var(--white);
  }

  & .title {
    font-weight: 600;
    & span {
      font-weight: 600;
    }
  }

  & .close-modal-button {
    & img {
      width: 20px;
      height: 20px;
    }
  }

  & .body-wrap {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    /* gap: 16px 0; */
    gap: 24px 0;
  }

  & .input-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px 0;
    & .input-title {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }

  & .modal-bottom {
    position: absolute;
    bottom: 0;
    padding: 24px 16px;
    width: 100%;
    display: flex;
    gap: 0 8px;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--dark-gray);
    & button {
      font-size: 14px;
    }
  }
}

.icon {
  display: inline-block;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@keyframes openSidebar {
  0% {
    margin-left: -230px;
  }
  100% {
    margin-left: 0px;
  }
}

@keyframes closeSidebar {
  0% {
    margin-left: 0px;
  }
  100% {
    margin-left: -230px;
  }
}

@keyframes openRightModal {
  0% {
    margin-right: -450px;
  }
  100% {
    margin-right: 0px;
  }
}

@keyframes openArcodian {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

@keyframes createTag {
  0% {
    height: 0px;
    transform: translateX(10px);
    opacity: 0;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    height: 26px;
    transform: translateX(0px);
    opacity: 1;
  }
}

.side-bar-header {
  & .header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }

  & .header-search-wrap {
    & > div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 16px;
      gap: 0 8px;
    }

    & .search-input {
      & > input {
        font-size: 14px;
        height: 22px;
      }
      & > img {
        width: 22px;
      }
    }

    & .clear-input-button {
      border: 1px solid var(--white);
      padding: 4px;
      & img {
        width: 12px;
        height: 12px;
        filter: brightness(10);
      }
    }
  }

  & h2 {
    color: var(--white);
    font-size: 18px;
  }

  & .tool-item {
    & img {
      height: 22px;
    }
  }
}

& .side-tool-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 8px;

  & .toggle-button {
    transform: rotate(90deg);
  }

  & .tool-item {
    & img {
      width: 20px;
    }
  }
}

.sub-side-bar {
  width: 230px;
  border-right: 1px solid var(--dark-gray);
  overflow: hidden;
}

.side-bar-contents {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  & header {
    & .setting-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;

      & .sub-title {
        font-size: 14px;
        color: var(--sub-text);
      }
    }
  }
}

.tab {
  color: var(--sub-text);
  background-color: transparent;
  padding: 6px 10px;
  font-size: 18px;
  border-bottom: 4px solid transparent;
  cursor: pointer;

  &:hover {
    background-color: var(--hover-primary);
  }

  & .number {
    font-size: 14px;
  }
  &.current {
    border-bottom: 4px solid var(--primary);
    color: var(--primary);
    & span {
      color: var(--primary);
    }
  }

  & span {
    color: var(--sub-text);
  }
}

.border-select-box {
  display: flex;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  & > div {
    padding: 2px 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      background-color: var(--hover-tool-bg);
    }

    &:first-child {
      gap: 0 8px;
      border-radius: 8px 0 0 8px;
      border: 1px solid var(--sub-text);
      border-right: none;
      & span {
        color: var(--sub-text);
      }

      & img {
        width: 16px;
        height: 16px;
      }
    }

    &:last-child {
      border: 1px solid var(--sub-text);
      border-radius: 0 8px 8px 0;
      & img {
        width: 18px;
        height: 18px;
      }

      & .icon {
        mask-image: url(/images/icon_arrow.svg);
        width: 18px;
        height: 18px;
        background-color: var(--white);
        transform: rotate(90deg);
      }
    }
  }
}

.tool-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition-duration: 0.2s;
  &:hover {
    background-color: var(--hover-tool-bg);
  }

  &.disabled {
    background-color: transparent;
    cursor: auto;
  }
}

.select-arrow {
  transform: rotate(90deg);
}

.badge-wrap {
  width: fit-content;
  padding: 2px 6px;
  /* background-color: var(--dark-gray); */
  display: flex;
  align-items: center;
  gap: 0 6px;

  & span {
    color: var(--white);
    font-size: 12px;
  }
}

.pagenation-arrow-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagenation-arrow {
  padding: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;

  /* &:hover { */
  /* background-color: var(--black); */
  /* } */

  & img {
    width: 22px;
    cursor: pointer;
  }

  & .icon {
    width: 22px;
    height: 22px;
    mask-image: url(/images/icon_arrow.svg);
    background-color: var(--sub-text);
  }

  &.prev {
    & .icon {
      transform: rotate(180deg);
    }
  }

  &.active {
    & .icon {
      background-color: var(--white);
    }
  }
}

.info-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    & .tooltip {
      display: initial;
    }
  }

  & img {
    width: 18px;
  }
}

.tooltip {
  position: absolute;
  background: #dbdde2;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 400px;
  width: max-content;
  left: 28px;
  line-height: 24px;
  font-size: 14px;
  display: none;
  z-index: 10;
}

.setting-border-box {
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 16px;
}

.setting-top-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  & > div {
    display: flex;
    align-items: center;
    gap: 16px;

    & .tool-item {
      & img {
        height: 28px;
      }
    }
  }

  & .top-left {
    & .primary-button {
      & img {
        filter: brightness(10);
      }
    }
  }

  & .search-input {
    & input {
      color: var(--black);
    }
  }
}

.setting-box-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow: auto;
  padding-bottom: 24px;
}

.setting-box-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;

  & > div {
    display: flex;
    align-items: center;
    gap: 0 16px;
  }

  & .item-left {
    & .item-img {
      width: 40px;
      height: 40px;
      background-color: var(--primary);
      padding: 6px;
      & img {
        filter: brightness(10);
      }
    }

    & .item-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;
      color: var(--sub-text);

      & span {
        font-size: 14px;
        color: var(--sub-text);
      }

      & .item-title {
        font-weight: 600;
        color: var(--black);
      }
    }
  }
}

.setting-table {
  & th {
    background-color: var(--table-bg);
    height: 50px;
  }

  & tr {
    border-bottom: 1px solid var(--input-border);
  }
}

.pagenation-contents {
  position: relative;
  padding-bottom: 52px;
}

.bottom-pagenation-wrap {
  display: flex;
  justify-content: flex-end;
  gap: 0 24px;
  padding: 10px;
  background-color: var(--bg);
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 52px;

  & p,
  span {
    color: var(--white);
  }

  & .pagenation-text-wrap {
    display: flex;
    align-items: center;
    gap: 0 16px;
  }

  & .select-per-page {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;

    & .icon {
      width: 22px;
      height: 22px;
      mask-image: url(/images/icon_arrow.svg);
      background-color: var(--sub-text);
      transform: rotate(90deg);
    }
  }
}

.datalist {
  position: relative;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background-color: transparent;

  &:hover {
    border: 1px solid var(--primary) !important;
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  &.open-datalist {
    & .datalist-option-wrap {
      display: initial;
      max-height: 300px;
    }
    & .datalist-arrow {
      transform: rotate(180deg);
    }
  }

  & span {
    font-size: 14px;
  }

  & .datalist-input-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0 8px;

    &:hover {
      & .datalist-clear-button {
        opacity: 1;
      }
    }
  }

  & .datalist-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    padding: 4px 0;
    background-color: transparent;
    width: 100%;
  }

  & .datalist-option-wrap {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 20;
    right: 0;
    overflow-y: auto;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
  }

  & .datalist-option-item {
    cursor: pointer;
    padding: 8px 10px;
    gap: 0 8px;
    &:hover {
      background-color: var(--hover-primary);
    }
  }

  & .datalist-tag-wrap {
    display: none;
    &:has(span) {
      display: flex;
      align-items: center;
      gap: 0 8px;
    }
  }

  &.checkbox-datalist {
    & .datalist-option-item {
      display: flex;
      align-items: center;
    }
  }

  & .datalist-tag-item {
    line-height: 14px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 8px;
    background-color: var(--search-input-bg);
    border: 1px solid var(--input-border);
  }

  & .datalist-clear-button {
    opacity: 0;
  }

  & .datalist-clear-circle {
    width: 18px;
    height: 18px;
    background-color: var(--gray-button);
    border-radius: 50%;
    position: relative;
    transform: rotate(45deg);

    &:hover {
      box-shadow: var(--mudi-shadow);
    }

    & > div {
      background-color: var(--white);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      &:first-child {
        width: 2px;
        height: 8px;
      }
      &:last-child {
        width: 8px;
        height: 2px;
      }
    }
  }
}

.connect-channel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
}

.connect-right-bar {
  background-color: var(--nav-bg);
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px 0;

  & .channel-logo-img {
    width: 128px;
  }

  & .channel-name {
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
  }

  & .channel-text {
    color: var(--sub-text);
    font-size: 14px;
    line-height: 20px;
  }
}

.tutorial-inner {
  padding: 0 44px;
}

.tutorial-back-wrap {
  padding: 16px 0;
  margin-bottom: 12px;
  & .back-button {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    & > img {
      width: 22px;
      transform: rotate(180deg);
      filter: var(--primary-filter);
    }
    & > span {
      color: var(--primary);
      font-weight: 600;
    }
  }
}

.tutorial-body-wrap {
  max-width: 60%;

  & .tutorial-contents {
    display: flex;
    flex-direction: column;
    gap: 16px 0;
  }

  & .tutorial-main-wrap {
    & .link-text {
      font-size: 14px;
      font-weight: 600;
    }
  }

  & .tutorial-wrap {
    display: flex;
    flex-direction: column;
  }

  & .tutorial-title {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    & .title {
      font-size: 22px;
      font-weight: 700;
    }

    & .sub-text {
      font-size: 14px;
      color: var(--sub-text);
      line-height: 20px;
    }
  }

  & .tutorial-step-wrap {
    display: flex;
    gap: 0 12px;
    align-items: center;
  }

  & .tutorial-step-item {
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0 8px;
    background-color: var(--table-bg);

    & .index {
      display: flex;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      justify-content: center;
      align-items: center;
      font-weight: 600;
      background-color: var(--light-gray);
      color: var(--table-bg);
      font-size: 14px;
    }

    & .title {
      color: var(--light-gray);
      font-size: 14px;
      font-weight: 600;
    }

    &.complete {
      background-color: var(--hover-primary);
      & .index {
        background-color: var(--primary);
      }

      & .title {
        color: var(--primary);
      }
    }

    &.current {
      background-color: var(--primary);
      & .index {
        background-color: var(--white);
        color: var(--primary);
      }

      & .title {
        color: var(--white);
      }
    }
  }

  & .tutorial-contents-wrap {
    & .step-title {
      font-weight: 600;
    }

    & .step-list {
      display: flex;
      flex-direction: column;
      gap: 24px 0;

      & li {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px 0;

        & span {
          font-size: 14px;
        }

        & .bold {
          font-weight: 600;
        }

        & input {
          padding: 8px 10px;
          font-size: 14px;
          width: 50%;
        }
      }
    }
  }

  & .link-text {
    & a {
      font-size: 14px;
      color: var(--primary);
    }
  }

  & .next-step-button {
    width: fit-content;
  }

  & .connect-button {
    width: fit-content;
  }
}

.popper-wrap {
  position: absolute;
  bottom: -10px;
  right: 0;
  transform: translateY(100%);
  background-color: var(--nav-bg);
  width: max-content;
  border: 1px solid var(--dark-gray);
  border-radius: 8px;
  z-index: 10;

  & > div {
    padding: 12px 20px;
  }

  & .popper-title {
    border-bottom: 1px solid var(--dark-gray);

    & .title-text {
      font-weight: 600;
    }
  }

  & .popper-body {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
  }

  & .popper-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 0 8px;

    & button {
      font-size: 14px;
    }
  }

  & .input-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px 0;
    & .input-title {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }
}

.noti-count {
  padding: 6px;
  min-width: 20px;
  border-radius: 10px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sub-text);
  font-size: 14px;
  &.new {
    background-color: var(--primary);
    color: var(--white);
  }
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 0 4px;
  border: 1px solid var(--sub-text);
  border-radius: 8px;
  padding: 4px 8px;
  width: fit-content;

  & span {
    font-size: 14px;
    color: var(--sub-text);
  }

  & img {
    width: 14px;
    cursor: pointer;
    /* filter: brightness(0); */
  }
}

.hide {
  display: none !important;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* CSS login */

#login {
  & .move-page-text {
    display: block;
    padding-top: 16px;
    color: var(--sub-text);

    &.forgat-password {
      text-align: right;
    }

    &.sign-up {
      text-align: center;
    }

    & a {
      color: var(--primary);
    }
  }

  & hr {
    border: none;
    background-color: var(--dark-gray);
    height: 1px;
  }
}

.login-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 76px;
  & h1 {
    /* color: white; */
    font-size: 22px;
    font-weight: 600;
  }
}

.login-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px;

  & p,
  span {
    color: white;
  }
}

.login-inner {
  display: flex;
  flex-direction: column;
  gap: 62px 0;
  justify-content: center;
  max-width: 720px;
  width: 100%;
}

.login-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px 0;

  & h2 {
    font-size: 24px;
    font-weight: 700;
    /* color: var(--white); */
  }
  & .login-sub-title {
    color: var(--sub-text);
    font-weight: 600;
  }
}

.login-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px 0;
}

#loginButton {
  width: 100%;
}

/* CSS dashboard */

.dashboard-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#dashboard {
  & .updown-icon {
    width: 18px;
    height: 18px;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    &.up {
      background-color: var(--green);
    }
    &.down {
      background-color: var(--red);
    }
  }

  & .lifecycle-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px 0;
    overflow: auto;
    grid-column: 1 / span 2;

    & .title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    & h3 {
      /* color: var(--white); */
      font-size: 22px;
      font-weight: 600;
    }

    & .lifecycle-setting {
      width: 24px;
      filter: brightness(0);
      cursor: pointer;
    }

    & .lifecycle-card-wrap {
      display: flex;
      gap: 0 16px;
      align-items: center;
      width: max-content;
      padding-bottom: 16px;
    }

    & .lifecycle-card-container {
      overflow: auto;
    }

    & .lifecycle-card {
      width: 220px;
      padding: 12px 16px;
      background-color: #d0deff21;
      display: flex;
      flex-direction: column;
      gap: 8px 0;

      & .card-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        & .card-title-text {
          font-weight: 600;
        }
      }

      & .card-contents-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        & .number-text {
          font-size: 24px;
        }
        & .percent-text {
          font-size: 14px;
          &.up {
            color: var(--green);
          }
          &.down {
            color: var(--red);
          }
        }
      }

      & .card-bottom-wrap {
        display: flex;
        align-items: center;
        gap: 0 16px;

        & .bottom-item {
          display: flex;
          align-items: center;
          gap: 0 4px;
          & img {
            height: 18px;
          }
          & span {
            font-size: 14px;
          }
        }
      }
    }
  }

  & .contents-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 36px 0;
    min-height: 635px;
    position: relative;

    & h4 {
      font-size: 18px;
      font-weight: 600;
    }

    & .chat-room-list {
      display: flex;
      flex-direction: column;
    }

    & .chat-room-item {
      border-top: 1px solid var(--light-gray);
      & .item-wrap {
        display: flex;
        justify-content: space-between;

        padding: 10px;
        margin-top: 6px;
        margin-bottom: 6px;
      }

      &:first-child {
        border: none;
        & .item-wrap {
          margin-top: 0;
        }
      }
    }

    & .left-chat-wrap {
      display: flex;
      gap: 0 8px;
      align-items: center;
    }

    & .chat-info-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
    }

    & .chat-date {
      display: flex;
      gap: 4px;
      align-items: center;
      & span {
        color: var(--sub-text);
      }
      & img {
        width: 14px;
      }
    }

    & .left-img-container {
      width: 40px;
      height: 40px;
    }

    & .user-img {
      &.left {
        width: 40px;
        height: 40px;
      }
      &.right {
        width: 28px;
        height: 28px;
      }
    }

    & .right-profile-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;

      & .right-name {
        font-size: 14px;
      }
    }

    & .bottom-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: absolute;
      bottom: 0;
      width: 100%;
      left: 0;
      padding: 16px;
    }

    & .pagenation-wrap {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    & .pagenation-arrow {
      background-color: transparent;
      & img {
        filter: brightness(0);
      }
      &:disabled {
        & img {
          filter: none;
        }
      }
    }

    & .pagenation-text {
      font-size: 14px;
      color: var(--sub-text);
      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }
  }

  & .contracts-wrap {
    & .contents-tab-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;
    }

    & .chat-room-item {
      cursor: pointer;

      & .item-wrap {
        align-items: center;
        &:hover {
          background-color: var(--hover-primary);
        }
      }
    }

    & .chat-contents-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px 0;
      justify-content: center;

      & .msg-wrap {
        display: flex;
        align-items: center;
        gap: 0 6px;
      }

      & .msg {
        font-size: 14px;
      }

      & .sns-logo {
        width: 14px;
      }

      & .type-icon {
        border-radius: 50%;
        width: 18px;
        padding: 2px;

        &.up {
          background-color: var(--blue);
        }
        &.down {
          background-color: var(--orange);
          transform: rotate(180deg);
        }
      }
    }

    & .chat-info-wrap {
      & .chat-date {
        & span {
          font-size: 12px;
        }
      }
    }
  }

  & .members-wrap {
    & .contents-box-title {
      display: flex;
      flex-direction: column;
      gap: 12px 0;

      & .select-box-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0 24px;
      }

      & .members-select-box {
        width: 100%;
      }
    }

    & .members-select-box {
      & .datalist-option-wrap {
        background-color: var(--white);
      }

      &.status {
        & .status-option-item {
          display: flex;
          align-items: center;
          gap: 8px;
        }

        & .status-circle {
          display: block;
          width: 10px;
          height: 10px;
          border-radius: 50%;
          &.green {
            background-color: var(--green);
          }
          &.orange {
            background-color: var(--orange);
          }
          &.gray {
            background-color: var(--gray-button);
          }
        }
      }
    }

    & .members-profile-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px 0;
      & .assigned-text {
        font-size: 14px;
        color: var(--sub-text);
        & span {
          font-size: 14px;
          color: var(--sub-text);
        }
      }
    }

    & .chat-info-wrap {
      & .chat-date {
        & span {
          font-size: 14px;
        }
      }
    }
  }

  & .conversations-wrap {
    grid-column: 1 / span 2;
    & .status-wrap {
      display: flex;
      align-items: center;
      gap: 0 32px;
    }

    & .status-title {
      display: flex;
      align-items: center;
      gap: 8px;
      & span {
        font-weight: 600;
        color: var(--sub-text);
      }
    }

    & .status-item {
      display: flex;
      flex-direction: column;
      gap: 8px 0;
    }

    & .status-contents {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      line-height: 28px;
    }

    & .status-number {
      font-size: 36px;
    }

    & .status-percent {
      line-height: 14px;
      color: var(--sub-text);

      &.up {
        color: var(--green);
      }

      &.down {
        color: var(--red);
      }
    }

    & .conversations-chart {
      flex-grow: 1;
    }

    & .conversations-bottom {
      text-align: right;
    }
  }
}

/* CSS inbox */

#inbox {
  & .recipient-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  & .assign-img {
    width: 18px;
    height: 18px;
  }

  & .sub-side-bar {
    & .side-bar-header {
      & .header-wrap {
        padding: 0 16px;
      }

      & .tab {
        padding: 12px 10px;
      }
    }

    & .side-tab-wrap {
      display: flex;
    }

    & .filter-wrap {
      padding: 0 8px;
      padding-bottom: 4px;
      display: flex;
      width: 100%;
      gap: 0 8px;
    }

    & .filter-select {
      display: flex;
      max-width: fit-content;
      width: 50%;
      height: 32px;
      align-items: center;
      padding: 0 8px;
      gap: 4px;
      cursor: pointer;

      & img {
        height: 16px;
        transform: rotate(90deg);
      }

      & span {
        color: var(--sub-text);
        font-size: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }

    & .chat-room-list {
      /* overflow-y: scroll; */
    }

    & .toggle-button-wrap {
      display: flex;
      align-items: center;
      gap: 4px;

      & img {
        height: 24px;
        cursor: pointer;
      }

      & span {
        color: var(--sub-text);
        font-size: 14px;
        cursor: pointer;
      }
    }

    & .unreplied-toggle-button {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;

      &:has(input:checked) {
        & img {
          transform: rotate(180deg);
          filter: var(--primary-filter);
        }
      }

      & input {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
      }
    }

    & .chat-room-item {
      padding: 0px 8px;
      padding-top: 8px;
      display: flex;
      gap: 0 12px;
      border-radius: 8px;
      cursor: pointer;
      transition-duration: 0.4s;
      overflow: hidden;

      &:hover {
        background-color: var(--bg);

        /* & .chat-date {
          display: none;
        }

        & .chat-setting {
          display: flex;
        } */
      }

      &.current {
        background-color: var(--hover-primary);
      }

      &:last-child {
        & .chat-contents-wrap {
          border: none;
        }
      }
    }

    & .chat-contents-wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px 0;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--dark-gray);
      overflow: hidden;
    }

    & .chat-title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 24px;
      & span {
        color: var(--white);
      }

      & .user-name {
        font-size: 16px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
      }

      & .chat-date {
        font-size: 12px;
        flex-shrink: 0;
      }

      & .chat-setting {
        display: none;
        height: 100%;

        & img {
          height: 100%;
        }
      }
    }

    & .chat-msg-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0 4px;

      & .msg-wrap {
        display: flex;
        gap: 0 4px;
        overflow: hidden;

        & img {
          width: 14px;
          &.send {
            transform: rotate(45deg);
          }
          &.receive {
            transform: rotate(-135deg);
          }
        }

        & span {
          color: var(--sub-text);
          font-size: 14px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          flex-grow: 1;
        }
      }
    }

    & .chat-bottom-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;

      & .badge-logo {
        width: 16px;
        display: flex;
        & img {
          width: 100%;
        }
      }
    }
  }

  & .side-bar-contents {
    & .header {
      & .border-select-box {
        & > div {
          height: 28px;
        }
      }
    }

    & .header-left {
      display: flex;
      align-items: center;
      gap: 0 12px;

      & .recipient-img {
        cursor: pointer;
      }

      & .notice-text {
        color: var(--sub-text);
        font-size: 14px;
      }
    }

    & .next-lifecycle-button {
      & img {
        height: 18px;
        width: 18px;
      }
    }

    & .header-right {
      & .call-tool {
        display: flex;
        align-items: center;

        & .select-arrow {
          width: 16px;
          height: 16px;
        }
      }
    }

    & .assign-select {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      & span {
        font-size: 14px;
      }

      & .select-arrow {
        width: 16px;
        height: 16px;
      }
    }
  }

  & .chat-stats-bar {
    display: flex;
    align-items: center;
    gap: 0 20px;
    padding: 8px 20px;
    background: var(--bg-color, #fff);
    border-bottom: 1px solid var(--border-color, #eee);

    & .chat-stat-item {
      display: flex;
      align-items: baseline;
      gap: 0 6px;
    }

    & .stat-label {
      font-size: 12px;
      color: var(--sub-text);
    }

    & .stat-value {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-color, #222);

      &.accent {
        color: #f5a623;
      }
    }

    & .chat-stat-divider {
      width: 1px;
      height: 16px;
      background: var(--border-color, #eee);
    }
  }

  & .inbox-wrap {
    height: 100%;
    display: flex;
    overflow: hidden;

    & .input-wrap {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
      gap: 4px 0;
      & .input-title {
        font-size: 14px;
        color: var(--sub-text);
        font-weight: 600;
      }
    }

    & .chat-wrap {
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    & .chat-room-wrap {
      overflow: auto;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 24px 0;
      padding: 24px 12px;

      & .chat-left {
        display: flex;
        & .msg-wrap {
          justify-content: flex-start;
        }
        & .msg {
          background-color: #e6e6e8;
        }
      }

      & .chat-center {
        display: flex;
        justify-content: center;
      }

      & .chat-right {
        display: flex;
        & .msg-wrap {
          justify-content: flex-end;
        }
        & .msg {
          background-color: var(--hover-primary);
        }
      }

      & .chat-date {
        padding: 4px 8px;
        background-color: var(--gray-button);
        border-radius: 8px;
        font-size: 14px;
      }

      & .notice-text {
        color: var(--sub-text);
        font-size: 14px;
      }

      & .msg-wrap {
        display: flex;
        gap: 8px;
        align-items: flex-end;
        width: 100%;
      }

      & .user-img {
        width: 32px;
        height: 32px;
      }

      & .msg {
        padding: 8px;
        border-radius: 8px;
        max-width: 50%;
        width: fit-content;
        word-break: keep-all;
        line-height: 24px;
      }

      & .msg-check {
        width: 18px;
      }
    }

    & .chat-bottom-wrap {
      height: 200px;
      flex-shrink: 0;
      padding: 12px;
      padding-top: 0;
    }

    & .enter-msg-wrap {
      padding: 14px;
      border: 1px solid var(--input-border);
      background-color: var(--search-input-bg);
      border-radius: 8px;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 14px 0;
    }

    & .enter-msg-channel {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      width: fit-content;
      & img {
        width: 18px;
      }

      & .channel-select {
        & span {
          font-size: 14px;
          font-weight: 600;
        }
      }
    }

    & .msg-textarea {
      flex-grow: 1;
      border: none;
      background-color: transparent;
      outline: none;
      resize: none;

      &:placeholder {
        color: var(--placeholder);
      }
    }

    & .enter-msg-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    & .enter-button-wrap {
      display: flex;
      align-items: center;
      gap: 0 12px;

      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }

    & .enter-button {
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      border-radius: 8px;
      background-color: var(--primary);

      &:disabled {
        background-color: var(--gray-button);
        & img {
          filter: initial;
        }
      }

      & img {
        width: 20px;
        transform: rotate(45deg);
        filter: brightness(10);
      }
    }

    & .msg-tool-wrap {
      display: flex;
      gap: 0 4px;
      align-items: center;
      & .tool-item {
        &:hover {
          background-color: var(--input-border);
        }
        & img {
          height: 24px;
        }
      }

      & .emoji-tool {
        position: relative;
        & emoji-picker {
          top: -100px;
          position: absolute;
          transform: translate(100%, -100%);
          right: 0;
        }
      }
    }

    & .user-info-side-bar {
      width: 300px;
      flex-shrink: 0;
      background-color: var(--nav-bg);

      & p,
      span {
        color: var(--white);
      }

      & > div {
        padding: 8px 10px;
        border-bottom: 1px solid var(--dark-gray);

        &:last-child {
          border: none;
        }
      }

      & .user-info-title {
        display: flex;
        align-items: center;
        gap: 0 4px;

        & .toggle-bar-button {
          & img {
            height: 22px;
            transform: rotate(-90deg);
          }
        }

        & .title-text {
          font-size: 18px;
          font-weight: 600;
        }
      }

      & .profile-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px 0;
        & .profile-top {
          display: flex;
          align-items: center;
          gap: 0 8px;
        }

        & .profile-bottom {
          display: flex;
          align-items: center;
          justify-content: space-between;

          & .channel-logo {
            width: 18px;
          }

          & .channel-button {
            background-color: transparent;
            color: var(--white);
            font-size: 14px;
            cursor: pointer;
            &:hover {
              background-color: var(--hover-tool-bg);
            }
          }
        }

        & .user-img {
          width: 40px;
          height: 40px;
        }

        & .user-text {
          display: flex;
          flex-direction: column;
          & .user-name {
            font-weight: 600;
          }

          & .user-id {
            font-size: 14px;
          }
        }
      }

      & .fields-wrap {
        & .fields-title {
          display: flex;
          justify-content: space-between;
          align-items: center;
        }

        & .manage-link {
          color: var(--primary);
          cursor: pointer;
          font-size: 14px;
          padding: 0 16px;
          &:hover {
            text-decoration: underline;
          }
        }

        & .fields-label-list {
          padding-top: 8px;
          display: flex;
          flex-direction: column;
          gap: 8px 0;
        }

        & .fields-label-item {
          display: flex;
          flex-direction: column;
          gap: 4px 0;
        }

        & .fields-label-text {
          display: flex;
          align-items: center;
          gap: 0 4px;

          & .label-text {
            color: var(--sub-text);
            font-size: 14px;
          }

          & .tooltip {
            left: auto;
            right: 28px;
          }
        }

        & .phone-number-wrap {
          display: flex;
          gap: 0 10px;
          align-items: center;
          border-radius: 8px;
          transition-duration: 0.3s;

          & .phone-country-select {
            & span {
              font-weight: 600;
            }
          }

          &:has(input:focus) {
            padding: 8px 12px;
            border: 1px solid var(--dark-gray);
          }

          & input {
            width: 100%;
            background-color: transparent;
            border: none;
            color: var(--white);
            outline: none;
            &:hover {
              color: var(--primary);
            }

            &:focus {
              color: var(--white);
            }
          }
        }

        & .field-input {
          border-radius: 8px;
          background-color: transparent;
          border: none;
          color: var(--white);
          outline: none;
          transition-duration: 0.3s;

          &:hover {
            color: var(--primary);
          }

          &:focus {
            color: var(--white);
            padding: 8px 12px;
            border: 1px solid var(--dark-gray);
          }
        }
      }
    }
  }

  & .closing-notes-button-wrap {
    position: relative;
  }

  & .open-commit-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .closing-notes-wrap {
    width: 460px;
    cursor: auto;
    & .category-sub-text {
      font-size: 14px;
      color: var(--sub-text);
    }

    & .summary-textarea {
      width: 100%;
      height: 70px;
      background-color: transparent;
      border-color: var(--dark-gray);
      resize: none;
      color: var(--white);
      padding: 8px 10px;
      font-size: 14px;
    }
  }
}

/* CSS inbox modals */

& .create-custom-inbox {
  & .header-wrap {
    & .title {
      display: flex;
      align-items: center;
      gap: 0 8px;
      & > span {
        font-size: 18px;
      }

      & .info-tooltip-wrap {
        position: relative;

        &.open {
          & .tool-item {
            & img {
              filter: var(--primary-filter);
            }
          }

          & .tooltip {
            display: initial;
          }
        }

        & .tool-item {
          & img {
            width: 20px;
            height: 20px;
          }
        }

        & .tooltip {
          left: 50%;
          transform: translate(-50%, 100%);
          bottom: 0;
          & p {
            color: var(--black);
            font-size: 14px;
            font-weight: 600;
          }

          & ul {
            list-style: initial;
            padding-left: 24px;
            padding-top: 4px;
          }

          & li {
            font-size: 14px;
          }
        }
      }
    }
  }

  & .custom-inbox-label {
    display: flex;
    align-items: center;
    gap: 0 8px;
    background-color: var(--bg);
    padding: 6px 10px;
    width: 100%;
    border-radius: 8px;
    border-color: var(--dark-gray);
    & > img {
      width: 18px;
    }
    & > input {
      background-color: transparent;
      border: none;
      color: var(--white);
    }
  }

  & .sharing-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px 0;
    margin-top: 8px;
  }

  & .sharing-option-item {
    display: flex;
    padding: 12px;
    gap: 0 12px;
    background-color: var(--bg);
    border-radius: 8px;
    align-items: flex-start;
    border: 1px solid var(--dark-gray);
    cursor: pointer;

    &:has(input:checked) {
      border-color: var(--primary);
      background-color: var(--hover-primary);
    }

    & .option-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    & .option-title {
      font-size: 14px;
    }

    & .option-text {
      font-size: 14px;
      color: var(--sub-text);
    }
  }

  & .admin-settings-wrap {
    /* & .add-admin-button {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background-color: transparent;
      border: 1px solid var(--sub-text);
      padding: 2px;

      &:hover {
        background-color: var(--hover-tool-bg);
      }

      & img {
        width: 100%;
        height: 100%;
      }
    } */
  }

  & .admin-settings-field {
    margin-top: 8px;
  }

  & .admin-tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 200px;
    overflow: auto;

    &:has(.tag-item) {
      overflow: hidden;
      animation-name: createTag;
      animation-duration: 0.2s;
    }
  }

  & .user-select-box {
    border-color: var(--dark-gray);
    background-color: var(--bg);
    margin-top: 8px;

    & .datalist-input {
      color: var(--white);
    }

    & .datalist-tag-item {
      border-color: var(--dark-gray);
    }

    & .datalist-arrow {
      filter: brightness(10);
    }

    & .datalist-option-wrap {
      border-color: var(--dark-gray);
    }
  }
}

& .create-new-contact {
  & .title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;

    & .assign-select {
      & span {
        font-size: 14px;
      }
    }
  }

  & .body-wrap {
    & .contact-input-wrap {
      margin-top: 16px;
    }

    & .tag-list {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      max-height: 200px;
      overflow: auto;
      margin-top: 8px;

      &:has(.tag-item) {
        overflow: hidden;
        animation-name: createTag;
        animation-duration: 0.2s;
      }

      & .tag-item {
        border: none;
        & span {
          color: var(--white);
        }
        & img {
          filter: brightness(100);
        }
      }
    }
  }

  & .contact-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px 0;

    & input {
      width: 100%;
      color: var(--white);
    }

    & .input {
      padding: 8px 10px;
      background-color: var(--bg);
    }

    & .phone-number-wrap {
      display: flex;
      align-items: center;
      gap: 0 10px;
      width: 100%;
      & input {
        background-color: transparent;
        border: none;
        outline: none;
      }
    }
  }

  & .tags-datalist {
    background-color: var(--bg);
    border: 1px solid transparent;
    margin-top: 8px;

    & input {
      color: var(--white);
      font-size: 16px;
    }

    & .datalist-tag-item {
      border-color: var(--dark-gray);
    }

    & .datalist-option-wrap {
      max-height: 165px;
      overflow-y: auto;
      &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }
      &::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb);
        border-radius: 10px;
      }
      &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03);
      }
    }
  }
}

/* CSS contacts */

#contracts {
  & .side-bar-contents {
    & .header {
      & .icon-input {
        background-color: var(--search-input-bg);
        padding: 4px 10px;
        & img {
          width: 24px;
        }
      }

      & .border-select-box {
        & > div {
          height: 36px;
          background-color: var(--primary);
          border-color: var(--bg);

          &:hover {
            filter: contrast(0.8);
          }

          & span {
            color: var(--white);
          }
          & img {
            filter: brightness(100);
          }
        }
      }
    }
  }

  & .contacts-wrap {
    width: 100%;
    height: 100%;
  }

  & .table-container {
    width: 100%;
    overflow: auto;
    max-height: calc(100% - 52px);
  }

  & .contacts-table {
    & thead {
      position: sticky;
      top: 0;
      background-color: var(--white);
      & th {
        background-color: var(--white);
      }
    }

    & tbody {
      & tr {
        cursor: pointer;

        &:nth-of-type(odd) {
          & td {
            background-color: var(--table-bg);
          }
        }

        &:hover {
          background-color: var(--hover-primary);
        }
      }

      & td {
        background-color: var(--white);
      }
    }

    & .user-name-td {
      display: flex;
      align-items: center;
      gap: 8px;

      & .user-img {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
      }

      & span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    & .channel-td {
      & img {
        width: 18px;
        height: 18px;
      }
    }
  }
}

/* CSS general */

.general-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  max-width: 60%;
  width: 100%;

  & .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px 0;

    & .input-title {
      display: flex;
      gap: 4px;
      align-items: center;

      & span {
        font-size: 14px;
      }
    }

    & input {
      font-size: 14px;
    }
  }

  & .weekly-box {
    display: flex;
    flex-direction: column;
    gap: 24px 0;

    & .weekly-toggle-wrap {
      & .weekly-title {
        margin-bottom: 6px;
      }

      & .toggle-wrap {
        display: flex;
        gap: 40px;

        & span {
          font-size: 14px;
          color: var(--sub-text);
        }

        & img {
          height: 42px;
          cursor: pointer;
        }
      }
    }

    & .weekly-recipient-wrap {
      display: flex;
      flex-direction: column;
      gap: 8px 0;

      & .recipient-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
      }

      & .add-recipient-button {
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        border: 1px solid var(--sub-text);
        background-color: var(--sub-text);
        width: fit-content;

        &:hover {
          background-color: #8c8e94;
          border: 1px solid #8c8e94;
        }

        & img {
          width: 22px;
          height: 22px;
          filter: brightness(10);
        }
      }
    }
  }
}

/* CSS user */

.user-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-box-item {
    & .last-seen-on-text {
      font-size: 14px;
      color: var(--sub-text);
    }
  }
}

/* CSS teams */

.teams-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-box-item {
    & .manage-button {
      & img {
        filter: brightness(1.2) grayscale(1);
      }
    }
  }
}

/* CSS channels */

.channels-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-top-wrap {
    & .icon-input {
      background-color: var(--search-input-bg);
      padding: 4px 10px;
      & img {
        width: 24px;
      }
      & input {
        color: var(--black);
      }
    }
  }

  & .channel-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

    overflow: auto;
    padding-bottom: 24px;
  }

  & .channel-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-grow: 1;
  }

  & .channel-item {
    display: flex;
    flex-direction: column;
    & .channel-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px 0;
    }

    & .channel-name {
      font-weight: 600;
    }

    & .channel-text {
      font-size: 14px;
      color: var(--sub-text);
      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }

    & .channel-bottom {
      padding-top: 16px;
      border-top: 1px solid var(--input-border);
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }

    & .channel-img {
      flex-shrink: 0;
    }
  }
}

#allChannel {
  & .cate-tab-wrap {
    display: flex;
    align-items: center;
    gap: 0 8px;
  }

  & .category-name {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
  }
  & .channel-item {
    & .channel-body {
      align-items: flex-start;
    }
  }
}

/* CSS integrations */

.integrations-wrap {
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
  & .setting-box-list {
    height: 100%;
    overflow: auto;
  }

  & .setting-box-item {
    & .logo-img {
      width: 100px;
    }

    & .manage-button {
      padding: 4px 14px;
      border: 1px solid var(--input-border);
      color: var(--sub-text);
    }
  }
}

/* CSS growthwidgets */

.widgets-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* CSS contactfields */

.contact-fields-wrap {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  & .setting-table-container {
    height: 100%;
    overflow: auto;
  }
}

/* CSS lifecycle */

.lifecycle-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 48px 0;
  & .lifecycle-view-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & .text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;

      & .title {
        font-weight: 600;
      }

      & .sub-text {
        color: var(--sub-text);
      }
    }

    & .view-toggle-button {
      width: 42px;
      height: 42px;
    }
  }

  & .lifecycle-stages-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    & .stages-top {
      display: flex;
      align-items: center;
      justify-content: space-between;

      & .title {
        font-size: 22px;
        font-weight: 600;
      }

      & .button-wrap {
        display: flex;
        align-items: center;
        gap: 0 8px;
      }
    }

    & .stages-box-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 16px;
      padding-top: 16px;
      overflow: hidden;

      & > div {
        border: 1px solid var(--input-border);
        border-radius: 8px;
        height: fit-content;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 100%;
      }

      & .box-left {
        & .box-title {
          background-color: var(--hover-primary);
        }

        & .box-body {
          overflow: auto;
          & .stage-item {
            align-items: center;
          }
        }
      }

      & .box-right {
        & .box-title {
          background-color: #ff623a30;
        }

        & .box-body {
          & .stage-item {
            align-items: flex-start;
          }
        }
      }

      & .box-title {
        padding: 16px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px 0;
        & .title {
          font-weight: 600;
        }

        & .sub-text {
          font-size: 14px;
        }
      }

      & .box-body {
        padding: 16px;

        & .stage-list-wrap {
          display: flex;
          flex-direction: column;
          gap: 16px 0;
        }

        & .stage-item {
          display: flex;
          gap: 0 8px;

          & .grip-button {
            width: fit-content;
            & img {
              height: 22px;
              width: 22px;
            }
          }

          & .emoticon {
            font-size: 22px;
            line-height: 22px;
            padding: 4px;
            border: 1px solid var(--input-border);
            border-radius: 8px;
            cursor: pointer;

            &:hover {
              background-color: var(--hover-tool-bg);
            }
          }

          & .stage-contents {
            display: flex;
            flex-direction: column;
            gap: 6px 0;
            flex-grow: 1;
            & span {
              font-size: 14px;
              color: var(--sub-text);
            }
          }

          & .stage-title-input {
            padding: 2px 8px;
            border-radius: 8px;
            border: 1px solid var(--input-border);
            display: flex;
            gap: 0 8px;
            height: 32px;
            align-items: center;

            &:hover {
              border-color: var(--primary);
            }

            &:has(input:focus) {
              border-color: var(--primary);
              outline: 0;
              box-shadow: 0 0 0 4px #b5d9d330;
            }

            & input {
              border: none;
              outline: none;
              flex-grow: 1;

              &::placeholder {
                color: var(--placeholder);
              }
            }

            & .stage-tag {
              padding: 4px 8px;
              border-radius: 8px;
              background-color: var(--hover-primary);
              color: var(--primary);
              font-weight: 600;
            }
          }

          & .show-description-button {
            cursor: pointer;
            &:hover {
              color: var(--black);
            }
          }

          & .stage-option-button {
            border: 1px solid var(--input-border);
            & img {
              width: 26px;
            }
          }
        }

        & .add-stage-button {
          width: 100%;
          margin-top: 22px;
        }
      }
    }
  }
}

/* CSS closingnotes */

.closing-notes-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;

  & .setting-table-container {
    height: 100%;
    overflow: auto;
  }
}

& .closing-notes-setting {
  display: flex;
  flex-direction: column;
  gap: 4px;
  & .setting-title {
    display: flex;
    align-items: center;
    gap: 0 4px;
    padding-bottom: 20px;

    & > span {
      font-size: 14px;
      color: var(--sub-text);
    }
  }
}

/* CSS tags */

.tags-wrap {
  & table {
    & .tag {
      padding: 4px 6px;
      font-size: 14px;
      border-radius: 8px;
      &.red {
        background-color: #d02711db;
        border: 1px solid var(--red);
        color: var(--white);
      }
    }
  }
}

/* CSS dataexport */

.data-export-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px 0;
  & .export-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    & span {
      font-size: 14px;
      color: var(--sub-text);
    }
  }

  & .export-button-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;

    & button {
      width: fit-content;
    }
  }
}

/* CSS userprofile */

.user-profile-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  & .setting-profile-wrap {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    gap: 36px 0;
  }

  & .profile-body-wrap {
    display: flex;
    gap: 0 24px;
  }

  & .profile-img-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
    padding: 0 18px;

    & .user-img {
      width: 82px;
      height: 82px;
    }
  }

  & .profile-input-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    & .input-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;

      & .input-title {
        & span {
          font-size: 14px;
          color: var(--sub-text);
          font-weight: 600;
        }
      }

      & input {
        font-size: 14px;
      }
    }
  }

  & .profile-bottom-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0 12px;
  }

  & hr {
    background-color: var(--dark-gray);
    height: 1px;
    border: none;
  }

  & .auth-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;

    & > span {
      font-weight: 600;
    }

    & .auth-toggle-wrap {
      display: flex;
      align-items: center;
      gap: 0 6px;

      & img {
        width: 36px;
        height: 36px;
        cursor: pointer;
      }
    }
  }
}

/* CSS notifications */

.notifications-wrap {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  & .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
  }

  & .input-title {
    display: flex;
    align-items: center;
    gap: 0 4px;

    & > span {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }

  & .enable-text {
    font-size: 14px;
    color: var(--sub-text);

    & .link {
      font-size: 14px;
      color: var(--primary);
      font-weight: 600;
      cursor: pointer;
      &:hover {
        border-bottom: 1px solid var(--primary);
      }
    }
  }

  & .mobile-push-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;
  }

  & .offline-notifications-wrap {
    display: flex;
    align-items: center;
    gap: 0 6px;
  }
}

/* CSS connect channels */

#connectLine {
  & .check-complete-wrap {
    display: flex;
    gap: 0 8px;
    align-items: center;
    cursor: pointer;

    & span {
      color: var(--sub-text);
    }
  }

  & .tutorial-contents-wrap {
    & .step-contents {
      display: flex;
      flex-direction: column;
      gap: 24px 0;
    }
  }

  & .copy-webhook-url {
    width: 50%;
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;

    & span {
      padding: 8px 10px;
      background-color: var(--hover-tool-bg);
      border-radius: 0 8px 8px 0;
      width: 100%;
      color: var(--sub-text);
    }

    & button {
      background-color: transparent;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;

      & img {
        width: 22px;
      }
    }
  }
}

#connectKakao {
  & #kakaoLoginButton {
    & img {
      width: 300px;
    }
  }
}

/* CSS dashboard2 */

#dashboard2 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--table-bg);

  /* ===== Top bar ===== */
  & .ops-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--dark-gray);
    flex-shrink: 0;
    gap: 16px;

    & .topbar-search {
      flex: 1;
      max-width: 420px;

      & .search-input {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--nav-bg);
        border: 1px solid var(--dark-gray);
        border-radius: 8px;
        padding: 7px 12px;

        & img {
          width: 16px;
          opacity: 0.5;
          flex-shrink: 0;
          filter: invert(1);
        }

        & input {
          border: none;
          background: transparent;
          outline: none;
          font-size: 13px;
          color: var(--white);
          width: 100%;

          &::placeholder {
            color: var(--sub-text);
          }
        }
      }
    }

    & .topbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    & .topbar-right {
      display: flex;
      align-items: center;
      gap: 8px;

      & .hdr-badge {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 20px;
        background: var(--nav-bg);
        color: var(--sub-text);
        border: 1px solid var(--dark-gray);

        &.lang {
          font-weight: 600;
          color: var(--white);
        }
      }

      & .hdr-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: transparent;
        border: 1px solid var(--dark-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sub-text);
        font-size: 15px;

        &:hover {
          background: var(--dark-gray);
        }
      }

      & .hdr-primary-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        padding: 7px 14px;
        border-radius: 8px;

        & i {
          color: var(--white);
          font-size: 14px;
        }
      }
    }
  }

  /* ===== Inner scroll area ===== */
  & .ops-inner {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* ===== Page header ===== */
  & .ops-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    & .page-title-group {
      & h2 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
      }

      & p {
        font-size: 13px;
        color: var(--sub-text);
      }
    }

    & .page-btn-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
  }

  /* ===== Shared ops-btn ===== */
  & .ops-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--input-border);
    color: var(--text);

    &:hover {
      background: var(--hover-tool-bg);
    }

    &.ops-btn-sm {
      font-size: 11px;
      padding: 4px 9px;

      & .bi {
        font-size: 12px;
      }
    }

    &.ops-btn-primary {
      background: var(--primary);
      color: var(--white);
      border-color: var(--primary);

      & span {
        color: var(--white);
      }

      &:hover {
        opacity: 0.9;
      }
    }

    & span {
      font-size: 14px;
    }
  }

  /* ===== Accent color helpers ===== */
  .ac-blue {
    background: #4385f6;
  }
  .ac-red {
    background: #ff623a;
  }
  .ac-green {
    background: #0ec36b;
  }
  .ac-purple {
    background: #7c4ff0;
  }
  .ac-orange {
    background: #e67e22;
  }
  .ac-violet {
    background: #9b59b6;
  }
  .ac-crimson {
    background: #eb4833;
  }
  .ac-teal {
    background: #3dc0a9;
  }

  /* ===== KPI row ===== */
  & .kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    & .kpi-card {
      background: var(--white);
      border: 1px solid var(--input-border);
      border-radius: 12px;
      padding: 16px 18px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;

      & .kpi-label {
        font-size: 12px;
        color: var(--sub-text);
      }

      & .kpi-value-row {
        display: flex;
        align-items: baseline;
        gap: 4px;

        & .kpi-value {
          font-size: 28px;
          font-weight: 700;
          color: var(--text);
        }

        & .kpi-unit {
          font-size: 13px;
          color: var(--sub-text);
        }
      }

      & .kpi-delta {
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;

        &.up {
          color: var(--green);
        }

        &.down {
          color: var(--red);
        }
      }

      & .kpi-chart-area {
        height: 48px;
        margin-top: 8px;
      }
    }
  }

  /* ===== Section wrapper ===== */
  & .ops-section {
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;

    & .ops-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;

      & .sec-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);

        & .sec-count {
          font-size: 12px;
          color: var(--sub-text);
          margin-left: 6px;
        }
      }

      & .sec-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 12px;
        color: var(--sub-text);

        & .sec-link {
          color: var(--primary);
          cursor: pointer;
          font-size: 12px;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  /* ===== Team cards ===== */
  & .team-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;

    & .team-card {
      border: 1px solid var(--input-border);
      border-radius: 10px;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;

      & .team-name-row {
        display: flex;
        align-items: center;
        gap: 6px;

        & .team-dot {
          width: 8px;
          height: 8px;
          border-radius: 50%;
          flex-shrink: 0;
        }

        & .team-name {
          font-size: 12px;
          font-weight: 600;
          color: var(--text);
        }
      }

      & .team-num-row {
        display: flex;
        align-items: baseline;
        gap: 3px;

        & .team-num {
          font-size: 22px;
          font-weight: 700;
          color: var(--text);
        }

        & .team-num-unit {
          font-size: 12px;
          color: var(--sub-text);
        }
      }

      & .team-bar-wrap {
        height: 4px;
        background: var(--input-border);
        border-radius: 4px;
        overflow: hidden;

        & .team-bar-fill {
          height: 100%;
          border-radius: 4px;
          transition: width 0.3s ease;
          width: var(--fill, 0%);
        }
      }

      & .team-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;

        & .team-total {
          font-size: 11px;
          color: var(--sub-text);
        }

        & .team-change {
          font-size: 11px;
          font-weight: 600;

          &.up {
            color: var(--green);
          }

          &.down {
            color: var(--red);
          }

          &.neutral {
            color: var(--sub-text);
          }
        }
      }
    }
  }

  /* ===== Bottom row ===== */
  & .ops-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: 0;
  }

  /* ===== Queue panel ===== */
  & .queue-panel {
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;

    & .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;

      & .panel-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 6px;

        & .badge-count {
          font-size: 11px;
          font-weight: 600;
          background: var(--primary);
          color: var(--white);
          border-radius: 10px;
          padding: 1px 7px;
        }

        & .badge-meta {
          font-size: 11px;
          color: var(--sub-text);
          font-weight: 400;
          margin-left: 2px;
        }
      }

      & .panel-actions {
        display: flex;
        gap: 6px;
      }
    }

    & .queue-chips-wrap {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;

      & .q-chip {
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 20px;
        background: transparent;
        border: 1px solid var(--input-border);
        color: var(--sub-text);
        cursor: pointer;

        & b {
          color: var(--text);
        }

        &.active {
          background: var(--primary);
          border-color: var(--primary);
          color: var(--white);

          & b {
            color: var(--white);
          }
        }
      }
    }

    & .queue-tabs-wrap {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--input-border);

      & .q-tab {
        font-size: 12px;
        padding: 6px 12px;
        background: transparent;
        border: none;
        color: var(--sub-text);
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;

        & b {
          margin-left: 4px;
        }

        &.active {
          color: var(--primary);
          border-bottom-color: var(--primary);
          font-weight: 600;
        }
      }
    }

    & .queue-list-wrap {
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow-y: auto;
      flex: 1;
      min-height: 0;

      & .queue-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 4px;
        border-bottom: 1px solid var(--input-border);
        cursor: pointer;

        &:last-child {
          border-bottom: none;
        }

        &:hover {
          background: var(--table-bg);
        }

        & .q-avatar {
          width: 34px;
          height: 34px;
          border-radius: 50%;
          color: var(--white);
          font-size: 14px;
          font-weight: 700;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-shrink: 0;
        }

        & .q-body {
          flex: 1;
          min-width: 0;

          & .q-name-line {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 3px;
            flex-wrap: wrap;

            & .q-name {
              font-size: 13px;
              font-weight: 600;
              color: var(--text);
            }

            & .q-tag {
              font-size: 10px;
              padding: 1px 5px;
              border-radius: 4px;
              font-weight: 600;

              &.t-fb {
                background: #e7f0ff;
                color: #4385f6;
              }

              &.t-lc {
                background: var(--hover-tool-bg);
                color: var(--sub-text);
              }

              &.t-vip {
                background: #fff3e0;
                color: #e67e22;
              }

              &.t-kakao {
                background: #fff9c4;
                color: #b8860b;
              }

              &.t-new {
                background: #e8f5e9;
                color: var(--green);
              }
            }
          }

          & .q-msg-text {
            font-size: 12px;
            color: var(--sub-text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }

        & .q-timer {
          font-size: 12px;
          font-weight: 600;
          flex-shrink: 0;
          padding: 2px 6px;
          border-radius: 6px;
          color: var(--sub-text);

          &.urgent {
            background: #fdecea;
            color: var(--red);
          }

          &.warn {
            background: #fff8e1;
            color: #e67e22;
          }

          &.ok {
            background: #e8f5e9;
            color: var(--green);
          }
        }
      }
    }
  }

  /* ===== Schedule panel ===== */
  & .schedule-panel {
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;

    & .sched-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;

      & .panel-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 6px;

        & .badge-count {
          font-size: 11px;
          font-weight: 600;
          background: var(--primary);
          color: var(--white);
          border-radius: 10px;
          padding: 1px 7px;
        }

        & .badge-meta {
          font-size: 11px;
          color: var(--sub-text);
          font-weight: 400;
          margin-left: 2px;
        }
      }

      & .sched-date-nav {
        display: flex;
        align-items: center;
        gap: 6px;

        & .nav-btn {
          width: 26px;
          height: 26px;
          border-radius: 6px;
          background: transparent;
          border: 1px solid var(--input-border);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 12px;
          color: var(--sub-text);

          &:hover {
            background: var(--hover-tool-bg);
          }
        }

        & .date-text {
          font-size: 13px;
          font-weight: 600;
          color: var(--text);
          min-width: 90px;
          text-align: center;
        }
      }
    }

    & .sched-col-hd-row {
      flex-shrink: 0;

      & .sched-grid {
        display: grid;
        grid-template-columns: 52px repeat(4, 1fr);

        & .sched-col-hd {
          padding: 6px 8px;
          font-size: 11px;
          font-weight: 600;
          color: var(--sub-text);
          /* border: 1px solid var(--input-border); */
          border-bottom: 1px solid var(--input-border);
          display: flex;
          align-items: center;
          gap: 4px;

          & .col-label {
            font-size: 11px;
            font-weight: 600;
          }

          & .col-badge {
            font-size: 10px;
            background: var(--hover-tool-bg);
            border-radius: 8px;
            padding: 1px 5px;
            color: var(--sub-text);
          }

          &:first-child {
            border: none;
            border-bottom: 1px solid var(--input-border);
          }
        }
      }
    }

    & .sched-body {
      flex: 1;
      overflow-y: auto;
      min-height: 0;

      & .sched-grid {
        display: grid;
        grid-template-columns: 52px repeat(4, 1fr);

        & .sched-time-label {
          font-size: 11px;
          color: var(--sub-text);
          padding: 8px 6px;
          /* border-right: 1px solid var(--input-border); */
          border-bottom: 1px solid var(--input-border);
          display: flex;
          align-items: flex-start;
        }

        & .sched-lunch-row {
          grid-column: 2 / span 4;
          background: rgba(255, 200, 50, 0.06);
          border-bottom: 1px solid var(--input-border);
          /* border-left: 1px solid var(--input-border); */
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 11px;
          color: var(--sub-text);
          letter-spacing: 0.05em;
          min-height: 48px;
        }

        & .sched-time-label.lunch {
          color: var(--sub-text);
        }

        & .sched-cell {
          /* border-right: 1px solid var(--input-border); */
          border-bottom: 1px solid var(--input-border);
          padding: 4px;
          min-height: 48px;

          &:last-child {
            border-right: none;
          }

          &:nth-last-child(-n + 4) {
            border-bottom: none;
          }

          & .sched-event {
            border-radius: 6px;
            padding: 4px 6px;
            display: flex;
            flex-direction: column;
            gap: 1px;
            height: 100%;

            & .ev-title {
              font-size: 11px;
              font-weight: 600;
            }

            & .ev-sub {
              font-size: 10px;
              opacity: 0.8;
            }

            &.ev-green {
              background: #e8f5e9;
              color: #2e7d32;
            }

            &.ev-blue {
              background: #e7f0ff;
              color: #1a56b0;
            }

            &.ev-teal {
              background: #e0f7f4;
              color: #00796b;
            }

            &.ev-pink {
              background: #fce4ec;
              color: #c2185b;
            }

            &.ev-orange {
              background: #fff3e0;
              color: #e65100;
            }

            &.ev-purple {
              background: #f3e5f5;
              color: #6a1b9a;
            }
          }
        }
      }
    }
  }
}

/* CSS index */

html {
  scroll-behavior: smooth;
}

#landing {
  --bg: #0a0f1f;
  --bg-2: #0e1530;
  --panel: #111a36;
  --panel-2: #16224a;
  --ink: #eef2ff;
  --muted: #9fb0d8;
  --muted-2: #6f81ad;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #3b82f6;
  --brand-2: #22d3ee;
  --brand-grad: linear-gradient(120deg, #3b82f6, #22d3ee);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;

  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  & p,
  & span,
  & h1,
  & h2,
  & h3,
  & h4,
  & b,
  & small {
    color: inherit;
  }

  & .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
  }

  & .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--brand-2);
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  & .hero {
    & .grad {
      background: var(--brand-grad);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-size: clamp(34px, 6vw, 62px);
      font-weight: 900;
    }
  }

  & h2.sec-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;

    & .grad {
      font-size: clamp(26px, 4vw, 40px);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }
  }

  & .sec-sub {
    color: var(--muted);
    font-size: clamp(15px, 2vw, 18px);
    margin-top: 14px;
    max-width: 680px;

    & b {
      font-size: clamp(15px, 2vw, 18px);
      font-weight: 800;
    }
  }

  & section {
    padding: 96px 0;
    position: relative;
  }

  & .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
  }

  /* NAV */
  & header.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10, 15, 31, 0.72);
    border-bottom: 1px solid var(--line);
  }

  & .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
  }

  & .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;

    & .dot {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--brand-grad);
      display: grid;
      place-items: center;
      font-size: 15px;
      color: #06122b;
      font-weight: 900;
    }
  }

  & .nav-links {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
    color: var(--muted);
    font-weight: 500;

    & a {
      font-size: 14.5px;
      font-weight: 500;
    }

    & a:hover {
      color: var(--ink);
    }

    @media (max-width: 820px) {
      display: none;
    }
  }

  & .nav-cta {
    background: var(--brand-grad);
    color: #06122b;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
  }

  /* HERO */
  & .hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(700px 360px at 50% -8%, rgba(59, 130, 246, 0.3), transparent 60%),
        radial-gradient(560px 320px at 80% 10%, rgba(34, 211, 238, 0.16), transparent 60%);
    }

    & h1 {
      font-size: clamp(34px, 6vw, 62px);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.12;
    }

    & p.lead {
      color: var(--muted);
      font-size: clamp(16px, 2.4vw, 21px);
      margin: 24px auto 0;
      max-width: 680px;

      & b {
        font-size: clamp(16px, 2.4vw, 21px);
        font-weight: 800;
      }
    }
  }

  & .hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 38px;
  }

  & .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 16px;
    padding: 15px 28px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition:
      transform 0.15s ease,
      box-shadow 0.15s;

    &.btn-primary {
      background: var(--brand-grad);
      color: #06122b;
      box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);

      &:hover {
        transform: translateY(-2px);
      }
    }

    &.btn-ghost {
      background: rgba(255, 255, 255, 0.05);
      color: var(--ink);
      border: 1px solid var(--line);

      &:hover {
        background: rgba(255, 255, 255, 0.09);
      }
    }
  }

  & .hero-note {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted-2);
  }

  & .hero-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 46px;
  }

  & .chip {
    font-size: 13.5px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 999px;
  }

  /* STATS */
  & .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 64px;

    @media (max-width: 720px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  & .stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;

    & .n {
      font-size: clamp(24px, 3.4vw, 34px);
      font-weight: 900;
      background: var(--brand-grad);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    & .l {
      font-size: 13px;
      color: var(--muted);
      margin-top: 6px;
    }
  }

  /* PROBLEM */
  & .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;

    @media (max-width: 880px) {
      grid-template-columns: 1fr;
    }
  }

  & .card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;

    & .ic {
      width: 46px;
      height: 46px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      font-size: 22px;
      background: rgba(248, 113, 113, 0.12);
      margin-bottom: 16px;
    }

    & h3 {
      font-size: 18.5px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    & p {
      color: var(--muted);
      font-size: 14.5px;
    }
  }

  & .loss {
    margin-top: 36px;
    background: linear-gradient(120deg, rgba(248, 113, 113, 0.1), rgba(251, 191, 36, 0.06));
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: var(--radius);
    padding: 24px 28px;
    font-size: 15.5px;

    & b {
      color: #fca5a5;
    }
  }

  /* SOLUTION */
  & .layers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 48px;

    @media (max-width: 980px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 520px) {
      grid-template-columns: 1fr;
    }
  }

  & .layer {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition:
      transform 0.15s,
      border-color 0.15s;

    &:hover {
      transform: translateY(-4px);
      border-color: rgba(34, 211, 238, 0.4);
    }

    & .ic {
      font-size: 26px;
      margin-bottom: 12px;
    }

    & h4 {
      font-size: 15.5px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    & p {
      font-size: 13px;
      color: var(--muted);
    }
  }

  /* WORKFLOW */
  & .flow {
    display: flex;
    gap: 10px;
    margin-top: 48px;
    overflow-x: auto;
    padding-bottom: 8px;

    & .step {
      min-width: 150px;
      flex: 1;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px 16px;
      position: relative;

      & .num {
        font-size: 12px;
        font-weight: 800;
        color: var(--brand-2);
      }

      & h4 {
        font-size: 15px;
        font-weight: 800;
        margin: 8px 0 4px;
      }

      & p {
        font-size: 12px;
        color: var(--muted);
      }
    }

    & .arrow {
      display: grid;
      place-items: center;
      color: var(--muted-2);
      font-size: 20px;
      min-width: 18px;

      @media (max-width: 880px) {
        display: none;
      }
    }
  }

  /* FEATURES */
  & .feat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 64px;

    &:first-of-type {
      margin-top: 48px;
    }

    &.rev .feat-text {
      order: 2;
    }

    @media (max-width: 880px) {
      grid-template-columns: 1fr;
      gap: 28px;

      &.rev .feat-text {
        order: 0;
      }
    }
  }

  & .feat-text {
    & .tag {
      font-size: 12.5px;
      font-weight: 800;
      color: var(--brand-2);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    & h3 {
      font-size: clamp(22px, 3vw, 30px);
      font-weight: 850;
      margin: 12px 0 14px;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }

    & p {
      color: var(--muted);
      font-size: 15.5px;
    }

    & ul {
      list-style: none;
      margin-top: 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    & li {
      font-size: 14.5px;
      color: var(--ink);
      display: flex;
      gap: 10px;
      align-items: flex-start;

      &::before {
        content: "✓";
        color: var(--good);
        font-weight: 900;
      }
    }
  }

  & .mock {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);

    & .mock-head {
      display: flex;
      align-items: center;
      gap: 7px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 14px;

      & .d {
        width: 11px;
        height: 11px;
        border-radius: 50%;
      }

      & .t {
        margin-left: auto;
        font-size: 12px;
        color: var(--muted-2);
      }
    }

    & .mock-kpi {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 14px;

      & div {
        background: rgba(34, 211, 238, 0.07);
        border: 1px solid rgba(34, 211, 238, 0.18);
        border-radius: 10px;
        padding: 12px;
        text-align: center;
      }

      & b {
        display: block;
        font-size: 19px;
        background: var(--brand-grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 900;
      }

      & span {
        font-size: 11px;
        color: var(--muted);
      }
    }
  }

  & .row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;

    & .pf {
      font-size: 11px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(59, 130, 246, 0.18);
      color: #93c5fd;
    }

    & .nm {
      font-size: 13.5px;
      font-weight: 600;
    }

    & .ms {
      font-size: 12.5px;
      color: var(--muted);
      margin-left: 2px;
    }

    & .tm {
      margin-left: auto;
      font-size: 11.5px;
      color: var(--muted-2);
    }
  }

  /* BEFORE/AFTER */
  & .ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 48px;

    @media (max-width: 780px) {
      grid-template-columns: 1fr;
    }
  }

  & .ba-card {
    border-radius: var(--radius);
    padding: 26px;

    & .lbl {
      font-size: 12.5px;
      font-weight: 800;
      letter-spacing: 0.08em;
      margin-bottom: 14px;
    }
  }

  & .ba-before {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.2);

    & .lbl {
      color: #fca5a5;
    }

    & .bubble.a {
      border-left: 3px solid var(--bad);
    }
  }

  & .ba-after {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.25);

    & .lbl {
      color: #6ee7b7;
    }

    & .bubble.a {
      border-left: 3px solid var(--good);
    }
  }

  & .bubble {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 14px;
    margin-bottom: 10px;

    &.q {
      border-left: 3px solid var(--muted-2);
      color: var(--muted);
    }
  }

  /* PRICING */
  & .price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;

    @media (max-width: 880px) {
      grid-template-columns: 1fr;
    }
  }

  & .plan {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
    display: flex;
    flex-direction: column;

    &.pop {
      border-color: rgba(34, 211, 238, 0.5);
      box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.25),
        0 20px 50px rgba(34, 211, 238, 0.12);

      & .pbtn {
        background: var(--brand-grad);
        color: #06122b;
        border: none;
      }
    }

    & .pop-tag {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--brand-grad);
      color: #06122b;
      font-size: 11.5px;
      font-weight: 900;
      padding: 5px 14px;
      border-radius: 999px;
      letter-spacing: 0.06em;
    }

    & h3 {
      font-size: 16px;
      font-weight: 800;
      color: var(--brand-2);
    }

    & .desc {
      font-size: 13px;
      color: var(--muted);
      margin-top: 4px;
    }

    & .pr {
      font-size: 30px;
      font-weight: 900;
      margin: 18px 0 4px;

      & small {
        font-size: 14px;
        color: var(--muted);
        font-weight: 600;
      }
    }

    & ul {
      list-style: none;
      margin: 18px 0 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    & li {
      font-size: 13.5px;
      color: var(--ink);
      display: flex;
      gap: 9px;

      &::before {
        content: "✓";
        color: var(--brand-2);
        font-weight: 900;
      }
    }

    & .pbtn {
      display: block;
      text-align: center;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 800;
      font-size: 14px;
      padding: 13px;
      border-radius: 11px;
      cursor: pointer;
    }
  }

  & .price-note {
    text-align: center;
    color: var(--muted-2);
    font-size: 13.5px;
    margin-top: 26px;
  }

  /* SIGNUP */
  & #signup {
    background: linear-gradient(160deg, #0e1530, #0a0f1f);
  }

  & .signup-box {
    background: var(--panel-2);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 56px);
    max-width: 820px;
    margin: 0 auto;
    box-shadow: var(--shadow);

    & h2 {
      font-size: clamp(24px, 3.6vw, 36px);
      font-weight: 900;
      letter-spacing: -0.02em;
      text-align: center;
      line-height: 1.25;
    }

    & p.s {
      color: var(--muted);
      text-align: center;
      margin: 14px auto 0;
      max-width: 560px;
      font-size: 15.5px;
    }
  }

  & form {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    @media (max-width: 640px) {
      grid-template-columns: 1fr;
    }
  }

  & .field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    &.full {
      grid-column: 1 / -1;
    }

    & label {
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);

      & .req {
        color: var(--brand-2);
      }
    }

    & input,
    & select {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--line);
      border-radius: 11px;
      padding: 13px 15px;
      font-size: 15px;
      color: var(--ink);
      font-family: inherit;
      outline: none;
      transition: border-color 0.15s;

      &:focus {
        border-color: var(--brand-2);
      }
    }

    & input::placeholder {
      color: var(--muted-2);
    }

    & select {
      appearance: none;
      cursor: pointer;

      & option {
        background: #0e1530;
      }
    }
  }

  & .chk-row {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);

    & input {
      margin-top: 3px;
      width: 16px;
      height: 16px;
      accent-color: var(--brand);
    }

    & a {
      color: var(--brand-2);
      text-decoration: underline;
      font-size: 13px;
    }

    & span {
      font-size: 13px;
    }
  }

  & .submit-row {
    grid-column: 1 / -1;

    & button {
      width: 100%;
      background: var(--brand-grad);
      color: #06122b;
      font-weight: 900;
      font-size: 17px;
      padding: 16px;
      border: none;
      border-radius: 13px;
      cursor: pointer;
      transition: transform 0.15s, opacity 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;

      &:hover:not(:disabled) {
        transform: translateY(-2px);
      }

      &:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
      }

      & .btn-spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2.5px solid rgba(6, 18, 43, 0.3);
        border-top-color: #06122b;
        border-radius: 50%;
        animation: btn-spin 0.7s linear infinite;
        flex-shrink: 0;
      }

      &.loading .btn-spinner {
        display: block;
      }
    }
  }

  @keyframes btn-spin {
    to { transform: rotate(360deg); }
  }

  & .form-foot {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted-2);
    margin-top: 2px;
  }

  & .success {
    display: none;
    text-align: center;
    padding: 20px 0;

    & .ico {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: rgba(52, 211, 153, 0.15);
      color: var(--good);
      display: grid;
      place-items: center;
      font-size: 38px;
      margin: 0 auto 18px;
    }

    & h3 {
      font-size: 24px;
      font-weight: 900;
    }

    & p {
      color: var(--muted);
      margin-top: 10px;
      font-size: 15px;
    }
  }

  /* TEAM */
  & .team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;

    @media (max-width: 780px) {
      grid-template-columns: 1fr;
    }
  }

  & .member {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;

    & .role {
      font-size: 12px;
      font-weight: 800;
      color: var(--brand-2);
      letter-spacing: 0.06em;
    }

    & .name {
      font-size: 18px;
      font-weight: 850;
      margin: 6px 0 10px;
    }

    & p {
      font-size: 13.5px;
      color: var(--muted);
    }
  }

  /* FOOTER */
  & footer {
    border-top: 1px solid var(--line);
    padding: 50px 0 60px;
    color: var(--muted-2);
    font-size: 13.5px;
  }

  & .foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;

    & .logo {
      font-size: 18px;
      color: var(--ink);
    }

    & div {
      font-size: 13.5px;
    }
  }

  & .disc {
    margin-top: 22px;
    font-size: 12px;
    color: var(--muted-2);
    max-width: 720px;
    line-height: 1.7;
  }

  & .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease,
      transform 0.7s ease;

    &.in {
      opacity: 1;
      transform: none;
    }
  }

  /* Section backgrounds */
  & #solution {
    background: var(--bg-2);
  }
  & #intelligentLayerRag {
    background: var(--bg-2);
  }
  & #team {
    background: var(--bg-2);
  }

  /* Hero */
  & .hero h1 {
    margin-top: 22px;
  }
  & p.lead b {
    color: #fff;
  }

  /* Solution section — second eyebrow (One Workflow) */
  & .eyebrow-sub {
    margin-top: 64px;
  }

  /* Smaller sec-title for flow heading */
  & h2.sec-title-sm {
    font-size: clamp(22px, 3vw, 30px);
  }

  /* Mock-head dot traffic-light colors */
  & .mock-head .d:nth-child(1) {
    background: #f87171;
  }
  & .mock-head .d:nth-child(2) {
    background: #fbbf24;
  }
  & .mock-head .d:nth-child(3) {
    background: #34d399;
  }

  /* Status badge colors for .tm */
  & .tm.tm-active {
    color: #34d399;
  }
  & .tm.tm-pending {
    color: #fbbf24;
  }

  /* Ad automation mock-kpi — flush top */
  & .mock-kpi.mock-kpi-flush {
    margin-top: 0;
  }

  /* Row with extra top margin */
  & .row.row-mt {
    margin-top: 12px;
  }

  /* Green platform pill */
  & .pf.pf-green {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
  }

  /* BA card note paragraphs */
  & .ba-before p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
  }
  & .ba-after p {
    font-size: 13px;
    color: #6ee7b7;
    margin-top: 14px;
  }

  /* Pricing sec-sub emphasis */
  & #pricing .sec-sub b {
    color: #fff;
  }

  /* Signup badge — centered */
  & #signup .badge {
    display: flex;
    width: max-content;
    margin: 0 auto 16px;
  }
}

/* CSS compose */

#compose {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--table-bg);

  /* ===== Tab bar ===== */
  & .compose-tabbar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--input-border);
    padding: 0 24px;
    flex-shrink: 0;
    gap: 4px;
  }

  & .compose-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--sub-text);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: -1px;
    transition: color 0.15s;

    &:hover {
      color: var(--text);
    }

    &.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
      font-weight: 600;
    }

    & .tab-badge {
      font-size: 10px;
      font-weight: 700;
      background: var(--red);
      color: var(--white);
      border-radius: 10px;
      padding: 1px 6px;
      line-height: 1.4;
    }
  }

  /* ===== 3-col layout ===== */
  & .compose-3col {
    display: grid;
    grid-template-columns: 1fr 320px 260px;
    gap: 0;
    flex: 1;
    overflow: hidden;
  }

  /* ===== Left column: editor ===== */
  & .compose-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--input-border);
    background: var(--white);
  }

  /* editor header */
  & .editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--input-border);
    flex-shrink: 0;
  }

  & .editor-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  & .editor-title {
    font-weight: 600;
    color: var(--text);
  }

  & .editor-autosave {
    font-size: 12px;
    color: var(--sub-text);
  }

  & .editor-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  & .editor-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--sub-text);
    cursor: pointer;
    transition: background 0.15s;

    &:hover {
      background: var(--hover-tool-bg);
    }
  }

  & .editor-char-count {
    font-size: 12px;
    color: var(--sub-text);
  }

  /* toolbar */
  & .editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--input-border);
    flex-shrink: 0;
    background: var(--table-bg);
  }

  & .toolbar-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--sub-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;

    &:hover {
      background: var(--hover-tool-bg);
      color: var(--text);
    }
  }

  & .toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--input-border);
    margin: 0 4px;
  }

  & .toolbar-btn-text {
    font-size: 16px;
    font-weight: 700;
  }

  /* textarea */
  & .editor-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }

  & .editor-textarea {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: none;
    outline: none;
    resize: none;
    line-height: 1.8;
    color: var(--text);
    background: transparent;
    font-family: "Pretendard";

    &::placeholder {
      color: var(--placeholder);
    }
  }

  /* AI assist bar */
  & .ai-assist-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid var(--input-border);
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--table-bg);
  }

  & .ai-assist-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    padding: 5px 11px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--input-border);
    color: var(--sub-text);
    cursor: pointer;
    transition:
      border-color 0.15s,
      color 0.15s;
    white-space: nowrap;

    &:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    & i {
      font-size: 12px;
      color: var(--primary);
    }
  }

  /* schedule bar (bottom of editor) */
  & .editor-schedule-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--input-border);
    background: var(--white);
    flex-shrink: 0;
    gap: 12px;
  }

  & .editor-schedule-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;

    & i {
      color: var(--sub-text);
      font-size: 14px;
    }
  }

  & .editor-schedule-label {
    font-weight: 600;
    color: var(--sub-text);
  }

  & .editor-schedule-date {
    font-weight: 600;
    color: var(--text);
  }

  & .editor-schedule-actions {
    display: flex;
    gap: 6px;
  }

  /* ===== Center column: channels + schedule + preview ===== */
  & .compose-right {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--table-bg);
    gap: 0;
  }

  & .compose-card {
    background: var(--white);
    border-bottom: 1px solid var(--input-border);
    padding: 16px 20px;
  }

  & .compose-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  & .compose-card-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--sub-text);
  }

  /* channel list */
  & .channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  & .channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--table-bg);
    cursor: pointer;
    transition:
      border-color 0.15s,
      background 0.15s;

    &:hover {
      border-color: #3dc0a9;
      background: #f0fbf9;
    }

    &.active {
      border-color: #3dc0a9;
      background: #edfaf7;
      /* box-shadow: 0 0 0 1px #3dc0a9 inset; */

      & .channel-name {
        color: #3dc0a9;
      }

      & .channel-right::after {
        content: "";
        display: inline-block;
        width: 4px;
        height: 10px;
        border-right: 2px solid #3dc0a9;
        border-bottom: 2px solid #3dc0a9;
        transform: rotate(45deg) translateY(-2px);
        margin-left: 2px;
      }

      & .bi-chevron-down {
        display: none;
      }
    }
  }

  & .channel-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  & .channel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    padding: 2px;

    & img {
      width: 100%;
    }
  }
  & .ch-tiktok {
    background: #010101;
  }
  & .ch-facebook {
    background: #1877f2;
  }

  & .channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  & .channel-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }

  & .channel-lang {
    font-size: 12px;
    color: var(--sub-text);
  }

  & .channel-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  & .lang-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--hover-tool-bg);
    border: 1px solid var(--input-border);
    color: var(--sub-text);
  }

  & .translate-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--sub-text);
  }

  /* toggle switch */
  & .switch {
    position: relative;
    width: 32px;
    height: 18px;
    flex-shrink: 0;

    & input {
      display: none;
    }
  }

  & .switch-slider {
    position: absolute;
    inset: 0;
    background: var(--light-gray);
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.2s;

    &::before {
      content: "";
      position: absolute;
      width: 13px;
      height: 13px;
      background: var(--white);
      border-radius: 50%;
      top: 2.5px;
      left: 2.5px;
      transition: transform 0.2s;
    }
  }

  & .switch input:checked + .switch-slider {
    background: var(--primary);

    &::before {
      transform: translateX(14px);
    }
  }

  & .translate-on {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
  }

  /* schedule section */
  & .schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  & .schedule-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;

    & i {
      color: var(--sub-text);
      font-size: 14px;
    }
  }

  & .schedule-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
  }

  & .schedule-actions .sched-btn {
    flex: 1;
  }

  & .sched-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--white);
    color: var(--sub-text);
    cursor: pointer;

    &:hover {
      background: var(--hover-tool-bg);
    }

    &.sched-btn-primary {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--white);

      &:hover {
        background: #2f9785;
        border-color: #2f9785;
      }

      & span {
        color: var(--white);
      }
    }
  }

  /* preview section */
  & .preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  & .preview-thumb {
    border-radius: 10px;
    border: 1px solid var(--input-border);
    overflow: hidden;
    background: var(--table-bg);
    position: relative;
  }

  & .preview-thumb-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--input-border);
    background: var(--white);
  }

  & .preview-ch-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;

    & img {
      width: 100%;
    }
  }

  & .preview-ch-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
  }

  & .preview-ch-sub {
    font-size: 10px;
    color: var(--sub-text);
  }

  & .preview-err-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff0ee;
    color: var(--red);
    border: 1px solid #fecdca;
  }

  & .preview-thumb-body {
    padding: 10px;
    font-size: 11px;
    color: var(--sub-text);
    line-height: 1.5;
    min-height: 70px;
  }

  /* ===== Right column: review panel ===== */
  & .review-panel {
    width: 260px;
    border-left: 1px solid var(--input-border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
  }

  & .review-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--input-border);
  }

  & .review-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  & .review-section-link {
    font-size: 11px;
    font-weight: 400;
    color: var(--primary);
    cursor: pointer;
  }

  /* score ring */
  & .score-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  & .score-ring {
    position: relative;
    width: 100px;
    height: 100px;

    & svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }
  }

  & .score-ring-bg {
    fill: none;
    stroke: var(--input-border);
    stroke-width: 8;
  }

  & .score-ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 63;
    transition: stroke-dashoffset 0.6s ease;
  }

  & .score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  & .score-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
  }

  & .score-denom {
    font-size: 11px;
    color: var(--sub-text);
  }

  & .score-grade {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 20px;
    background: #e8faf6;
    color: var(--primary);
  }

  /* review items */
  & .review-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  & .review-item {
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  & .review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .review-item-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sub-text);
  }

  & .review-item-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
  }

  & .tag-warning {
    background: #fff8e1;
    color: #f59e0b;
    border: 1px solid #fde68a;
  }

  & .tag-apply {
    background: #e8faf6;
    color: var(--primary);
    border: 1px solid #a7f3d0;
  }

  & .review-item-text {
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
  }

  & .review-item-highlight {
    display: inline;
    background: #fff3cd;
    border-bottom: 2px solid #f59e0b;
    border-radius: 2px;
    padding: 0 2px;
  }

  /* guideline list */
  & .guideline-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  & .guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--sub-text);
    line-height: 1.5;

    & i {
      font-size: 13px;
      flex-shrink: 0;
      margin-top: 1px;
    }
  }

  & .gi-ok {
    color: var(--green);
  }
  & .gi-warn {
    color: #f59e0b;
  }
  & .gi-info {
    color: var(--blue);
  }

  /* toolbar variants */
  & .toolbar-btn[title="기울임"] {
    font-style: italic;
  }
  & .toolbar-btn[title="밑줄"] {
    text-decoration: underline;
  }

  /* translate-toggle 위치 보정 (compose-card-title 내부) */
  & .compose-card-title .translate-toggle {
    margin-left: auto;
    gap: 6px;
  }

  /* channel icon 내부 아이콘 공통 */
  & .channel-icon i {
    color: white;
    font-size: 14px;
  }

  & .channel-right i {
    font-size: 11px;
    color: var(--sub-text);
  }

  /* sched-btn send 아이콘 */
  & .sched-btn-primary i {
    color: white;
    font-size: 11px;
    margin-right: 3px;
  }

  /* 채널 미리보기 카드 */
  & .compose-card-preview {
    flex: 1;
  }

  & .compose-card-subtitle {
    font-size: 11px;
    color: var(--sub-text);
    font-weight: 400;
  }

  /* preview 채널 아이콘 내부 */
  & .preview-ch-icon i {
    color: white;
    font-size: 10px;
  }

  & .preview-ch-icon.ch-kakao {
    font-size: 10px;
  }

  & .preview-ch-icon.ch-kakao span {
    font-weight: 900;
    color: #3a1d1d;
    font-size: 10px;
  }

  & .preview-thumb:has(.ch-tiktok) .preview-thumb-body,
  & .preview-thumb:has(.ch-facebook) .preview-thumb-body {
    font-size: 10px;
  }

  /* review panel */
  & .review-item-label i {
    color: #f59e0b;
  }

  & .review-item-hint {
    font-size: 11px;
    color: var(--sub-text);
  }

  & .review-item .tag-apply {
    align-self: flex-end;
  }
}
