/* Add Card modal — from new-design/modal.css (.container-modal-first), scoped to :is(#addCard, #editCard, #viewCard, #commentModel) */

:is(#addCard, #editCard, #viewCard, #commentModel) .modal-dialog {
  max-width: min(720px, 100%);
  margin: 1.25rem auto;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .modal-content {
  border: none;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .container-modal-first {
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  background-color: #fff;
  border-radius: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .header-style-add-board {
  border-bottom: 1px solid #eef0f4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .title-id-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-board-label {
  width: 48px;
  height: 48px;
  background-color: #e1f4f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e76ba;
  flex-shrink: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-board-label .material-symbols-outlined {
  font-size: 24px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .title-desc-board {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
  min-width: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .title-add-board {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1c21;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .description-title-add-board {
  font-size: 0.875rem;
  font-weight: 400;
  color: #8b93a7;
  line-height: 1.45;
  margin: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .cancel-icon-board {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-cancel {
  width: 34px;
  height: 34px;
  background-color: #f4f5f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .cancel-icon-board:hover .icon-cancel {
  background-color: #e8eaef;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-cancel .material-symbols-outlined {
  font-size: 20px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 4px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .select-color-user-data {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-field .section-field-label {
  font-weight: 600;
  color: #1a1c21;
  margin-bottom: 8px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-field-label.margin-bottom-style {
  margin-bottom: 0 !important;
  font-size: 11px;
  font-weight: 500;
  color: #515254 !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .permanent-color-star {
  color: #ef4444;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-field {
  display: flex;
  flex-direction: column;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px 0 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box:focus-within {
  border-color: #429aad;
  box-shadow: 0 0 0 3px rgba(66, 154, 173, 0.15);
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box.is-readonly {
  background: #fafbfc;
  height: auto !important;
  min-height: 60px;
  padding: 10px 14px 10px 8px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box.flex-justify-style {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .label-start-style {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 180px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .label-flex-style {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .text-color-user-name {
  color: #429aad !important;
  font-weight: 600;
  font-size: 0.875rem;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
  box-shadow: none !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e1f4f7;
  color: #2e76ba;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-icon .material-symbols-outlined {
  font-size: 18px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-icon.text-icon {
  font-family: Georgia, "Times New Roman", serif;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box input:not(.text-color-user-name) {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 0.875rem;
  color: #1a1c21;
  padding: 0 !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box input::placeholder {
  color: #9ca3af;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .board-description-structure.section-desc-editor {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 140px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .section-desc-editor:focus-within {
  border-color: #7dd3e0;
  box-shadow: 0 0 0 3px rgba(66, 154, 173, 0.12);
}

:is(#addCard, #editCard, #viewCard, #commentModel) .rl-rich-editor > ngx-editor-menu,
:is(#addCard, #editCard, #viewCard, #commentModel) .edit-section-label {
  display: block;
  background: #f4f6fb;
  border-bottom: 1px solid #e8ecf3;
  border-radius: 12px 12px 0 0;
  padding: 6px 8px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .enter-description-label {
  flex: 1;
  min-height: 96px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .rl-rich-editor .NgxEditor__MenuBar,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuBar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuItem,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Dropdown {
  border-radius: 8px !important;
  min-height: 32px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuItem.NgxEditor__MenuItem--Icon {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  color: #475569 !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuItem:hover,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Dropdown:hover {
  background: rgba(66, 154, 173, 0.12) !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuItem.NgxEditor__MenuItem--Active,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuItem .NgxEditor__MenuItem--Active,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Dropdown--Selected,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Dropdown--Open {
  background: rgba(66, 154, 173, 0.18) !important;
  color: #0f766e !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Popup,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Dropdown--DropdownMenu {
  z-index: 1080 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14) !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor {
  border: none !important;
  min-height: 110px !important;
  height: auto !important;
  border-radius: 0 0 12px 12px !important;
  background: #fff !important;
  color: #1a1c21 !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Content,
:is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor .ProseMirror {
  min-height: 88px !important;
  height: auto !important;
  max-height: 200px;
  overflow-y: auto !important;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1a1c21 !important;
  caret-color: #0f766e;
  cursor: text !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .container-content-data {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .attachment-data-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .title-attached-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1c21;
  margin: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-size-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-size-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-size-chip .material-symbols-outlined {
  font-size: 14px;
  color: #64748b;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-container-box {
  border: 1px solid #eff0f6;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: #fafafc;
  border-radius: 8px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload {
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #222;
  cursor: pointer;
  background: #fff;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
  padding: 0;
  text-decoration: none;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload .material-symbols-outlined {
  font-size: 1.25rem;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload:hover:not(.disabled) {
  border-color: #429aad;
  color: #2e76ba;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload.is-active {
  border-color: #2e76ba;
  color: #2e76ba;
  background: #e1f4f7;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 14px;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  flex-wrap: wrap;
  overflow: visible;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box.is-picker {
  cursor: pointer;
  flex-wrap: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box.is-picker:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-preview {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #e1f4f7;
  color: #2e76ba;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-preview img,
:is(#addCard, #editCard, #viewCard, #commentModel) .media-preview video,
:is(#addCard, #editCard, #viewCard, #commentModel) .media-preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-preview .material-symbols-outlined {
  font-size: 28px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 0 0 2px #f9fafb;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-remove-btn .material-symbols-outlined {
  font-size: 12px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1c21;
  margin: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-hint {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 2px 0 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-previews-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  padding: 8px 8px 2px 2px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-text {
  flex: 1;
  min-width: 0;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-affordance {
  margin-left: auto;
  font-size: 26px;
  color: #475569;
  opacity: 0.75;
  flex-shrink: 0;
  pointer-events: none;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box.is-picker:hover .media-upload-affordance {
  opacity: 0.9;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .footer-card-modal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid #eef0f4;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .cancel-btn-board {
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .cancel-btn-board:hover {
  background: #f9fafb;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card {
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #0c6af4;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card .material-symbols-outlined {
  font-size: 20px;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card:hover:not(:disabled) {
  background-color: #004bba;
}

:is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* —— Dark mode —— */
html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .container-modal-first {
  background: var(--rl-surface, #1e293b);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .header-style-add-board {
  border-bottom-color: var(--rl-border, #334155);
  background: transparent;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-board-label {
  background-color: rgba(46, 118, 186, 0.2);
  color: #7db3e8;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .title-add-board {
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .description-title-add-board {
  color: var(--rl-muted, #94a3b8);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-cancel {
  background-color: #334155;
  color: var(--rl-muted, #94a3b8);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .cancel-icon-board:hover .icon-cancel {
  background-color: #475569;
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-modal-body {
  background: var(--rl-surface, #1e293b);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-field-label {
  color: var(--rl-muted, #94a3b8);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-field .section-field-label {
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-field-label.margin-bottom-style {
  color: var(--rl-muted, #94a3b8) !important;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box {
  background: var(--rl-search-bg, #0f172a);
  border-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box:focus-within {
  border-color: rgba(12, 106, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(12, 106, 244, 0.16);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box.is-readonly {
  background: #0f172a;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-icon {
  background: rgba(46, 118, 186, 0.2);
  color: #7db3e8;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .text-color-user-name {
  color: #7db3e8 !important;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box input:not(.text-color-user-name) {
  color: var(--rl-ink, #f1f5f9) !important;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box input::placeholder {
  color: var(--rl-muted, #94a3b8);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .board-description-structure.section-desc-editor {
  background: var(--rl-search-bg, #0f172a);
  border-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .section-desc-editor:focus-within {
  border-color: rgba(12, 106, 244, 0.45);
  box-shadow: 0 0 0 3px rgba(12, 106, 244, 0.12);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .edit-section-label {
  background-color: #1e293b;
  border-bottom-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor {
  background: var(--rl-search-bg, #0f172a) !important;
  color: var(--rl-ink, #f1f5f9) !important;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Content,
html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__Content p,
html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor .ProseMirror,
html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor .ProseMirror p {
  color: var(--rl-ink, #f1f5f9) !important;
  caret-color: #60a5fa;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .NgxEditor__MenuBar {
  color: var(--rl-ink, #f1f5f9) !important;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .rl-rich-editor > ngx-editor-menu,
html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .edit-section-label {
  background: #1e293b;
  border-bottom-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .title-attached-text {
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-size-chip {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-size-chip .material-symbols-outlined {
  color: #94a3b8;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-container-box {
  background: #0f172a;
  border-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload {
  background: var(--rl-surface, #1e293b);
  border-color: var(--rl-border, #334155);
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload:hover:not(.disabled) {
  border-color: #60a5fa;
  color: #93c5fd;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .icon-data-upload.is-active {
  background: rgba(12, 106, 244, 0.16);
  border-color: #0c6af4;
  color: #93c5fd;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box {
  background: #0f172a;
  border-color: var(--rl-border, #334155);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-box.is-picker:hover {
  border-color: #60a5fa;
  background: rgba(12, 106, 244, 0.08);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-affordance {
  color: #94a3b8;
  opacity: 0.75;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-preview {
  background: rgba(46, 118, 186, 0.2);
  color: #7db3e8;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-remove-btn {
  box-shadow: 0 0 0 2px #0f172a;
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-title {
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .media-upload-hint {
  color: var(--rl-muted, #94a3b8);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .footer-card-modal {
  border-top-color: var(--rl-border, #334155);
  background: var(--rl-surface, #1e293b);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .cancel-btn-board {
  background: transparent;
  border-color: var(--rl-border, #334155);
  color: var(--rl-ink, #f1f5f9);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .cancel-btn-board:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card {
  background: var(--rl-blue, #0c6af4);
}

html[data-theme="dark"] :is(#addCard, #editCard, #viewCard, #commentModel) .button-add-card:hover:not(:disabled) {
  background: #2580f7;
}

@media (max-width: 576px) {
  :is(#addCard, #editCard, #viewCard, #commentModel) .section-input-box.flex-justify-style {
    flex-direction: column;
    align-items: stretch;
  }
}
