.container {
  height: 100%;
  position: relative;
}

/* 비활성화 모드일 때 전체 컨테이너 스타일 */
.container.inactive-mode {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}

/* 비활성화 모드일 때 폼 섹션들 스타일 변경 */
.container.inactive-mode .map-section {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  border: 2px solid #f8bbd9;
}

.container.inactive-mode .form-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.container.inactive-mode .summernote-wrapper {
  border-color: #f56565;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.container.inactive-mode .form-input:focus,
.container.inactive-mode .form-select:focus {
  border-color: #f56565;
  box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.container.inactive-mode .btn-primary {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.container.inactive-mode .btn-primary:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
}

.container.inactive-mode .fixed-button-group {
  background: rgba(248, 215, 218, 0.95);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Activate 상태 토글 컨테이너 */
.activate-toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: var(--fixed-button-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.activate-status {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.activate-status.active {
  color: var(--accent-secondary);
}

.activate-status.inactive {
  color: var(--accent-primary);
}

.status-icon {
  font-size: 16px;
}

.status-text {
  font-weight: 600;
  font-size: 14px;
  min-width: 60px;
  color: var(--text-primary);
}

.toggle-activate-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 70px;
}

.toggle-activate-btn.active {
  background: var(--accent-primary);
  color: white;
}

.toggle-activate-btn.active:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.05);
}

.toggle-activate-btn.inactive {
  background: var(--accent-secondary);
  color: white;
}

.toggle-activate-btn.inactive:hover {
  background: var(--accent-secondary-hover);
  transform: scale(1.05);
}

.pc-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  grid-template-areas:
    "map content"
    "form content"
    "components content"
    "relations content"
    "buttons buttons";
}

/* 태블릿 (1024px 이하) */
@media screen and (max-width: 1024px) {
  .pc-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "map form"
      "content content";
  }

  .map-section {
    grid-area: map;
  }

  .form-section {
    grid-area: form;
  }

  .form-group:has(#content) {
    grid-area: content;
  }
}

/* 모바일 (768px 이하) */
@media screen and (max-width: 768px) {
  .pc-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "map"
      "form"
      "content";
    gap: 1rem;
    padding: 1rem;
  }

  .map-section {
    padding: 0.5rem;
  }

  .map-container {
    height: 250px;
  }

  .form-section {
    padding: 0.5rem;
  }

  .form-input, 
  .form-select {
    width: 100%;
  }

  .time-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .time-group > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .time-group select {
    width: auto;
    min-width: 70px;
  }

  .coordinates-box {
    flex-direction: column;
    gap: 0.5rem;
  }

  .coordinate-input {
    width: 100%;
  }

  /* 모바일에서 고정 버튼 위치 조정 */
  .fixed-button-group {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 8px;
    width: calc(100% - 20px);
    max-width: 300px;
  }

  .fixed-submit-btn {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    flex: 1;
  }

  /* 모바일에서 토글 컨테이너 위치 조정 */
  .activate-toggle-container {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .status-text {
    font-size: 12px;
    min-width: 50px;
  }

  .toggle-activate-btn {
    font-size: 11px;
    padding: 4px 8px;
    min-width: 60px;
  }
}

