/* editor-plus.css — POWER TOOLS skins.9minecraft.net/editor/ (06/12/2026). Xem editor-plus.js.
 * ⛔ Màu chỉ lấy biến --e9-* (sáng/tối có sẵn trong editor-9mc.css). Không vạch màu 1 cạnh, không nền đậm ở chế độ sáng.
 * ⛔ .ed9 * { border-color: transparent !important } ⇒ viền vẽ bằng box-shadow. Chạm ≥44px, ô chữ 16px. */
.edp { --edp-nhan: var(--e9-nhan, #1a73e8); margin-top: 12px; padding: 10px; border-radius: 18px; background: var(--e9-mat2, #f8f9fa);
  color: var(--e9-chu, #1f1f1f); font: 500 14px/1.3 'Google Sans Text', 'Google Sans', Roboto, system-ui, sans-serif; contain: layout paint; }
.edp *, .edp *::before { box-sizing: border-box; }
.edp button { font: inherit; color: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
.edp button:focus-visible, .edp input:focus-visible { outline: 2px solid var(--edp-nhan); outline-offset: 2px; }
.edp [hidden] { display: none !important; }
.edp-ic { display: inline-block; flex: none; width: 24px; height: 24px; background: url(/vendor/edd/Plus-Icons.png?v=1) 0 0 / 7000% 100% no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges; vertical-align: middle; }
.edp-ic--to { width: 32px; height: 32px; }

.edp-hd { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; font-size: 15px; }
.edp-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 4px; border-radius: 16px; background: var(--e9-mat, #fff); box-shadow: var(--e9-bong1); }
.edp-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 0; border-radius: 12px;
  background: none; font-size: 10.5px !important; font-weight: 700 !important; transition: background-color .2s, color .2s; }
.edp-tab:hover { background: var(--e9-mat2); }
.edp-tab[aria-selected="true"] { background: var(--e9-nhan-nh, #e8f0fe); color: var(--edp-nhan); }
.edp-p { padding-top: 6px; animation: edp-vao .22s ease; }
@keyframes edp-vao { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.edp-lb { display: flex; align-items: center; gap: 6px; margin: 10px 2px 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--e9-chu2, #444746); }
.edp-lb .edp-ic { width: 20px; height: 20px; }
.edp-note { margin: 6px 2px 0; font-size: 12.5px; color: var(--e9-chu2, #444746); }
.edp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Builder */
.edp-bact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.edp-btn--go { background: var(--e9-nhan-nh, #e8f0fe); color: var(--edp-nhan); }
.edp-bcats .edp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px 0 6px; }
.edp-bcats .edp-ic { width: 20px; height: 20px; }
.edp-bopt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 8px; }
.edp-bo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 14px; background: var(--e9-mat, #fff);
  box-shadow: var(--e9-bong1); font-size: 11.5px !important; font-weight: 700 !important; transition: transform .15s, box-shadow .2s; }
.edp-bo:hover { transform: translateY(-2px); }
.edp-bo canvas { width: 36px; height: 72px; image-rendering: pixelated; }
.edp-bo.is-on { background: var(--e9-nhan-nh, #e8f0fe); color: var(--edp-nhan); box-shadow: 0 0 0 2px var(--edp-nhan); }
.edp-dot.is-on::before { box-shadow: 0 0 0 2px var(--e9-mat, #fff), 0 0 0 4px var(--edp-nhan); }
.edp-dot--cur::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 16px/1 system-ui; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.7); }

/* Brush */
.edp-tones { display: grid; gap: 6px; }
.edp-tone { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 14px; background: var(--e9-mat, #fff);
  box-shadow: var(--e9-bong1); text-align: left; transition: box-shadow .2s, background-color .2s, transform .15s; }
.edp-tone:hover { transform: translateY(-1px); }
.edp-tone span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.edp-tone small { font-size: 12px; color: var(--e9-chu2, #444746); font-weight: 500; }
.edp-tone.is-on { background: var(--e9-nhan-nh, #e8f0fe); box-shadow: 0 0 0 2px var(--edp-nhan); }

/* Colors */
.edp-pal, .edp-skin { display: flex; flex-wrap: wrap; gap: 4px; }
.edp-dot { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: none; }
.edp-dot::before { content: ''; position: absolute; inset: 6px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .15s; }
.edp-dot:hover::before { transform: scale(1.12); }
.edp.is-rep .edp-skin .edp-dot::after { content: ''; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--e9-mat, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a73e8' d='M12 4V1L8 5l4 4V6a6 6 0 0 1 5.7 7.9l1.5 1.5A8 8 0 0 0 12 4zm0 14a6 6 0 0 1-5.7-7.9L4.8 8.6A8 8 0 0 0 12 20v3l4-4-4-4z'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: var(--e9-bong1); }
.edp-sw { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.edp-sw input { width: 20px; height: 20px; accent-color: var(--edp-nhan); }
.edp-tol label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.edp-tol input { width: 100%; min-height: 32px; accent-color: var(--edp-nhan); }

.edp-pd { margin-bottom: 4px; border-radius: 14px; background: var(--e9-mat, #fff); box-shadow: var(--e9-bong1); }
.edp-pd summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; cursor: pointer; list-style: none; font-size: 13px; }
.edp-pd summary::-webkit-details-marker { display: none; }
.edp-pd summary::after { content: ''; width: 7px; height: 7px; margin-left: 4px; box-shadow: 2px 2px 0 0 currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; opacity: .6; }
.edp-pd[open] summary::after { transform: rotate(-135deg); }
.edp-pd summary b { flex: 1; }
.edp-mini4 { display: flex; gap: 2px; }
.edp-mini4 i { width: 10px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.edp-pd .edp-pal { padding: 0 6px 8px; }

/* Edit + chung */
.edp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.edp-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 14px; background: var(--e9-mat, #fff);
  box-shadow: var(--e9-bong1); text-align: left; font-size: 12.5px !important; transition: transform .15s, background-color .2s; }
.edp-btn:hover { transform: translateY(-1px); background: var(--e9-nhan-nh, #e8f0fe); }
.edp-btn:active { transform: scale(.97); }
.edp-btn b { line-height: 1.2; }
.edp-btn--to { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; min-height: 88px; }
.edp-btn--to small { font-size: 11.5px; color: var(--e9-chu2, #444746); font-weight: 500; }
.edp-btn.is-cho { opacity: .8; pointer-events: none; }
.edp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.edp-chip { min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--e9-mat, #fff); box-shadow: var(--e9-bong1); font-size: 12.5px !important; font-weight: 700 !important; }
.edp-chip.is-on { background: var(--e9-nhan-nh, #e8f0fe); color: var(--edp-nhan); box-shadow: 0 0 0 2px var(--edp-nhan); }
.edp-warn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--e9-mat, #fff); box-shadow: 0 0 0 2px #f9ab00; font-size: 12.5px; }
.edp-warn span { flex: 1; }
.edp-mini { min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--e9-nhan-nh, #e8f0fe) !important; color: var(--edp-nhan) !important; font-weight: 700 !important; }

/* Filters */
.edp-rmxs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.edp-rmx { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 4px; border-radius: 12px; background: var(--e9-mat, #fff); box-shadow: var(--e9-bong1); transition: transform .15s; }
.edp-rmx:hover { transform: translateY(-2px); }
.edp-rmx canvas { width: 100%; max-width: 32px; height: auto; image-rendering: pixelated; }
.edp-fil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.edp-f { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 68px; padding: 6px 2px; border-radius: 12px; background: var(--e9-mat, #fff);
  box-shadow: var(--e9-bong1); font-size: 11.5px !important; font-weight: 700 !important; transition: transform .15s, background-color .2s; }
.edp-f:hover { transform: translateY(-1px); background: var(--e9-nhan-nh, #e8f0fe); }
.edp-f:active { transform: scale(.96); }

/* Export */
.edp-ten { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 12.5px; font-weight: 700; }
.edp-ten input { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--e9-mat, #fff); box-shadow: var(--e9-bong1); color: inherit; font: 500 16px/1 inherit; }

@media (max-width: 640px) {
  .edp { margin-top: 0; background: none; padding: 4px 0; }
  .edp-hd { display: none; }
  .edp-fil { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .edp *, .edp-p { animation: none !important; transition: none !important; } }
