/* Set Planner V4 — clean inspector redesign.
 * Single consistent panel, flat dividers, visible native pixel icons.
 * Replaces the old numbered-card / colored tile-tab design.
 */
@media (min-width:761px) and (min-height:601px){
 html:not(.v4-arcade-mode) #v4-character .canvaswrap{
  height:clamp(330px,47dvh,550px)!important;
  min-height:330px!important;max-height:550px!important;
 }
}
html:not(.v4-arcade-mode) #v4-appearance{
 min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-appearance-pane{
 border-radius:17px!important;
 overflow:hidden!important;
 background:linear-gradient(156deg,rgba(29,57,84,.52),rgba(10,24,42,.59))!important;
 border:1px solid rgba(146,200,236,.33)!important;
 box-shadow:inset 0 1px rgba(245,255,255,.09),0 11px 33px rgba(3,11,26,.16)!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-appearance-content{
 display:flex!important;flex-direction:column!important;gap:0!important;
 padding:0!important;min-width:0!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-card{
 box-sizing:border-box;display:flex;flex-direction:column;gap:12px;
 width:100%;min-width:0;margin:0!important;
 padding:17px 15px 18px!important;
 border:0!important;border-bottom:1px solid rgba(147,195,225,.18)!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
 color:#e6f2f9;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-card:last-child{border-bottom:0!important}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-head{
 display:flex;align-items:start;gap:0!important;
 padding:0!important;margin:0!important;
 border:0!important;background:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-index{display:none!important}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-head-copy{
 display:flex;flex-direction:column;gap:2px;min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-head-copy :is(h3,strong){
 margin:0!important;color:#f3ead4!important;
 font:790 14px/1.35 Inter,system-ui,sans-serif!important;
 letter-spacing:-.012em!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-head-copy :is(p,small){
 margin:0!important;color:#99b5c8!important;
 font:500 10px/1.45 Inter,system-ui,sans-serif!important;
}
/* Identity editor: one clear editable line, no decorative @ symbol. */
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-namebox{
 display:flex;flex-direction:column;gap:7px;min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-field-label{
 color:#bfd8e7;font:690 11px/1.3 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-name-input{
 box-sizing:border-box;display:flex;align-items:center;gap:8px;
 padding:3px 12px;min-height:44px;min-width:0;
 border-radius:10px;border:1px solid rgba(155,204,238,.33);
 background:rgba(7,23,41,.52);
 transition:border-color .15s ease;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-name-input:focus-within{
 border-color:rgba(137,224,255,.78);box-shadow:0 0 0 2px rgba(91,190,246,.10);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-name-symbol{display:none!important}
html:not(.v4-arcade-mode) #v4-appearance #v4-v2-player-name{
 display:block!important;width:100%!important;min-width:0!important;
 flex:1!important;max-width:none!important;
 margin:0!important;padding:6px 0!important;min-height:34px!important;
 background:transparent!important;border:0!important;
 box-shadow:none!important;outline:0!important;
 color:#fff7e4!important;font:730 14px/1.3 Inter,system-ui,sans-serif!important;
}
html:not(.v4-arcade-mode) #v4-appearance #v4-v2-player-name::placeholder{
 color:#809eae!important;font-weight:500!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-name-length{
 flex:0 0 auto;color:#8baab9;font:600 10px/1.2 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-field-hint{
 color:#88aabd;font:500 10px/1.45 Inter,system-ui,sans-serif;
 margin:0;
}
/* Compact row of actual skin palettes. No card inside another card. */
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-subhead{
 display:flex;align-items:baseline;justify-content:space-between;gap:7px;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-subhead strong{
 color:#bed5e5;font:690 11px/1.35 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-skin-current{
 color:#96b9cc;font:590 10px/1.35 Inter,system-ui,sans-serif;
 text-align:right;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-v2-swatches{
 display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
 gap:8px!important;width:100%!important;min-width:0!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-v2-swatches button{
 aspect-ratio:1!important;width:100%!important;min-width:0!important;max-width:none!important;
 height:auto!important;min-height:29px!important;
 border-radius:50%!important;border:2px solid rgba(228,241,251,.43)!important;
 padding:0!important;box-shadow:inset 0 1px rgba(255,255,255,.27),0 3px 8px rgba(4,12,27,.2)!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-v2-swatches button.on{
 outline:2px solid #81dfff!important;outline-offset:2px!important;
 border-color:#fff3d1!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-skin-controls:has(.v4-character-options[data-v4-has-swatches=true]){
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effects-row{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:11px 0 0;border-top:1px solid rgba(147,196,228,.16);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effect-copy{
 display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effect-copy strong{
 color:#d9eaf6;font:700 11px/1.3 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effect-copy small{
 color:#8eacbf;font:510 10px/1.35 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effects-row .v4-effects-label{
 display:grid!important;place-items:center;
 flex:0 0 auto!important;width:35px!important;height:35px!important;min-width:35px!important;
 border:1px solid rgba(145,204,244,.29);border-radius:10px!important;
 background:rgba(28,65,104,.22)!important;
 color:transparent!important;font-size:0!important;line-height:0!important;
 padding:0!important;cursor:pointer;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effects-row .v4-effects-label:has(input:checked){
 border-color:rgba(122,219,251,.62);background:rgba(45,119,158,.25)!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-effects-row #effects{
 appearance:auto!important;-webkit-appearance:checkbox!important;
 display:block!important;transform:none!important;
 width:17px!important;height:17px!important;min-width:17px!important;
 margin:0!important;padding:0!important;
 border-radius:3px!important;accent-color:#80dcf9!important;
 box-shadow:none!important;
}
/* A practical editor: grouped disclosures instead of the previous tabs. */
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-titlebar{
 display:flex;align-items:center;justify-content:space-between;gap:7px;
 flex-wrap:wrap;margin:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-titlebar>strong{
 color:#c9deee;font:720 11px/1.3 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-titlebar-actions{
 display:flex;gap:8px;align-items:center;margin-left:auto;
}
html:not(.v4-arcade-mode) #v4-appearance #v4-v2-title-count{
 color:#a7c4d4;font-size:10px!important;white-space:nowrap;margin:0!important;
}
html:not(.v4-arcade-mode) #v4-appearance #v4-v2-title-clear{
 display:grid;place-items:center;
 padding:5px 8px!important;min-height:26px!important;
 border-radius:7px!important;
 border:1px solid rgba(148,202,239,.28)!important;
 background:rgba(42,83,116,.24)!important;
 color:#bcd9ea!important;font:650 10px/1.3 Inter,system-ui,sans-serif!important;
}
html:not(.v4-arcade-mode) #v4-appearance #v4-v2-title-list{
 display:flex!important;flex-direction:column!important;gap:6px!important;
 width:100%!important;min-width:0!important;align-items:stretch!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold{
 box-sizing:border-box;width:100%;min-width:0;
 display:block!important;margin:0;border:1px solid rgba(140,189,223,.23);
 border-radius:10px;background:rgba(8,26,45,.24);overflow:hidden;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold>summary{
 list-style:none!important;
 display:flex!important;align-items:center;gap:9px;
 min-height:45px;padding:9px 11px;cursor:pointer;
 background:transparent;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold>summary::-webkit-details-marker{display:none}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold>summary:hover{
 background:rgba(59,119,162,.15);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold[open]>summary{
 border-bottom:1px solid rgba(146,204,240,.17);
 background:rgba(45,94,134,.12);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-copy{
 flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-copy strong{
 color:#e5f3fb;font:730 11px/1.2 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-copy small{
 color:#8cabbf;font:510 9px/1.35 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-meta{
 display:flex;align-items:center;gap:8px;flex:0 0 auto;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-amount{
 display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;
 border-radius:6px;background:rgba(86,148,192,.21);
 border:1px solid rgba(154,210,244,.22);
 color:#cbe9f8;font:730 10px/1 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-fold-chevron{
 color:#a4c8d9;font-size:15px;transition:transform .17s;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold[open] .v4-editor-fold-chevron{
 transform:rotate(180deg);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold:not([open])>.v4-v2-title-section{
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold>.v4-v2-title-section{
 box-sizing:border-box;display:flex!important;flex-direction:column;
 min-width:0;width:100%!important;gap:0!important;
 padding:8px!important;margin:0!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-section>.small,
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-rule{
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-buttons.v4-v2-icon-grid{
 box-sizing:border-box;
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 gap:4px!important;min-width:0!important;width:100%!important;
 max-height:274px;overflow-y:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:rgba(123,187,225,.33) transparent;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice{
 box-sizing:border-box;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;gap:10px!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 height:42px!important;min-height:42px!important;
 padding:5px 9px!important;margin:0!important;
 background:transparent!important;border:1px solid transparent!important;
 border-radius:8px!important;box-shadow:none!important;
 color:#c8ddeb!important;text-shadow:none!important;
 font:650 11px/1.2 Inter,system-ui,sans-serif!important;
 cursor:pointer;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice:hover{
 background:rgba(62,117,162,.18)!important;border-color:rgba(160,215,246,.20)!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice.on{
 background:rgba(57,117,162,.28)!important;
 border-color:rgba(117,209,255,.51)!important;
 box-shadow:inset 3px 0 0 #7edbf6!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice :is(img,canvas).v4-v2-title-icon{
 display:block!important;
 flex:0 0 28px!important;width:28px!important;height:28px!important;
 max-width:28px!important;max-height:28px!important;
 margin:0!important;object-fit:contain!important;image-rendering:pixelated!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice .v4-title-label{
 display:block!important;
 flex:1!important;min-width:0!important;width:auto!important;max-width:none!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 max-height:none!important;
 text-align:left!important;color:#d5e8f6!important;
 font:660 11px/1.25 Inter,system-ui,sans-serif!important;
 text-shadow:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice.on .v4-title-label{
 color:#f1f8ff!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-title-fold .v4-v2-title-choice.on::after{
 content:'✓';flex:0 0 auto;position:static!important;
 width:17px;height:17px;border-radius:50%;
 display:grid;place-items:center;
 color:#072237;background:#8ae0f9;
 font:800 10px/1 Inter,system-ui,sans-serif;
}
/* One more restrained disclosure for original guild and flag widgets. */
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags{
 display:block!important;padding:0!important;overflow:hidden;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags>summary{
 display:flex!important;align-items:center;gap:9px;
 list-style:none!important;min-height:54px;padding:12px 15px;
 cursor:pointer;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags>summary::-webkit-details-marker{display:none}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags>summary:hover{
 background:rgba(63,122,166,.12);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-editor-head-copy{
 flex:1;min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-editor-head-copy strong{
 color:#e3f1fa;font:730 12px/1.2 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-editor-head-copy small{
 color:#97b4c5;font:500 10px/1.3 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-editor-chevron{
 flex:0 0 auto;color:#b8d5e5;font-size:17px;transition:transform .15s;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags[open] .v4-editor-chevron{
 transform:rotate(180deg);
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags:not([open])>.v4-source-title-extras{
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-extras{
 display:flex;flex-direction:column;gap:9px;
 padding:13px!important;margin:0!important;
 border:0!important;border-top:1px solid rgba(146,205,237,.17)!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-head{
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-fields{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:9px!important;min-width:0;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-fields label{
 min-width:0;display:flex;flex-direction:column;gap:5px;
 color:#b4ccdc;font:630 10px/1.3 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-fields :is(input,select){
 box-sizing:border-box;
 width:100%!important;min-width:0!important;height:36px!important;
 padding:6px 7px!important;border-radius:8px!important;
 border:1px solid rgba(143,200,234,.29)!important;
 color:#e9f5ff!important;background:#142c46!important;
 font:620 11px/1.2 Inter,system-ui,sans-serif!important;
}
/* Item settings are now part of the live character workspace, below preview. */
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-card{
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 gap:11px;
 margin:10px 8px 6px;
 padding:13px;
 border:1px solid rgba(151,212,248,.30);
 border-radius:15px;
 background:linear-gradient(150deg,rgba(47,92,135,.23),rgba(10,31,56,.41));
 min-width:0;max-width:calc(100% - 16px);
 box-shadow:inset 0 1px rgba(234,255,255,.09);
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-card[hidden]{
 display:none!important;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-head{
 display:flex;align-items:center;gap:9px;min-width:0;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-symbol{
 display:grid;place-items:center;flex:0 0 34px;
 width:34px;height:34px;border:1px solid rgba(153,218,251,.41);
 border-radius:10px;background:rgba(54,110,155,.29);
 color:#e9faff;font-size:17px;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-title{
 display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-title strong{
 color:#eff9ff;font:800 13px/1.2 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-title small{
 color:#a1becf;font:550 10px/1.4 Inter,system-ui,sans-serif;
}
html:not(.v4-arcade-mode) #v4-character .v4-item-settings-count{
 margin-left:auto;flex:0 0 auto;
 padding:5px 8px;border-radius:8px;
 font:700 10px/1.2 Inter,system-ui,sans-serif;
 color:#bce9ff;background:rgba(55,127,175,.22);
 border:1px solid rgba(152,216,251,.25);
}
html:not(.v4-arcade-mode) #v4-character #item-options{
 box-sizing:border-box;
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
 align-items:start;
 gap:9px;
 width:100%;min-width:0;
 padding:0!important;margin:0!important;
}
html:not(.v4-arcade-mode) #v4-character #item-options>.item-options{
 display:flex;flex-direction:column;gap:9px;
 min-width:0;max-width:100%;
 border:1px solid rgba(140,198,235,.22);
 border-radius:11px;
 padding:11px;
 background:rgba(8,28,52,.43);
}
html:not(.v4-arcade-mode) #v4-character #item-options>.item-options>strong{
 color:#eaf8ff;font-size:12px;line-height:1.4;
}
html:not(.v4-arcade-mode) #v4-character #item-options>.item-options>label{
 display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:7px;
 font:650 11px/1.4 Inter,system-ui,sans-serif;
 color:#c3ddec;min-width:0;
}
html:not(.v4-arcade-mode) #v4-character #item-options>.item-options :is(select,input[type=number],input[type=color]){
 min-width:90px;max-width:100%;
 padding:7px 8px;
 background:#132e4c;color:#e6f5ff;
 border:1px solid rgba(151,215,249,.32);
 border-radius:9px;
}
html:not(.v4-arcade-mode) #v4-character #item-options>.item-options input[type=checkbox]{
 width:18px;height:18px;accent-color:#73d7ff;
}

@media(max-width:760px){
 html:not(.v4-arcade-mode) #v4-appearance .v4-editor-card{
  padding:13px 12px 15px!important;
 }
 html:not(.v4-arcade-mode) #v4-character .v4-item-settings-card{
  margin:8px 7px;max-width:calc(100% - 14px);
 }
}
@media(max-width:350px){
 html:not(.v4-arcade-mode) #v4-appearance .v4-editor-flags .v4-source-title-fields{
  grid-template-columns:minmax(0,1fr)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html:not(.v4-arcade-mode) #v4-appearance *{transition:none!important}
}
