:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #14242b;
  background: #f7fafb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
}
aside {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 28px 18px;
  border-right: 1px solid #dbe5e7;
  background: #fff;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  color: #005f60;
  text-decoration: none;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}
nav a {
  padding: 13px 15px;
  color: #24383f;
  border-radius: 9px;
  text-decoration: none;
}
nav .selected {
  background: #006665;
  color: white;
}
aside p {
  margin-top: 40px;
  color: #64767c;
  line-height: 1.6;
}
main {
  margin-left: 220px;
  padding: 38px;
  max-width: 1400px;
  width: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 0;
}
h2 {
  font-size: 20px;
}
p {
  color: #536770;
  line-height: 1.6;
}
a {
  color: #006665;
}
section,
.upload {
  margin-top: 24px;
}
.toolbar,
form#search {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #344e56;
}
input,
select,
textarea,
button {
  font: inherit;
  border: 1px solid #cbdadd;
  border-radius: 8px;
  padding: 11px 13px;
  background: white;
  color: inherit;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 3px solid #70baba;
  outline-offset: 2px;
}
button {
  background: #006665;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.grow {
  flex: 1;
  min-width: 250px;
}
form#search {
  margin-top: 18px;
}
details {
  width: 100%;
}
summary {
  cursor: pointer;
  font-weight: 650;
  color: #005d60;
  padding: 12px 0;
}
small {
  font-size: 12px;
  color: #597078;
  line-height: 1.5;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.card {
  background: white;
  border: 1px solid #d3e0e3;
  border-radius: 12px;
  padding: 22px;
  min-width: 0;
}
.card h2 {
  margin: 0 0 10px;
}
.badge {
  display: inline-block;
  background: #def1e8;
  color: #18513c;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0 8px 8px 0;
}
.badge.in_review {
  background: #fff0cd;
  color: #765215;
}
.badge.draft {
  background: #edf0f2;
  color: #50616b;
}
.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.card button {
  font-size: 13px;
  padding: 8px 11px;
}
.card code {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: #63777f;
}
.upload,
.guidance {
  background: #fff;
  border: 1px solid #d3e0e3;
  border-radius: 12px;
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 15px 0 22px;
}
.wide {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
}
#status {
  background: #e9f3f2;
  padding: 12px 16px;
  border-radius: 8px;
}
#coverage {
  font-size: 13px;
}
#more {
  margin-top: 10px;
}
@media (max-width: 850px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  aside p {
    display: none;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  body {
    display: block;
  }
  main {
    margin: 0;
    padding: 24px;
  }
  header {
    display: block;
  }
  header > a {
    display: inline-block;
    margin-top: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
}

.skill-detail{border:1px solid #cbdedb;border-radius:12px;padding:24px;margin:20px 0;background:#fff}.skill-detail dl{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr);gap:12px}.skill-detail dt{font-weight:600}.skill-detail dd{margin:0;overflow-wrap:anywhere}.skill-detail p{color:#52646a;font-size:13px;line-height:1.6}.skill-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7f8;padding:16px;max-height:500px;overflow:auto}.skill-detail ul{padding-left:20px}@media(max-width:600px){.skill-detail dl{grid-template-columns:1fr;gap:6px}.skill-detail dd{margin-bottom:12px}}
#edit-file{display:grid;gap:12px}#edit-base{overflow-wrap:anywhere}#edit-conflict:empty,#edit-conflict-current:empty,#edit-preview:empty,#edit-proposed:empty{display:none}#edit-conflict{color:#922d24}

.skill-example pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;background:#f3f7f8;padding:14px;font-size:13px;line-height:1.6}
.review-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.review-selection:empty{display:none}.review-selection button{padding:7px 10px;font-size:13px}.skill-review-check{display:flex;align-items:center;padding:8px}.skill-review-check input{width:18px;height:18px;accent-color:var(--accent,#087f62)}#bulk-skill-review code{display:block;overflow-wrap:anywhere;font-size:11px}#bulk-skill-review li{padding:12px 0;border-bottom:1px solid var(--border,#dde5e3)}.skill-row:has(.skill-review-check){display:flex;align-items:center}.skill-row .skill-select{flex:1;min-width:0}

.review-selection button{background:var(--surface,#fff);color:var(--text,#18342d);border:1px solid var(--border,#dce5e2)}.review-selection button:nth-of-type(3){background:var(--accent,#087f62);color:#fff}.review-selection button:disabled{opacity:.5}

/* Dependency review keeps the state, repairs and linked resources visible. */
.app-page-skills .dependency-panel { display:grid; gap:20px; margin:0; min-width:0; align-content:start; }
.dependency-panel :is(h3,h4,p,section) { margin:0; }
.dependency-panel :is(p,small,strong) { overflow-wrap:anywhere; }
.dependency-panel :is(h3,h4) { letter-spacing:normal; }
.dependency-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.dependency-heading h3 { font-size:20px; }
.dependency-panel button { width:auto; justify-self:start; }
.dependency-readiness { padding:16px 18px; border:1px solid var(--app-border,#dce4e1); border-left:3px solid #b78c45; border-radius:8px; display:grid; gap:6px; }
.dependency-readiness.ready { border-left-color:#16825f; }
.dependency-readiness h4 { font-size:15px; }
.dependency-readiness button { margin-top:8px; }
.dependency-problem { border:1px solid var(--app-border,#dce4e1); border-radius:10px; padding:18px; display:grid; gap:12px; min-width:0; }
.dependency-problem h4 { font-size:15px; }
.dependency-problem small { color:var(--app-muted,#66756d); }
.dependency-problem input[type=file] { max-width:100%; }
.dependency-problem label { display:grid; gap:7px; }
.dependency-problem label:has(input[type=checkbox]) { display:flex; align-items:center; }
.dependency-actions,.dependency-collections { display:flex; flex-wrap:wrap; gap:10px; }
.dependency-chooser:empty,.dependency-actions:empty { display:none; }
.dependency-chooser { padding-top:16px; border-top:1px solid var(--app-border,#dce4e1); display:grid; gap:14px; }
.dependency-search { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.dependency-search label { flex:1; min-width:180px; }
.dependency-candidates { display:grid; gap:0; max-height:260px; overflow-y:auto; border:1px solid var(--app-border,#dce4e1); border-radius:8px; }
.dependency-panel .dependency-candidates button { width:100%; margin:0; border:0; border-bottom:1px solid var(--app-border,#dce4e1); border-radius:0; padding:12px; text-align:left; background:transparent; color:inherit; }
.dependency-candidates button:last-child { border-bottom:0; }
.dependency-panel button[aria-pressed=true] { background:var(--ap-select-hover,#edf3ef); box-shadow:inset 3px 0 #16825f; }
.dependency-version-picker { display:grid; gap:14px; padding-top:14px; }
.dependency-version-list { display:flex; flex-wrap:wrap; gap:8px; }
.dependency-resources h3 { font-size:16px; margin-bottom:12px; }
.dependency-panel .dependency-resources ul { list-style:none; padding:0; margin:0; border-top:1px solid var(--app-border,#dce4e1); }
.dependency-resources li { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--app-border,#dce4e1); }
.dependency-resources strong { display:block; font-size:13px; font-weight:600; }
.dependency-resources small,.dependency-link-state,.dependency-panel .dependency-coverage { font-size:12px; color:var(--app-muted,#66756d); }
.dependency-link-state { text-align:right; flex-shrink:0; max-width:40%; }
.skill-name .dependency-status { color:#92570b; font-weight:500; }
@media(max-width:600px) { .dependency-heading { align-items:start; }.dependency-resources li { flex-direction:column; gap:6px; }.dependency-link-state { text-align:left; max-width:none; }.dependency-problem { padding:14px; } }
