/* Player workbenches: the same slate surfaces and diamond controls as the directory. */
.tool-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--mc-muted); font-size: 12px; margin-bottom: 22px; }
.tool-breadcrumb a { text-decoration: none; }
.tool-heading { max-width: 860px; }
.tool-heading h1 { font-size: clamp(30px, 3.5vw, 46px); }
.tool-heading p { font-size: 16px; }
.tool-workspace { display: grid; gap: 24px; }
.tool-panel, .tool-help { min-width: 0; padding: 28px; border: 1px solid var(--mc-line); border-radius: 0; background: var(--mc-surface); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.tool-workbench h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; letter-spacing: 0; }
.tool-workbench h3 { font-size: 17px; line-height: 1.4; margin: 24px 0 12px; }
.tool-workbench p, .tool-workbench li { line-height: 1.7; }
.tool-workbench p { color: var(--mc-muted); }
.tool-panel > :last-child, .tool-help > :last-child { margin-bottom: 0; }
.tool-help { max-width: 84ch; }
.tool-help p, .tool-help li { max-width: 72ch; }
.tool-note { border-left: 3px solid var(--mc-accent); background: var(--mc-surface); color: var(--mc-text); padding: 14px 18px; margin: 18px 0; border-radius: 0 6px 6px 0; }
.tool-note p { margin: 0; }
.tool-workbench .tool-field { margin-block: 18px; min-width: 0; }
.tool-workbench label { display: block; font-size: 13px; font-weight: 600; color: var(--mc-text); margin-bottom: 8px; }
.tool-workbench :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea) { display: block; width: 100%; min-height: 46px; padding: 11px 13px; margin: 8px 0 18px; border: 1px solid var(--mc-control); border-radius: 0; background: var(--mc-ground); color: var(--mc-text); font: inherit; }
.tool-workbench textarea { resize: vertical; }
.tool-workbench input[type=range] { width: 100%; min-height: 28px; padding: 0; margin: 10px 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--mc-accent); }
.tool-workbench input[type=color] { width: 100%; height: 44px; border: 1px solid var(--mc-control); border-radius: 0; background: var(--mc-ground); cursor: pointer; }
.tool-workbench input[type=checkbox], .tool-workbench input[type=radio] { accent-color: var(--mc-accent); }
.tool-workbench :is(button, .tool-button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--portal-action); border-radius: 0; background: var(--portal-action); color: var(--mc-light-ink); font: 650 13px/1.4 var(--mc-font-body); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.tool-workbench :is(button, .tool-button):hover { background: var(--mc-accent-hover); }
.tool-workbench :is(button, .tool-button):disabled { opacity: .55; cursor: not-allowed; }
.tool-workbench .tool-button-secondary { border-color: var(--mc-control); background: var(--mc-raised); color: var(--mc-text); }
.tool-workbench .tool-button-secondary:hover { background: var(--mc-raised); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 18px; }
.tool-output { padding: 20px; margin-block: 20px; border: 1px solid var(--mc-control); border-radius: 0; background: var(--mc-ground); overflow-wrap: anywhere; }
.tool-output code { color: var(--mc-text); }
.tool-empty { padding: 22px; border: 1px dashed var(--mc-control); border-radius: 0; color: var(--mc-muted); }
.tool-status { margin-top: 14px; font-size: 13px; color: var(--mc-muted); }
.tool-workbench [role=alert] { color: #ffd7bc; }
.tool-workbench :is(pre, code) { overflow-wrap: anywhere; }
.tool-workbench pre { overflow-x: auto; max-width: 100%; padding: 16px; background: var(--mc-deep); border-radius: 0; }
.tool-workbench table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.tool-workbench th, .tool-workbench td { border-bottom: 1px solid var(--mc-line); padding: 11px 14px; text-align: left; }
.tool-workbench th { color: var(--mc-text); }
.tool-workbench [hidden] { display: none !important; }
.tool-workbench :focus-visible { outline: 3px solid var(--mc-gold); outline-offset: 3px; }
.tool-more { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--mc-line); }
.tool-more h2 { font-size: 20px; }
.tool-more nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-more a { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--mc-line); border-radius: 0; font-size: 13px; text-decoration: none; background: var(--mc-ground); }
.tool-more a:hover { background: var(--mc-surface); border-color: var(--mc-control); }
.tool-more .cave-icon { width: 19px; height: 19px; }
@media (max-width: 760px) {
    .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .tool-panel, .tool-help { padding: 20px; }
    .tool-more nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-heading h1 { font-size: 30px; }
    .tool-heading p { font-size: 14px; }
    .tool-workbench h2 { font-size: 21px; }
    .tool-workbench :is(input, select, textarea) { font-size: 16px; }
}
@media (max-width: 420px) { .tool-more nav { grid-template-columns: minmax(0, 1fr); } }
.tool-workbench h2 { font-weight: 650; }
