/* The rules page follows the same quiet document hierarchy as the other workbench pages. */
html[data-ui="workbench"] .settings-content .workspace-settings > .section-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
html[data-ui="workbench"] .workspace-settings > .section-head h2{margin:0;font-size:16px;font-weight:650}
html[data-ui="workbench"] .workspace-settings > .section-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
html[data-ui="workbench"] .workspace-rules-section{margin-top:2px}
html[data-ui="workbench"] .workspace-rules-section .workspace-settings-company{
  margin:0;
  padding:20px 0 22px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html[data-ui="workbench"] .workspace-rules-section .workspace-settings-company > h3{margin:0 0 16px;font-size:16px;font-weight:650}
html[data-ui="workbench"] .workspace-rules-section .form-row{margin-bottom:16px}
html[data-ui="workbench"] .workspace-rules-section .form-row small{color:var(--muted);font-size:11px;line-height:1.5}
html[data-ui="workbench"] .workspace-rules-section .workspace-generation{gap:16px;margin:18px 0}
html[data-ui="workbench"] .workspace-rules-section .workspace-template-list{gap:0;margin:22px 0 0}
html[data-ui="workbench"] .workspace-rules-section .workspace-template-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
html[data-ui="workbench"] .workspace-rules-section .workspace-template-head h4{margin:0;font-size:13px;font-weight:650}
html[data-ui="workbench"] .workspace-rules-section .workspace-template-head .btn{min-height:32px;padding:5px 10px;font-size:11px}
html[data-ui="workbench"] .workspace-rules-section .workspace-template{
  margin:0;
  padding:13px 2px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
}
html[data-ui="workbench"] .workspace-rules-section .workspace-template.fixed{font-size:12px}
html[data-ui="workbench"] .workspace-rules-section .workspace-template.fixed small{font-size:11px}
html[data-ui="workbench"] .workspace-rules-section .workspace-template > .btn{margin-top:10px}
html[data-ui="workbench"] .workspace-rules-section .workspace-settings-actions{gap:8px;padding:18px 0 0}

html[data-ui="workbench"] .settings-content .shared-skills{display:grid;gap:25px;margin-top:34px;padding-top:27px;border-top:1px solid var(--line)}
html[data-ui="workbench"] .shared-skills > .shared-skill-section{min-width:0;margin:0}
html[data-ui="workbench"] .shared-skill-section > .section-head{margin-bottom:12px;padding:0;border:0}
html[data-ui="workbench"] .shared-skill-section > .section-head h2{font-size:16px}
html[data-ui="workbench"] .shared-skill-section > .section-head p{margin-top:4px}
html[data-ui="workbench"] .shared-skills-form{min-width:0}
html[data-ui="workbench"] .shared-skills-empty{padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
html[data-ui="workbench"] .shared-skills-empty strong{font-size:13px;font-weight:600}
html[data-ui="workbench"] .shared-skills-empty p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
html[data-ui="workbench"] .shared-skills-form fieldset.workspace-settings-company{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:0 12px;
  min-width:0;
  margin:0 0 12px;
  padding:15px 18px 17px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:none;
}
html[data-ui="workbench"] .shared-skills-form fieldset.workspace-settings-company legend{max-width:100%;padding:0 6px;color:var(--ink);font-size:13px;font-weight:650;overflow-wrap:anywhere}
html[data-ui="workbench"] .shared-skills-form fieldset .form-row{grid-column:1/-1;margin-bottom:13px}
html[data-ui="workbench"] .shared-skills-form fieldset > label{display:inline-flex;align-items:center;gap:7px;min-height:32px;font-size:12px;color:var(--ink)}
html[data-ui="workbench"] .shared-skills-form fieldset > .btn{justify-self:end;min-height:30px;padding:5px 9px;font-size:11px}
html[data-ui="workbench"] .shared-skill-section .workspace-settings-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  padding:16px 0 0;
  border-top:1px solid var(--line);
}
html[data-ui="workbench"] .shared-skill-section .workspace-settings-actions .btn{min-width:92px}
html[data-ui="workbench"] .shared-skill-section .workspace-settings-actions svg{width:15px;height:15px;flex:none}
@media (max-width:700px){
  html[data-ui="workbench"] .settings-content .workspace-settings > .section-head{display:block}
  html[data-ui="workbench"] .workspace-settings > .section-head p{margin-top:4px}
  html[data-ui="workbench"] .workspace-rules-section .workspace-generation{grid-template-columns:1fr;gap:13px}
  html[data-ui="workbench"] .shared-skills-form fieldset.workspace-settings-company{padding:14px}
}