/* 작은 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
  .pc-layout {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .map-container {
    height: 200px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

}

/* 지도 섹션 */
.map-section {
  grid-area: map;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow-y: auto;
  max-height: 100%;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

/* VSCode 스타일 에디터 */
.editor-content {
  background: var(--editor-bg, #1e1e1e);
  font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 13px;
  padding: 0;
  margin-top: 0.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.editor-section {
  padding: 4px 0;
}

.section-header {
  padding: 4px 12px;
  color: var(--editor-comment, #6a9955);
  font-style: italic;
  user-select: none;
}

.editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 28px;
  border-left: 3px solid transparent;
}

.editor-row:hover {
  background: var(--editor-line-hover, #2a2d2e);
}

.editor-row:focus-within {
  background: var(--editor-line-focus, #094771);
  border-left-color: var(--editor-accent, #007acc);
}

.editor-row-textarea {
  height: auto;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 4px;
}

.field-name {
  width: 70px;
  color: var(--editor-property, #9cdcfe);
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
}

.field-sep {
  color: var(--editor-text, #d4d4d4);
  flex-shrink: 0;
}

.field-value {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--editor-string, #ce9178);
  font-family: inherit;
  font-size: 13px;
  padding: 4px 0;
  outline: none;
  min-width: 0;
}

.field-value:focus {
  background: var(--editor-input-bg, #3c3c3c);
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 3px;
}

.field-value::placeholder {
  color: var(--editor-placeholder, #5a5a5a);
}

.field-number {
  width: 120px;
  flex: none;
  color: var(--editor-number, #b5cea8);
}

.field-textarea {
  resize: vertical;
  min-height: 60px;
  padding: 4px 8px;
  background: var(--editor-textarea-bg, #2d2d2d);
  border-radius: 3px;
  color: var(--editor-string, #ce9178);
  font-family: inherit;
  font-size: 13px;
}

.field-textarea:focus {
  background: var(--editor-input-bg, #3c3c3c);
  margin: 0;
}

.field-select {
  background: var(--editor-textarea-bg, #2d2d2d);
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--editor-function, #dcdcaa);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.field-select:focus {
  background: var(--editor-input-bg, #3c3c3c);
  outline: none;
}

.field-select option {
  background: var(--editor-bg, #1e1e1e);
  color: var(--editor-text, #d4d4d4);
}

.field-required {
  color: var(--accent-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.field-status {
  font-weight: bold;
  flex-shrink: 0;
  font-size: 12px;
  margin-left: 4px;
  width: 16px;
  text-align: center;
}

.field-error {
  color: var(--accent-primary);
}

.field-time {
  width: 100px;
  flex: none;
}

.time-group-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.time-sep-inline {
  color: var(--editor-text, #d4d4d4);
  flex-shrink: 0;
  font-size: 12px;
}

.checkbox-label-inline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-left: 8px;
  gap: 4px;
}

.checkbox-input-inline {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--editor-text, #d4d4d4);
  border-radius: 3px;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background: var(--editor-textarea-bg, #2d2d2d);
}

.checkbox-input-inline:checked {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.checkbox-input-inline:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-text-inline {
  font-size: 11px;
  color: var(--editor-text, #d4d4d4);
  font-weight: 500;
}

.editor-row-national {
  height: auto;
  min-height: 28px;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 4px;
}

.national-inline {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.national-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.national-tag-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--accent-secondary);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.remove-tag-inline {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: background-color 0.2s;
  padding: 0;
}

.remove-tag-inline:hover {
  background: rgba(255, 255, 255, 0.3);
}

.national-search-inline {
  position: relative;
  flex: 1;
  min-width: 0;
}

.national-search-input {
  width: 100%;
}

.national-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--editor-bg, #1e1e1e);
  border: 1px solid var(--editor-accent, #007acc);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 2px;
}

.dropdown-item {
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--editor-line-hover, #2a2d2e);
  font-size: 12px;
  transition: background-color 0.2s;
  color: var(--editor-text, #d4d4d4);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--editor-line-hover, #2a2d2e);
}

/* 폼 섹션 */
.form-section {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: 100%;
}

.form-section .editor-content {
  margin-top: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--editor-property);
  display: block;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.form-group:focus-within .form-label {
  color: var(--editor-accent);
}

.form-input:focus + .form-label {
  color: var(--editor-accent);
}

.latlon-input {
  width: 87%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--editor-input-bg);
  color: var(--text-primary);
}
.form-select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--editor-input-bg);
  color: var(--text-primary);
}
.form-input {
  width: 92%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--editor-input-bg);
  color: var(--text-primary);
}

.form-input:focus {
  border-color: var(--editor-accent);
  outline: none;
  background: var(--editor-input-focus);
}

/* 시간 선택 */
.time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0;
}

/* 콘텐츠 섹션 */
.content-section {
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  min-height: 400px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
}

/* 버튼 그룹 */
.button-group {
  grid-area: buttons;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
}

/* 고정된 버튼 그룹 */
.fixed-button-group {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background: var(--fixed-button-bg);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.fixed-submit-btn {
  min-width: 120px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
  transition: all 0.3s ease;
}

.fixed-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

/* 콘텐츠 섹션 */
.form-group:has(.summernote-wrapper) {
  grid-area: content;
  grid-row: 1 / span 4; /* 첫 번째 행부터 4개 행에 걸쳐 */
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  background: var(--text-muted);
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: var(--text-secondary);
}

/* 로딩 오버레이 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--loading-overlay-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
}

.loading-text {
  color: var(--text-primary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.coordinates-box {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.coordinate-input {
  flex: 1;
}

.time-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.time-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time-input {
  flex: 1;
}

.time-input select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.time-separator {
  color: var(--text-secondary);
  font-weight: bold;
  padding: 0 0.5rem;
}

.time-checkbox {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.checkbox-label:hover {
  background-color: var(--bg-hover);
}

.checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background: var(--bg-secondary);
}

.checkbox-input:checked {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.checkbox-input:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.25);
}

.checkbox-text {
  margin-left: 8px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 검색 박스 스타일링 */
.search-box {
  margin-bottom: 1rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--editor-accent);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 36px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--editor-placeholder);
}

.search-input:focus {
  outline: none;
}

/* Summernote 에디터 스타일 */
.summernote-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.summernote-wrapper:focus-within {
  border-color: var(--editor-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Summernote 전역 스타일 */
.summernote-wrapper .note-editor {
  border: none;
  border-radius: 8px;
  font-family: inherit;
}

.summernote-wrapper .note-toolbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
}

.summernote-wrapper .note-btn-group {
  margin-right: 6px;
  margin-bottom: 4px;
}

.summernote-wrapper .note-btn {
  border-radius: 6px;
  margin: 1px 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.15s ease;
  font-size: 12px;
  padding: 4px 8px;
}

.summernote-wrapper .note-btn:hover {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
}

.summernote-wrapper .note-btn.active {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
}

.summernote-wrapper .note-editable {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 350px;
  background: var(--bg-secondary);
}

.summernote-wrapper .note-editable img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

.error-message {
  color: var(--accent-primary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* 더보기 버튼 스타일 */
.toggle-section {
  margin: 0.5rem 0;
}

.toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.toggle-btn:hover {
  background-color: var(--bg-hover);
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

.collapsible-fields {
  animation: slide-down 0.3s ease;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 컴포넌트 전용 스타일 */
.components-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.components-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.component-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.component-group:hover {
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.1);
  border-color: var(--accent-secondary);
}

.component-label {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.component-label:hover {
  background: var(--bg-hover);
  color: var(--accent-secondary-hover);
}

.component-icon {
  font-size: 1.1rem;
}

.component-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.3rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* 연결 정보 스타일 */
.relations-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.relations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.relation-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  min-height: 150px;
}

.relation-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.relation-label:hover {
  background: var(--bg-hover);
  color: var(--accent-secondary);
}

.relation-icon {
  font-size: 1rem;
}

/* 검색 섹션 스타일 */
.search-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-input {
  padding-right: 2.5rem !important;
}

.search-loading {
  position: absolute;
  right: 0.75rem;
  font-size: 0.9rem;
  animation: spin 1s linear infinite;
  color: var(--accent-secondary);
}


.connected-info {
  flex: 1;
  min-width: 0;
}

.connected-info:hover {
  background: var(--bg-hover);
  border-radius: 4px;
  padding: 0.25rem;
  margin: -0.25rem;
}

.connected-title {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-url {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-disconnect {
  background: var(--accent-primary);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-disconnect:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
}

.search-empty,
.empty-state {
  padding: 1rem;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
}

.empty-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.75rem;
}

/* 카드 그리드 영역 정의 */
.form-card.card-components { grid-area: components; }
.form-card.card-relations { grid-area: relations; }

.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.input-label {
  font-weight: 600;
  color: var(--editor-property);
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  background: var(--editor-input-bg);
  color: var(--text-primary);
  box-sizing: border-box;
  min-width: 0;
}

.form-control.compact {
  padding: 0.25rem 0.4rem;
  font-size: 0.65rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--editor-accent);
  background: var(--editor-input-focus);
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.1);
}

.form-control::placeholder {
  color: var(--editor-placeholder);
  font-style: italic;
}

/* 페이지 검색 섹션 스타일 */
.page-search-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding-right: 2.5rem !important;
}

.search-loading {
  position: absolute;
  right: 0.75rem;
  font-size: 0.9rem;
  animation: spin 1s linear infinite;
  color: var(--accent-secondary);
}


.connected-info {
  flex: 1;
  min-width: 0;
}

.connected-info:hover {
  background: var(--bg-hover);
  border-radius: 4px;
  padding: 0.25rem;
  margin: -0.25rem;
}

.connected-title {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-url {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-disconnect {
  background: var(--accent-primary);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-disconnect:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
}

.search-empty,
.empty-state {
  padding: 1rem;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
}

.empty-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.75rem;
}

.connected-web {
  font-size: 0.65rem;
  color: var(--accent-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* 페이지 연결 섹션 스타일 */
.page-connection-section {
  margin: 1rem 0 0.5rem 0;
}

.page-connection-header {
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--accent-secondary);
  border-radius: 8px;
  text-align: center;
}

.page-connection-title {
  font-weight: 600;
  color: var(--accent-secondary);
  font-size: 0.9rem;
}

.page-connection-fields {
  margin-top: 0.5rem;
}

/* 페이지 검색 섹션 스타일 */
.page-search-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-results {
  max-height: 150px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-hover);
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-url {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-web {
  font-size: 0.65rem;
  color: var(--accent-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-level {
  font-size: 0.65rem;
  color: var(--editor-property);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-connect {
  background: var(--accent-secondary);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-connect:hover:not(:disabled) {
  background: var(--accent-secondary-hover);
  transform: translateY(-1px);
}

.btn-connect:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* 연결된 아이템 스타일 */
.connected-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.connected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.connected-status {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.connected-level {
  font-size: 0.65rem;
  color: var(--editor-property);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-activate {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-activate.activate-true {
  color: var(--accent-secondary);
  background: rgba(78, 205, 196, 0.15);
}

.connected-activate.activate-false {
  color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.15);
}

.connected-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}


/* 로케일 선택 스타일 */
.locale-selector {
  background: var(--bg-primary);
  border: 2px solid var(--accent-secondary);
  font-weight: 600;
  color: var(--accent-secondary);
  text-align: center;
}

.locale-selector:focus {
  border-color: var(--editor-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.locale-selector option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: normal;
}

/* 페이지 가져오기 섹션 스타일 */
.import-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--accent-secondary);
  border-radius: 12px;
  text-align: center;
}

.import-header h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent-secondary);
  font-size: 1.1rem;
  font-weight: 600;
}

.import-header p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: monospace;
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.import-btn {
  min-width: 160px;
  font-weight: 600;
}

.import-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 가져온 페이지 데이터 표시 스타일 */
.imported-page-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.imported-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.imported-page-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}



.btn-close {
  background: var(--accent-primary);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.1);
}

.imported-page-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-group {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.info-group h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.info-item {
  display: flex;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item label {
  font-weight: 600;
  color: var(--editor-property);
  min-width: 80px;
  font-size: 0.875rem;
}

.info-item span {
  color: var(--text-primary);
  font-size: 0.875rem;
  word-break: break-word;
  flex: 1;
}

.content-preview {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.content-preview h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.content-box {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-height: 700px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* 국가별 태그 시스템 스타일 */
.national-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.national-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 32px;
  align-items: center;
}

.national-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent-secondary);
  color: white;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.2);
}

.remove-tag {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s;
}

.remove-tag:hover {
  background: rgba(255, 255, 255, 0.3);
}

.national-search-container {
  position: relative;
}

.national-search {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.national-search:focus {
  outline: none;
  border-color: var(--editor-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.national-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  transition: background-color 0.2s;
  color: var(--text-primary);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

/* 가져온 페이지 데이터 스타일 개선 */
.unique-id {
  font-family: 'Courier New', monospace;
  background: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.url-link {
  font-family: 'Courier New', monospace;
  color: var(--editor-property);
  font-size: 0.8rem;
  word-break: break-all;
}

.level-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-secondary);
  color: white;
  min-width: 30px;
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.status-active {
  background: var(--accent-secondary);
  color: white;
}

.status-badge.status-inactive {
  background: var(--accent-primary);
  color: white;
}

.web-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.web-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

.web-link:hover {
  text-decoration: underline;
}

.full-url {
  color: var(--editor-accent);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.full-url:hover {
  text-decoration: underline;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--editor-string);
  font-weight: 600;
}


/* 업로드 진행률 스타일 */
.upload-progress {
  margin: 15px 0;
  padding: 15px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-secondary);
  border-radius: 5px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--accent-secondary);
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-secondary);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  font-size: 12px;
  color: var(--accent-secondary);
  font-weight: bold;
}

/* 업로드 에러 스타일 */
.upload-errors {
  margin: 15px 0;
  padding: 15px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 5px;
}

.upload-errors h5 {
  margin: 0 0 10px 0;
  color: var(--accent-primary);
  font-size: 14px;
}

.upload-errors ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.error-item {
  color: var(--accent-primary);
  font-size: 12px;
  margin-bottom: 5px;
}

.clear-errors-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.clear-errors-btn:hover {
  background: var(--accent-primary-hover);
}

/* 이미지 미리보기 스타일 */
.image-preview h4 {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.image-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.image-info {
  padding: 10px;
}

.image-name {
  margin: 0 0 5px 0;
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-all;
  font-weight: 500;
}

.cdn-info {
  margin: 0 0 5px 0;
  font-size: 10px;
  color: var(--accent-secondary);
}

.upload-type-info {
  margin: 0 0 10px 0;
  font-size: 10px;
  color: var(--text-muted);
}

.type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 9px;
  margin-right: 5px;
}

.type-badge.map {
  background: rgba(78, 205, 196, 0.2);
  color: var(--accent-secondary);
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.remove-btn, .insert-btn, .copy-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.3s;
  flex: 1;
  min-width: 60px;
}

.remove-btn {
  background: var(--accent-primary);
  color: white;
}

.remove-btn:hover {
  background: var(--accent-primary-hover);
}

.insert-btn {
  background: var(--accent-secondary);
  color: white;
}

.insert-btn:hover {
  background: var(--accent-secondary-hover);
}

.copy-btn {
  background: var(--editor-accent);
  color: white;
}

.copy-btn:hover {
  background: #005a9e;
}

/* 동영상 업로드 섹션 스타일 */
.video-upload-section {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--accent-secondary);
  margin-top: 20px;
}

.video-upload-section h4 {
  margin-bottom: 15px;
  color: var(--accent-secondary);
}

.video-upload-btn {
  background: var(--accent-secondary);
  color: white;
}

.video-upload-btn:hover:not(:disabled) {
  background: var(--accent-secondary-hover);
}

/* 동영상 업로드 진행률 스타일 */
.video-upload-progress {
  margin: 15px 0;
  padding: 15px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-secondary);
  border-radius: 5px;
}

.video-progress-fill {
  background: var(--accent-secondary);
}

/* 동영상 업로드 에러 스타일 */
.video-upload-errors {
  margin: 15px 0;
  padding: 15px;
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 5px;
}

.video-upload-errors h5 {
  margin: 0 0 10px 0;
  color: var(--accent-primary);
  font-size: 14px;
}

.video-upload-errors ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

/* 동영상 미리보기 스타일 */
.video-preview h4 {
  margin-bottom: 15px;
  color: var(--accent-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.video-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-player {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-name {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: var(--accent-secondary);
  word-break: break-all;
  font-weight: 600;
}

.file-size {
  margin: 0 0 10px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.video-actions .remove-btn,
.video-actions .insert-btn,
.video-actions .copy-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
  flex: 1;
  min-width: 70px;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {

  .page-info-grid {
    grid-template-columns: 1fr;
  }
  
  .imported-page-section {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .import-section {
    margin: 1rem 0;
    padding: 1rem;
  }

  .national-tags {
    gap: 0.25rem;
  }

  .national-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .web-info {
    font-size: 0.8rem;
  }

  .unique-id,
  .url-link,
  .web-link,
  .full-url {
    font-size: 0.7rem;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .image-actions {
    flex-direction: column;
  }
  
  .image-actions .remove-btn,
  .image-actions .insert-btn,
  .image-actions .copy-btn {
    width: 100%;
    min-width: auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .video-actions {
    flex-direction: column;
  }
  
  .video-actions .remove-btn,
  .video-actions .insert-btn,
  .video-actions .copy-btn {
    width: 100%;
    min-width: auto;
  }
}

</style>
