html[data-ui-theme="sdal"] .new-document-steps-page {
  min-height: 100vh;
  background-color: var(--sdal-bg-base);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .container {
  background: var(--sdal-bg-base);
}

html[data-ui-theme="sdal"] .new-document-steps-page .logo.logo--sdal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

html[data-ui-theme="sdal"] .new-document-steps-page .logo__wordmark {
  height: 22px;
  width: auto;
}

html[data-ui-theme="sdal"] .new-document-steps-page .steps-sidebar {
  background: var(--sdal-bg-base);
  border-right-color: var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item:not(:last-child)::after {
  background-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-number {
  background: transparent;
  border-color: var(--sdal-border);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item.complete .step-number {
  background: var(--sdal-accent);
  border-color: var(--sdal-accent);
  color: var(--sdal-on-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item.active .step-number {
  background: transparent;
  border-color: var(--sdal-line-light);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-title {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item.active .step-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item.disabled .step-number {
  background: transparent;
  border-color: var(--sdal-border);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item.disabled .step-title {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .main-content {
  background: var(--sdal-bg-base);
}

html[data-ui-theme="sdal"] .new-document-steps-page .form-content {
  background: transparent;
  border: none;
  margin: 12px 20px 100px !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .form-title {
  color: var(--sdal-text-primary);
  white-space: normal;
  font-weight: 600;
}

html[data-ui-theme="sdal"] .new-document-steps-page .input-title {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .theme-block {
  background: var(--sdal-surface-card);
  border: 1px solid var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .theme-block:hover {
  background: var(--sdal-surface-card-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .theme-block.active {
  background: var(--sdal-surface-hover);
  border-color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .theme-text {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .input-text {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .input-text:hover {
  border-color: var(--sdal-border-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .input-text:focus {
  border-color: var(--sdal-accent) !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .char-counter {
  background: var(--sdal-surface);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .navigation-buttons {
  background: var(--sdal-surface-card);
  border-top: 1px solid var(--sdal-border);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  justify-content: space-between;
}

html[data-ui-theme="sdal"] .new-document-steps-page .nav-button.next {
  background: var(--sdal-accent);
  color: var(--sdal-on-accent);
  border-radius: 4px;
}

html[data-ui-theme="sdal"] .new-document-steps-page .nav-button.next:hover:not(:disabled) {
  background: var(--sdal-accent);
  filter: brightness(1.08);
}

html[data-ui-theme="sdal"] .new-document-steps-page .nav-button.next:disabled {
  opacity: 0.55;
}

html[data-ui-theme="sdal"] .new-document-steps-page .nav-button.back {
  background: var(--sdal-surface-card);
  border: 1px solid var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .nav-button.back:hover {
  background: var(--sdal-surface-hover);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .type-select {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .type-select:hover {
  border-color: var(--sdal-border-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .type-select:focus {
  border-color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .social-link {
  color: var(--sdal-text-muted);
  justify-content: flex-start;
}

html[data-ui-theme="sdal"] .new-document-steps-page .social-link:hover {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-navbar {
  background: var(--sdal-surface);
  border-bottom-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-logo {
  display: flex;
  align-items: center;
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-logo-sdal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-logo-sdal__wordmark {
  height: 18px;
  width: auto;
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-icon {
  background: var(--sdal-surface-card);
  box-shadow: none;
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-icon:hover {
  background: var(--sdal-surface-hover);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-steps {
  background: var(--sdal-bg-base);
  border-bottom-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item {
  background: var(--sdal-bg-base);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item:hover {
  background: var(--sdal-surface);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-number {
  background: transparent;
  border-color: var(--sdal-border);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.active .mobile-step-number {
  background: transparent;
  border-color: var(--sdal-line-light);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-title {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.active .mobile-step-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.complete .mobile-step-number {
  background: var(--sdal-accent);
  border-color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.active {
  background: var(--sdal-surface);
  box-shadow: none;
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.disabled .mobile-step-number {
  background: transparent;
  border-color: var(--sdal-border);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item.disabled .mobile-step-title {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-bar {
  border-color: var(--sdal-border);
  border-radius: 4px;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-bar .section:nth-child(1) {
  background-color: #353938 !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-bar .section:nth-child(2) {
  background-color: #2f4a38 !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-bar .section:nth-child(3) {
  background-color: #3d3450 !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-bar .section:nth-child(4) {
  background-color: #2a4548 !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .section {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .section-size {
  text-shadow: none;
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .section-label {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-input {
  gap: 10px;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-input button {
  background-color: var(--sdal-surface-card) !important;
  border: 1px solid var(--sdal-border) !important;
  border-radius: 4px;
  color: var(--sdal-text-primary) !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-input button:hover {
  background-color: var(--sdal-surface-hover) !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-input button.disabled,
html[data-ui-theme="sdal"] .new-document-steps-page .volume-input button.disabled:hover {
  background-color: var(--sdal-surface) !important;
  border-color: var(--sdal-border) !important;
  color: var(--sdal-text-muted) !important;
  opacity: 0.55 !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .volume-input input,
html[data-ui-theme="sdal"] .new-document-steps-page .total-volume-input {
  border: 1px solid var(--sdal-border) !important;
  border-radius: 4px;
  background-color: var(--sdal-surface-card) !important;
  color: var(--sdal-text-primary) !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .total-volume-input:focus {
  border-color: var(--sdal-accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .input-container .add-button,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .theme-block,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .input-text,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .char-counter,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .list-item,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .topic-item,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .sub-item,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .volume-bar,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .volume-input button,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .volume-input input,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .total-volume-input,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .type-select,
html[data-ui-theme="sdal"] .new-document-steps-page .input-container .control-button {
  border-radius: 4px;
}

html[data-ui-theme="sdal"] .new-document-steps-page .add-button {
  background: var(--sdal-surface-card);
  border: 1px solid var(--sdal-border);
  color: var(--sdal-text-primary);
  border-radius: 4px;
  font-weight: 600;
  min-height: 44px;
  gap: 8px;
}

html[data-ui-theme="sdal"] .new-document-steps-page .add-button:hover {
  background: var(--sdal-surface-hover);
  border-color: var(--sdal-border-hover);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .list-item {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .list-item.active {
  background: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .topic-item {
  border-color: var(--sdal-border);
  background: var(--sdal-surface-card);
}

html[data-ui-theme="sdal"] .new-document-steps-page .topic-item.active {
  background: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .sub-item {
  background: var(--sdal-surface);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .sub-item.active {
  background: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .sub-item:hover {
  background: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-number {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-text {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-input {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-input::placeholder {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-content:hover {
  background-color: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .control-button {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .drag-button::before,
html[data-ui-theme="sdal"] .new-document-steps-page .delete-button::before,
html[data-ui-theme="sdal"] .new-document-steps-page .confirm-button::before,
html[data-ui-theme="sdal"] .new-document-steps-page .cancel-button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--sdal-text-primary);
  mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-position: center;
}

html[data-ui-theme="sdal"] .new-document-steps-page .drag-button::before {
  mask-image: url('/files/drag.svg');
  mask-image: url('/files/drag.svg');
}

html[data-ui-theme="sdal"] .new-document-steps-page .delete-button::before {
  mask-image: url('/files/trash.svg');
  mask-image: url('/files/trash.svg');
}

html[data-ui-theme="sdal"] .new-document-steps-page .confirm-button::before {
  mask-image: url('/files/confirm.svg');
  mask-image: url('/files/confirm.svg');
}

html[data-ui-theme="sdal"] .new-document-steps-page .cancel-button::before {
  mask-image: url('/files/cross.svg');
  mask-image: url('/files/cross.svg');
}

html[data-ui-theme="sdal"] .new-document-steps-page .add-sub-button::before {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .edit-icon {
  background-color: var(--sdal-text-muted);
  background-image: none;
  mask-image: url('/files/pencil.svg');
  mask-image: url('/files/pencil.svg');
  mask-size: 14px 14px;
  mask-size: 14px 14px;
  mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-position: center;
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-content:hover .item-text::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  vertical-align: middle;
  background-color: var(--sdal-text-muted);
  mask-image: url('/files/pencil.svg');
  mask-image: url('/files/pencil.svg');
  mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-position: center;
  padding-left: 0;
}

html[data-ui-theme="sdal"] .new-document-steps-page .empty-state {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .popup {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-item {
  border-color: var(--sdal-border);
  background: var(--sdal-surface-card);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-item:hover {
  border-color: var(--sdal-accent);
  box-shadow: none;
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-label {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-author,
html[data-ui-theme="sdal"] .new-document-steps-page .source-year,
html[data-ui-theme="sdal"] .new-document-steps-page .source-type {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-description {
  color: var(--sdal-text-muted);
  border-top-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-url {
  color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-item.active {
  background: var(--sdal-surface-hover);
}

html[data-ui-theme="sdal"] .new-document-steps-page .modal-content {
  background: var(--sdal-surface-card);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .modal-header {
  border-bottom-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .modal-header h3 {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .modal-close {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .modal-close:hover {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .limit-message {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .limit-details {
  background: var(--sdal-surface);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .stat-label {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .stat-value {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .stat-value.unlimited {
  color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .action-button.primary {
  background: var(--sdal-accent);
  color: var(--sdal-on-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .action-button.primary:hover {
  filter: brightness(1.06);
  color: var(--sdal-on-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .action-button.secondary {
  background: var(--sdal-surface);
  color: var(--sdal-text-primary);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .action-button.secondary:hover {
  background: var(--sdal-surface-hover);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .save-notice-content {
  background: var(--sdal-surface);
  border-color: var(--sdal-border);
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-container {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-section {
  background: var(--sdal-surface-card);
  border-color: var(--sdal-border);
  box-shadow: none;
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-section-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-number,
html[data-ui-theme="sdal"] .new-document-steps-page .review-sub-number {
  color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-label {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-value {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-list-item {
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-text {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-empty {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-sub-item {
  background: var(--sdal-surface);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-json summary:hover {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-source-title {
  color: var(--sdal-text-primary);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-source-label {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-source-author,
html[data-ui-theme="sdal"] .new-document-steps-page .review-source-year,
html[data-ui-theme="sdal"] .new-document-steps-page .review-source-type {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-source-description {
  color: var(--sdal-text-muted);
  border-top-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-link {
  color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .create-button {
  background: var(--sdal-accent);
  color: var(--sdal-on-accent);
  box-shadow: none;
}

html[data-ui-theme="sdal"] .new-document-steps-page .create-button:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: none;
}

html[data-ui-theme="sdal"] .new-document-steps-page .create-button:disabled {
  background: var(--sdal-border);
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-json {
  border-top-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-json details {
  background: var(--sdal-surface);
  border-color: var(--sdal-border);
}

html[data-ui-theme="sdal"] .new-document-steps-page .review-json summary {
  color: var(--sdal-text-muted);
}

html[data-ui-theme="sdal"] .new-document-steps-page .source-field-input:focus {
  outline-color: var(--sdal-accent);
}

html[data-ui-theme="sdal"] .new-document-steps-page .status-check-overlay .q-spinner {
  color: var(--sdal-accent) !important;
}

@media (width <= 768px) {
  html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-item:hover {
    background: var(--sdal-bg-base) !important;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .navigation-buttons {
    background: var(--sdal-surface-card);
    border-top: 1px solid var(--sdal-border);
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .mobile-item-menu {
    background: var(--sdal-surface-card);
    border-top-color: var(--sdal-border);
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.move-up-button::before,
  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.move-down-button::before {
    color: var(--sdal-text-primary);
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.edit-button {
    background-color: var(--sdal-text-primary);
    background-image: none;
    mask-image: url('/files/pencil.svg');
    mask-image: url('/files/pencil.svg');
    mask-size: 20px 20px;
    mask-size: 20px 20px;
    mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-position: center;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.delete-button {
    background-color: var(--sdal-text-primary);
    background-image: none;
    mask-image: url('/files/trash.svg');
    mask-image: url('/files/trash.svg');
    mask-size: 20px 20px;
    mask-size: 20px 20px;
    mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-position: center;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.delete-button::before {
    display: none;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.close-button {
    background-color: var(--sdal-text-primary);
    background-image: none;
    mask-image: url('/files/cross.svg');
    mask-image: url('/files/cross.svg');
    mask-size: 20px 20px;
    mask-size: 20px 20px;
    mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-position: center;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.add-sub-button {
    background-color: var(--sdal-text-primary);
    background-image: none;
    mask-image: url('/files/plus.svg');
    mask-image: url('/files/plus.svg');
    mask-size: 20px 20px;
    mask-size: 20px 20px;
    mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-position: center;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.add-sub-button::before {
    display: none;
  }

  html[data-ui-theme="sdal"] .new-document-steps-page .control-button.link-button {
    background-color: var(--sdal-text-primary);
    background-image: none;
    mask-image: url('/files/link.svg');
    mask-image: url('/files/link.svg');
    mask-size: 20px 20px;
    mask-size: 20px 20px;
    mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-position: center;
  }
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-item,
html[data-ui-theme="sdal"] .new-document-steps-page .form-content,
html[data-ui-theme="sdal"] .new-document-steps-page .input-text,
html[data-ui-theme="sdal"] .new-document-steps-page .navigation-buttons,
html[data-ui-theme="sdal"] .new-document-steps-page .nav-button,
html[data-ui-theme="sdal"] .new-document-steps-page .theme-block,
html[data-ui-theme="sdal"] .new-document-steps-page .type-select,
html[data-ui-theme="sdal"] .new-document-steps-page .popup,
html[data-ui-theme="sdal"] .new-document-steps-page .source-item,
html[data-ui-theme="sdal"] .new-document-steps-page .source-item.active,
html[data-ui-theme="sdal"] .new-document-steps-page #sourcesContainer.list-container .source-item,
html[data-ui-theme="sdal"] .new-document-steps-page #sourcesContainer.list-container .source-item.active,
html[data-ui-theme="sdal"] .new-document-steps-page .modal-content,
html[data-ui-theme="sdal"] .new-document-steps-page .modal-overlay,
html[data-ui-theme="sdal"] .new-document-steps-page .modal-header,
html[data-ui-theme="sdal"] .new-document-steps-page .modal-body,
html[data-ui-theme="sdal"] .new-document-steps-page .emoji-container,
html[data-ui-theme="sdal"] .new-document-steps-page .list-item,
html[data-ui-theme="sdal"] .new-document-steps-page .list-item.active,
html[data-ui-theme="sdal"] .new-document-steps-page .topic-item,
html[data-ui-theme="sdal"] .new-document-steps-page .topic-item.active,
html[data-ui-theme="sdal"] .new-document-steps-page .sub-item,
html[data-ui-theme="sdal"] .new-document-steps-page .sub-item.active,
html[data-ui-theme="sdal"] .new-document-steps-page .sub-item:hover,
html[data-ui-theme="sdal"] .new-document-steps-page .limit-details,
html[data-ui-theme="sdal"] .new-document-steps-page .save-notice-content,
html[data-ui-theme="sdal"] .new-document-steps-page .review-section,
html[data-ui-theme="sdal"] .new-document-steps-page .review-sub-item,
html[data-ui-theme="sdal"] .new-document-steps-page .review-json details,
html[data-ui-theme="sdal"] .new-document-steps-page .review-source-item,
html[data-ui-theme="sdal"] .new-document-steps-page .create-button,
html[data-ui-theme="sdal"] .new-document-steps-page .json-code,
html[data-ui-theme="sdal"] .new-document-steps-page .review-empty,
html[data-ui-theme="sdal"] .new-document-steps-page .error-popup,
html[data-ui-theme="sdal"] .new-document-steps-page .action-button,
html[data-ui-theme="sdal"] .new-document-steps-page .add-button,
html[data-ui-theme="sdal"] .new-document-steps-page .control-button,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-navbar,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-icon,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-steps,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-item-menu,
html[data-ui-theme="sdal"] .new-document-steps-page .total-volume-input,
html[data-ui-theme="sdal"] .new-document-steps-page .item-input,
html[data-ui-theme="sdal"] .new-document-steps-page .source-field-input,
html[data-ui-theme="sdal"] .new-document-steps-page .char-counter,
html[data-ui-theme="sdal"] .new-document-steps-page .topic-input {
  border-radius: 4px !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .sub-item:last-child {
  border-radius: 0 0 4px 4px !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .item-content:hover {
  border-radius: 4px !important;
}

html[data-ui-theme="sdal"] .new-document-steps-page .step-number,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-step-number,
html[data-ui-theme="sdal"] .new-document-steps-page .mobile-social-link,
html[data-ui-theme="sdal"] .new-document-steps-page .item-number {
  border-radius: 50% !important;
}

/* На телефоне две кнопки шага делят ширину: min-width 280px из базового файла
   иначе выталкивает «Назад» за экран. */
@media (width <= 760px) {
  html[data-ui-theme="sdal"] .new-document-steps-page .nav-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
  }
}
