:root[data-workspace-font="nanum"] {
  font-family: "NanumSquare", PretendardVariable-v1, "Malgun Gothic", sans-serif;
}

:root[data-workspace-font="system"] {
  font-family: system-ui, "Malgun Gothic", sans-serif;
}

.sidebar-footer {
  align-items: center;
}

.sidebar-footer > .storage-dot {
  flex: none;
}


.profile-trigger > span {
  min-width: 0;
}

.profile-trigger > span > b {
  display: block;
  max-width: 132px;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.action-popover > a.action-menu-item {
  color: inherit;
  text-decoration: none;
}

.workspace-news {
  display: grid;
  gap: 0;
}

.workspace-news article + article {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.workspace-news h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.workspace-news p, .site-delete-panel p {
  color: var(--muted);
}

.site-settings-panel > h2 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.site-settings-tabs { width: fit-content; margin-bottom: 16px; }

.site-settings-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.site-ip-rules { min-width: 0; margin: 0; padding: 0; border: 0; }
.site-ip-rules legend { margin-bottom: 8px; font-weight: 600; }
.site-ip-rule-list { display: grid; gap: 8px; }
.site-ip-rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.site-ip-rule > label { min-width: 0; }
.site-ip-rules > .btn { margin-top: 8px; }

@media (max-width: 420px) {
  .site-ip-rule { grid-template-columns: minmax(0, 1fr) 36px; }
  .site-ip-rule > label { grid-column: 1; }
  .site-ip-rule > button { grid-column: 2; grid-row: 1 / 3; }
}

.site-delete-panel .section-title {
  margin-bottom: 0;
}

.condition-shop-options > summary {
  width: fit-content;
  min-height: 34px;
  padding-block: 6px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.condition-shop-options > .hint {
  margin: 0 0 12px;
}

.table-scroll .campaign-table.observed-list[data-area-type="banner"] { min-width: 855px; }
.table-scroll .campaign-table.observed-list[data-area-type="group"] { min-width: 930px; }
.list-area-shape, .list-area-count { white-space: nowrap; }
.list-area-shape small { display: block; color: var(--muted); }

.area-schedule tbody th button[draggable="true"] { cursor: grab; }
.area-schedule tr[data-dragging] { opacity: .6; }
.area-schedule tr[data-drop-target="before"] :is(th, td) { box-shadow: inset 0 2px var(--ink); }
.area-schedule tr[data-drop-target="after"] :is(th, td) { box-shadow: inset 0 -2px var(--ink); }

@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .topbar .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-settings-preferences {
    grid-template-columns: 1fr;
  }
}
