/* DrawerNewspaperEditorChrome v20260506-06 */
.dnwe-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99995;
  min-width: 74px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.dnwe-panel {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 99996;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  border: 1px solid rgba(17, 24, 39, .08);
}

.dnwe-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.dnwe-panel-title {
  font: 700 17px/1.2 system-ui, sans-serif;
}

.dnwe-panel-subtitle {
  margin-top: 6px;
  color: #6b7280;
  font: 500 12px/1.45 system-ui, sans-serif;
}

.dnwe-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dnwe-presetbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(240px, 100%);
  flex: 1 1 260px;
}

.dnwe-select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font: 600 13px/1.3 system-ui, sans-serif;
}

.dnwe-panel-body {
  padding: 16px 18px 22px;
}

.dnwe-section {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.dnwe-section-title {
  margin: 0;
  font: 700 12px/1.2 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #991b1b;
}

.dnwe-section-note {
  margin: 8px 0 12px;
  color: #6b7280;
  font: 500 12px/1.5 system-ui, sans-serif;
}

.dnwe-grid {
  display: grid;
  gap: 12px;
}

.dnwe-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dnwe-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dnwe-label {
  font: 600 12px/1.2 system-ui, sans-serif;
  color: #374151;
}

.dnwe-hint {
  color: #6b7280;
  font: 500 11px/1.4 system-ui, sans-serif;
}

.dnwe-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  font: 500 13px/1.3 system-ui, sans-serif;
}

.dnwe-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1d4ed8;
}

.dnwe-field input[type="color"] {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  background: transparent;
}

.dnwe-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dnwe-field input[type="range"] {
  width: 100%;
}

.dnwe-range-value {
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  text-align: center;
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: .04em;
}

.dnwe-btn {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font: 700 13px/1 system-ui, sans-serif;
  cursor: pointer;
}

.dnwe-btn--ghost {
  background: #eef2ff;
  color: #1f2937;
}

@media (max-width: 680px) {
  .dnwe-panel {
    right: 12px;
    top: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .dnwe-grid--2 {
    grid-template-columns: 1fr;
  }
}
