.planning-shell .category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  flex: none;
  padding: 8px 12px;
}
.planning-shell .category-tabs button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
  border: 1px solid #ccd0bb;
  border-radius: 7px;
  background: #faf6e8;
  color: #36574a;
}
.planning-shell .category-tabs button.active {
  color: #fff9e7;
  background: #245e4b;
  border-color: #245e4b;
}
.planning-shell .category-tabs button[data-category="other"] {
  border-color: #b795c1;
}
.planning-shell .facility-card[data-type="custom"] {
  border: 2px solid #b494bd;
  background: #fbf4fb;
}
.planning-shell .facility-card[data-type="custom"] .facility-game-badge {
  color: #703c80;
  background: #f2e5f4;
}
dialog.custom-facility-dialog {
  width: min(930px,95vw);
  max-width: 95vw;
  max-height: 94dvh;
  overflow-y: auto;
  color: #28483e;
  background: #faf5e8;
}
.custom-facility-editor { display: grid; gap: 16px; }
.custom-facility-intro { margin: 0; font-size: 14px; line-height: 1.7; }
.custom-facility-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(220px,1fr); gap: 22px; align-items: start; }
.custom-drawing-panel { min-width: 0; }
.custom-drawing-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: crosshair;
  border: 2px solid #b8c3ad;
  border-radius: 12px;
  background-color: #fff;
  background-image: linear-gradient(45deg,#e8eae4 25%,transparent 25%),linear-gradient(-45deg,#e8eae4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8eae4 75%),linear-gradient(-45deg,transparent 75%,#e8eae4 75%);
  background-size: 24px 24px;
  background-position: 0 0,0 12px,12px -12px,-12px 0;
}
.custom-drawing-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.custom-drawing-tools label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.custom-drawing-tools input[type="range"] { width: 70px; }
.custom-drawing-tools input[type="color"] { width: 32px; height: 32px; padding: 2px; border: 1px solid #b5bea6; border-radius: 6px; }
.custom-drawing-tools button {
  border: 1px solid #c7c9b6;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fffdf4;
  color: #2c5044;
  font-size: 12px;
}
.custom-drawing-tools button[aria-pressed="true"] { background: #245e4b; border-color: #245e4b; color: #fff9e8; }
.custom-facility-editor button:disabled { opacity: .5; cursor: default; }
.custom-upload-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 750; }
.custom-drawing-panel input[type="file"] { width: 100%; font-size: 12px; }
.custom-drawing-panel input[type="file"]::file-selector-button { padding: 9px; border: 1px solid #b2bea4; border-radius: 7px; background: #e9eedc; color: #244938; margin-right: 6px; cursor: pointer; }
.custom-art-help { font-size: 12px; line-height: 1.6; color: #596657; }
.custom-facility-details { display: grid; gap: 15px; }
.custom-facility-field { display: grid; gap: 7px; font-size: 14px; }
.custom-facility-field input,.custom-facility-field textarea { width: 100%; font-size: 14px; line-height: 1.6; color: #213d34; background: #fffdf7; border: 1px solid #c5c9b5; }
.custom-facility-field small { font-size: 12px; line-height: 1.6; color: #58674f; }
.custom-budget-note { margin: 0; padding: 12px; border-radius: 9px; background: #efe9d5; color: #4a573e; font-size: 12px; line-height: 1.7; }
.custom-art-preview { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #516646; }
.custom-art-preview img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 3px 2px #243f3224); }
.custom-editor-status { min-height: 20px; margin: 0; color: #7a4b24; font-size: 13px; line-height: 1.6; }
.custom-editor-actions { display: flex; justify-content: flex-end; gap: 9px; }
.custom-editor-actions .button { min-height: 44px; font-size: 14px; }
.custom-facility-editor :focus-visible { outline: 3px solid #318bac; outline-offset: 2px; }
@media(max-width:650px) {
  .custom-facility-grid { grid-template-columns: 1fr; }
  .custom-drawing-canvas { max-width: 380px; margin: auto; }
  .custom-editor-actions { position: sticky; bottom: 0; padding: 10px 0; background: #faf5e8; }
}
