.skill-workspace .skill-prompt { margin: 0 0 1rem; max-width: 68ch; }
.skill-book { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; }
.skill-tab { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; background: #f7f3ef; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.skill-tab .ic { color: var(--deep); }
.skill-sheet { display: grid; gap: 1rem; padding: 1rem; }
.skill-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem .75rem; }
.skill-field { flex: 1 1 10.5rem; display: grid; gap: .3rem; min-width: 0; font-size: .9rem; }
.skill-field span, .skill-check { font-weight: 600; }
.skill-field input, .skill-field select, .skill-grid input { border: 1px solid #b8adae; border-radius: 5px; padding: .45rem .55rem; min-width: 0; width: 100%; min-height: 40px; background: white; }
.skill-grid input { max-width: 9rem; font-family: var(--mono); }
.skill-check { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .1rem; min-height: 40px; font-size: .9rem; }
.skill-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--deep); }
.skill-tool.button { min-height: 40px; font-size: .875rem; padding: .45rem .7rem; }
.skill-tool:disabled { opacity: .58; cursor: default; }
.skill-gridwrap { overflow-x: auto; min-width: 0; }
.skill-grid { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.skill-grid caption { text-align: left; padding-bottom: .4rem; font-weight: 650; color: var(--ink); }
.skill-grid td, .skill-grid th { text-align: left; padding: .4rem .6rem; border: 1px solid var(--rule); overflow-wrap: anywhere; }
.skill-grid thead { background: #f6f3f0; }
.skill-preview { padding: .8rem; display: grid; gap: .6rem; border-radius: 8px; background: #faf7f3; min-width: 0; }
.skill-preview .skill-grid { background: white; }
.skill-preview > p { margin: 0; font-size: .9rem; }
.skill-preview canvas { display: block; width: 100%; height: auto; background: white; }
.skill-head-plain th { font-weight: 400; }
.skill-head-bold th { font-weight: 750; }
.skill-head-blue { background: #c4deef !important; }
.skill-head-green { background: #d3e5d1 !important; }
.skill-marker { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .5rem; }
.skill-marker.ready { background: #447044; }
.skill-marker.delayed { background: #ad4444; }
.skill-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.skill-feedback:not(:empty) { margin: .85rem 0 0; padding: .65rem .8rem; font-size: .95rem; border-left: 3px solid #a86937; background: #fcf5ec; color: #553e2b; }
.skill-feedback[data-state="success"] { border-color: #4c7455; background: #eef5ef; color: #294c34; }
@media (max-width: 420px) {
  .skill-sheet { padding: .7rem; }
  .skill-grid td, .skill-grid th { padding: .35rem; }
  .skill-field input, .skill-field select, .skill-grid input { font-size: 16px; }
}
