/* Shared YELAN operations UI. Source: web/yelan-ops. */

   .yelan-ops{
    color-scheme: light;
    --bg0: #fff6e8;
    --bg1: #ecf6ff;
    --panel: rgba(255, 252, 246, .9);
    --line: rgba(87, 112, 154, .24);
    --line2: rgba(87, 112, 154, .14);
    --text: #24324b;
    --muted: rgba(68, 88, 118, .74);
    --accent: #4fa7de;
    --accent2: #7ecfba;
    --accent3: #ffb38e;
    --good: #2ea86b;
    --bad: #e16b6b;
    --warn: #d99a3c;
    --shadow: rgba(141, 162, 189, .34);
  }
  .yelan-ops *{ box-sizing: border-box; }
   .yelan-ops{ margin: 0; min-height: 0; height: 100%; }
   .yelan-ops{
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Courier New", monospace;
    background:
      radial-gradient(1200px 500px at 85% -10%, rgba(79, 167, 222, .18), transparent 60%),
      radial-gradient(900px 420px at -10% 30%, rgba(126, 207, 186, .16), transparent 55%),
      linear-gradient(180deg, var(--bg1), var(--bg0));
    padding: 24px 18px 48px;
  }
  .yelan-ops .wrap{ max-width: 1440px; margin: 0 auto; }
  .yelan-ops header{
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
  }
  .yelan-ops header h1{ margin: 0; font-size: 24px; letter-spacing: .5px; }
  .yelan-ops header h1 small{ display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; letter-spacing: 1px; }
  .yelan-ops .toolbar{ display: flex; gap: 10px; align-items: center; }
  .yelan-ops .toolbar .state{ font-size: 12px; color: var(--muted); }
  .yelan-ops button{
    border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
    color: var(--text); font: inherit; font-size: 13px; padding: 8px 14px;
    cursor: pointer; box-shadow: 0 2px 8px var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .yelan-ops button:hover{ transform: translateY(-1px); box-shadow: 0 4px 14px var(--shadow); }
  .yelan-ops button:disabled{ opacity: .5; cursor: not-allowed; transform: none; }
  .yelan-ops button.primary{ background: var(--accent); border-color: var(--accent); color: #fff; }
  .yelan-ops .cards{
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 16px;
  }
  .yelan-ops .card{
    background: var(--panel); border: 1px solid var(--line2); border-radius: 14px;
    padding: 14px 16px; box-shadow: 0 3px 12px var(--shadow);
  }
  .yelan-ops .card .label{ font-size: 12px; color: var(--muted); }
  .yelan-ops .card .num{ font-size: 26px; font-weight: 700; margin-top: 4px; }
  .yelan-ops .card .sub{ font-size: 11px; color: var(--muted); margin-top: 2px; }
  .yelan-ops .num.good{ color: var(--good); } .yelan-ops .num.bad{ color: var(--bad); } .yelan-ops .num.accent{ color: var(--accent); }
  .yelan-ops .section{
    background: var(--panel); border: 1px solid var(--line2); border-radius: 14px;
    box-shadow: 0 3px 12px var(--shadow); margin-bottom: 16px; overflow: hidden;
  }
  .yelan-ops .section > h2{
    margin: 0; padding: 13px 16px; font-size: 14px; letter-spacing: .5px;
    border-bottom: 1px solid var(--line2);
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    flex-wrap: wrap;
  }
  .yelan-ops .section > h2 .hint{ font-size: 11px; color: var(--muted); font-weight: 400; flex: 1 1 220px; min-width: 0; }
  .yelan-ops .section > h2 > button{ margin-left: auto; }
  .yelan-ops table{ width: 100%; border-collapse: collapse; font-size: 13px; }
  .yelan-ops th{
    text-align: left; padding: 9px 16px; font-size: 11px; color: var(--muted);
    font-weight: 600; letter-spacing: .6px; border-bottom: 1px solid var(--line2);
    background: rgba(87, 112, 154, .05);
  }
  .yelan-ops td{ padding: 9px 16px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
  .yelan-ops tr:last-child td{ border-bottom: none; }
  .yelan-ops tr:hover td{ background: rgba(79, 167, 222, .05); }
  .yelan-ops .mname{ font-weight: 600; }
  .yelan-ops .chips{ display: flex; flex-wrap: wrap; gap: 6px; }
  .yelan-ops .chip{
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
    background: rgba(126, 207, 186, .18); border: 1px solid rgba(126, 207, 186, .5);
    color: #257a63;
  }
  .yelan-ops .chip.off{ background: rgba(225, 107, 107, .12); border-color: rgba(225, 107, 107, .4); color: var(--bad); }
  .yelan-ops .switch{ position: relative; display: inline-block; width: 42px; height: 23px; vertical-align: middle; }
  .yelan-ops .switch input{ opacity: 0; width: 0; height: 0; }
  .yelan-ops .slider{
    position: absolute; cursor: pointer; inset: 0; border-radius: 23px;
    background: #d5dfe8; transition: .18s;
  }
  .yelan-ops .slider:before{
    content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px;
    border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  }
  .yelan-ops .switch input:checked + .slider{ background: var(--good); }
  .yelan-ops .switch input:checked + .slider:before{ transform: translateX(19px); }
  .yelan-ops .switch input:disabled + .slider{ opacity: .5; }
  .yelan-ops .badge{ font-size: 11px; padding: 2px 8px; border-radius: 20px; }
  .yelan-ops .badge.on{ background: rgba(46, 168, 107, .15); color: var(--good); border: 1px solid rgba(46, 168, 107, .4); }
  .yelan-ops .badge.off{ background: rgba(225, 107, 107, .12); color: var(--bad); border: 1px solid rgba(225, 107, 107, .4); }
  .yelan-ops .empty{ padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }
  .yelan-ops .toast{
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #24324b; color: #fff; padding: 10px 18px; border-radius: 10px;
    font-size: 13px; opacity: 0; transition: .25s ease; box-shadow: 0 6px 20px rgba(0,0,0,.3);
    max-width: 90vw;
  }
  .yelan-ops .toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
  .yelan-ops .toast.err{ background: var(--bad); }
  .yelan-ops details{ border-top: 1px solid var(--line2); }
  .yelan-ops summary{ padding: 12px 16px; cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
  .yelan-ops summary:hover{ color: var(--text); }
  .yelan-ops .loading{ text-align: center; padding: 30px; color: var(--muted); }
  .yelan-ops .prow{ display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; font-size: 12px; align-items: center; }
  .yelan-ops .prow .pname{ font-weight: 600; width: 180px; }
  .yelan-ops .plist{ color: var(--muted); }
  .yelan-ops .form-grid{
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px;
  }
  .yelan-ops .form-grid .full{ grid-column: 1 / -1; }
  .yelan-ops label.fld{ display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
  .yelan-ops label.fld input{
    font: inherit; font-size: 13px; color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff;
  }
  .yelan-ops label.fld input:focus, .yelan-ops label.fld textarea:focus{ outline: 2px solid rgba(79, 167, 222, .35); border-color: var(--accent); }
  .yelan-ops label.fld textarea{
    font: inherit; font-size: 13px; color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff;
    min-height: 72px; resize: vertical; line-height: 1.45;
  }
  .yelan-ops .checkrow{ display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text); }
  .yelan-ops .actions{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .yelan-ops .hintbox{ font-size: 12px; color: var(--muted); padding: 0 16px 4px; line-height: 1.55; }
  .yelan-ops .probe-meta{ font-size: 12px; color: var(--muted); padding: 0 16px 10px; }
  .yelan-ops .probe-meta strong{ color: var(--text); }
   #ops-model-pick input[type=text]{
    width: 100%; font: inherit; font-size: 12px; padding: 5px 8px;
    border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text);
  }
  .yelan-ops .join-tag{ font-size: 11px; color: #257a63; }
  .yelan-ops .join-tag.new{ color: var(--accent); }
  .yelan-ops .pick-toolbar{
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 0 16px 10px;
  }
  .yelan-ops .pick-toolbar input[type=search]{
    flex: 1; min-width: 160px; font: inherit; font-size: 13px; color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff;
  }
  .yelan-ops .model-scroll{ max-height: 360px; overflow: auto; border-top: 1px solid var(--line2); }
  .yelan-ops .workspace{ overflow: hidden; }
  .yelan-ops .split{
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    height: calc(100dvh - 270px);
    min-height: 420px;
    overflow: hidden;
  }
  .yelan-ops .split-left{
    border-right: 1px solid var(--line2);
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
    background: rgba(255,255,255,.42);
  }
  .yelan-ops .left-tools{ padding: 10px 12px 8px; border-bottom: 1px solid var(--line2); }
  .yelan-ops .left-tools input[type=search]{
    width: 100%; font: inherit; font-size: 13px; color: var(--text);
    border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff;
  }
  .yelan-ops .left-tools .hint{ display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
   #ops-prov-list{ overflow: auto; padding: 8px; flex: 1; }
  .yelan-ops .prov-item{
    text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px;
    border: 1px solid transparent; background: transparent; cursor: pointer;
    box-shadow: none; display: block; margin-bottom: 4px;
  }
  .yelan-ops .prov-item:hover{ transform: none; box-shadow: none; background: #fff; border-color: var(--line2); }
  .yelan-ops .prov-item.active{
    background: #fff; border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79,167,222,.22);
  }
  .yelan-ops .prov-item .ptitle{ font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .yelan-ops .prov-item .purl{ font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-all; }
  .yelan-ops .prov-item .pmeta{ font-size: 11px; color: var(--muted); margin-top: 6px; }
  .yelan-ops .prov-item.add{
    border-style: dashed; background: rgba(79,167,222,.06); color: var(--accent); margin-top: 6px;
  }
  .yelan-ops .prov-item.add .ptitle{ color: var(--accent); }
  .yelan-ops .mini-bar{
    display: flex; height: 4px; border-radius: 99px; overflow: hidden;
    background: rgba(87,112,154,.12); margin-top: 8px;
  }
  .yelan-ops .mini-bar > span{ display: block; height: 100%; flex: 0 0 auto; }
  .yelan-ops .mini-bar .up{ background: var(--good); }
  .yelan-ops .mini-bar .down{ background: var(--bad); }
  .yelan-ops .mini-bar .other{ background: var(--warn); }
   #ops-add-panel[hidden]{ display: none !important; }
  .yelan-ops .detail-head{ padding: 12px 16px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .yelan-ops .detail-head h3{ margin: 0; font-size: 16px; flex: 1; }
  .yelan-ops .detail-meta{ padding: 8px 16px 12px; font-size: 12px; color: var(--muted); }
  .yelan-ops .split-right{ overflow: auto; min-width: 0; min-height: 0; background: rgba(255,255,255,.55); }
  .yelan-ops .status-board{ padding: 14px 16px 4px; }
  .yelan-ops .st-card{
    background: transparent; border: none; border-radius: 0; padding: 0;
    cursor: default;
  }
  .yelan-ops .st-card:hover{ border: none; }
  .yelan-ops .st-card .st-head{ display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .yelan-ops .st-card .st-name{ font-weight: 700; font-size: 14px; }
  .yelan-ops .st-card .st-url{ font-size: 11px; color: var(--muted); margin-top: 4px; word-break: break-all; }
  .yelan-ops .st-card .st-url a{ color: inherit; }
  .yelan-ops .st-bar{
    display: flex; height: 8px; border-radius: 99px; overflow: hidden;
    background: rgba(87,112,154,.12); margin-top: 10px;
  }
  .yelan-ops .st-bar > span{ display: block; height: 100%; min-width: 0; }
  .yelan-ops .st-bar .up{ background: var(--good); }
  .yelan-ops .st-bar .down{ background: var(--bad); }
  .yelan-ops .st-bar .other{ background: var(--warn); }
  .yelan-ops .st-group{ margin-top: 12px; }
  .yelan-ops .st-group-name{
    font-size: 11px; color: var(--muted); letter-spacing: .4px;
    font-weight: 600; margin-bottom: 4px;
  }
  .yelan-ops .st-row{
    display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px;
  }
  .yelan-ops .st-row.up{ background: rgba(46,168,107,.06); }
  .yelan-ops .st-row.down, .yelan-ops .st-row.maintenance{ background: rgba(225,107,107,.08); }
  .yelan-ops .st-row.pending, .yelan-ops .st-row.degraded{ background: rgba(217,154,60,.10); }
  .yelan-ops .st-dot{ width: 8px; height: 8px; border-radius: 50%; background: #9aa7b8; }
  .yelan-ops .st-row.up .st-dot{ background: var(--good); box-shadow: 0 0 0 3px rgba(46,168,107,.18); }
  .yelan-ops .st-row.down .st-dot, .yelan-ops .st-row.maintenance .st-dot{ background: var(--bad); box-shadow: 0 0 0 3px rgba(225,107,107,.18); }
  .yelan-ops .st-row.pending .st-dot, .yelan-ops .st-row.degraded .st-dot{ background: var(--warn); box-shadow: 0 0 0 3px rgba(217,154,60,.18); }
  .yelan-ops .st-model{ font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .yelan-ops .st-state{ font-size: 11px; font-weight: 600; }
  .yelan-ops .st-row.up .st-state{ color: var(--good); }
  .yelan-ops .st-row.down .st-state, .yelan-ops .st-row.maintenance .st-state{ color: var(--bad); }
  .yelan-ops .st-row.pending .st-state, .yelan-ops .st-row.degraded .st-state{ color: var(--warn); }
  .yelan-ops .st-row-wrap{ margin: 2px 0 8px; }
  .yelan-ops .st-slots{
    display: flex; height: 8px; gap: 2px; margin: 4px 2px 0;
    overflow: hidden;
  }
  .yelan-ops .st-slots span{
    flex: 1 1 0; min-width: 2px; border-radius: 1px;
    background: rgba(87,112,154,.18);
  }
  .yelan-ops .st-slots span.up{ background: var(--good); }
  .yelan-ops .st-slots span.down, .yelan-ops .st-slots span.maintenance{ background: var(--bad); }
  .yelan-ops .st-slots span.pending, .yelan-ops .st-slots span.degraded{ background: var(--warn); }
  .yelan-ops .st-slots span.empty, .yelan-ops .st-slots span.unknown{ background: rgba(87,112,154,.16); }
  .yelan-ops .st-meta{ font-size: 11px; color: var(--muted); white-space: nowrap; }
  .yelan-ops .st-pills{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .yelan-ops .st-pill{
    font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(87,112,154,.08); color: var(--text);
  }
  .yelan-ops .st-pill.up{ background: rgba(46,168,107,.15); border-color: rgba(46,168,107,.4); color: var(--good); }
  .yelan-ops .st-pill.down, .yelan-ops .st-pill.maintenance{ background: rgba(225,107,107,.12); border-color: rgba(225,107,107,.4); color: var(--bad); }
  .yelan-ops .st-pill.pending{ background: rgba(217,154,60,.14); border-color: rgba(217,154,60,.4); color: var(--warn); }
  .yelan-ops .st-counts{ font-size: 12px; color: var(--muted); }
  .yelan-ops .st-legend{
    display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted);
    padding: 0 16px 10px;
  }
   #ops-prov-detail{ border-top: 1px solid var(--line2); }
   #ops-prov-detail:empty{ display: none; }
  .yelan-ops button.tiny{ padding: 4px 8px; font-size: 11px; box-shadow: none; }
  .yelan-ops .test-log{
    margin: 0 16px 14px; padding: 10px 12px; border-radius: 10px;
    background: #24324b; color: #d7e4f2; font-size: 12px; line-height: 1.5;
    max-height: 180px; overflow: auto; white-space: pre-wrap;
  }
  .yelan-ops .test-log .ok{ color: #7ecfba; }
  .yelan-ops .test-log .err{ color: #ffb3b3; }
  .yelan-ops .st-legend i{
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
    vertical-align: 1px;
  }
  .yelan-ops .st-legend .up i{ background: var(--good); }
  .yelan-ops .st-legend .down i{ background: var(--bad); }
  .yelan-ops .st-legend .pending i{ background: var(--warn); }
  .yelan-ops .st-legend .empty i{ background: rgba(87,112,154,.4); }
  @media (max-width: 960px) {
    .yelan-ops .split{
      grid-template-columns: 1fr;
      height: auto;
      min-height: 0;
    }
    .yelan-ops .split-left{
      border-right: none;
      border-bottom: 1px solid var(--line2);
      max-height: 260px;
    }
  }
  @media (max-width: 640px) {
     .yelan-ops{ padding: 14px 10px 24px; }
    .yelan-ops header h1{ font-size: 19px; }
    .yelan-ops th, .yelan-ops td{ padding: 8px 10px; }
    .yelan-ops .prow .pname{ width: 100%; }
    .yelan-ops .form-grid{ grid-template-columns: 1fr; }
    .yelan-ops .st-row{ grid-template-columns: 10px minmax(0, 1fr) auto; }
    .yelan-ops .st-meta{ grid-column: 2 / -1; }
    .yelan-ops .section > h2 .hint{ flex: 1 0 100%; order: 3; }
  }

.yelan-ops {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
}
.yelan-ops .wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0;
}
.yelan-ops:not(.is-embedded) {
  padding: 24px 18px 48px;
}
.yelan-ops:not(.is-embedded) .wrap {
  max-width: 1440px;
  margin: 0 auto;
}
.yelan-ops.is-embedded {
  background: transparent;
  padding: 0;
}
.yelan-ops.is-embedded header {
  margin-bottom: 10px;
}
.yelan-ops.is-embedded header h1 {
  font-size: 18px;
}
.yelan-ops.is-embedded #ops-back {
  display: none;
}
.yelan-ops .cards {
  flex: 0 0 auto;
}
.yelan-ops .section.workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.yelan-ops .section.workspace > h2 {
  flex: 0 0 auto;
}
.yelan-ops .split {
  flex: 1 1 auto;
  height: auto;
  min-height: 280px;
}
.yelan-ops.is-embedded .wrap > .section:last-child {
  flex: 0 1 auto;
  max-height: min(22vh, 220px);
  overflow: auto;
}
.yelan-ops .toast {
  z-index: 80;
}

/* Managed configuration uses the same operational palette and compact rhythm. */
.yelan-ops [hidden] { display: none !important; }
.yelan-ops button:focus-visible,
.yelan-ops input:focus-visible,
.yelan-ops textarea:focus-visible,
.yelan-ops select:focus-visible,
.yelan-ops summary:focus-visible {
  outline: 2px solid #267baa;
  outline-offset: 3px;
}
.yelan-ops .switch input:focus-visible + .slider {
  outline: 2px solid #267baa;
  outline-offset: 3px;
}
.yelan-ops .cfg-section { flex: 0 0 auto; }
.yelan-ops.is-embedded.has-config-editor { overflow: auto; }
.yelan-ops.is-embedded.has-config-editor .wrap { flex: 0 0 auto; min-height: 100%; }
.yelan-ops.is-embedded.has-config-editor .section.workspace { min-height: 400px; }
.yelan-ops .cfg-status,
.yelan-ops .cfg-toolbar,
.yelan-ops .cfg-editor-toolbar,
.yelan-ops .cfg-editor-title,
.yelan-ops .cfg-subheading,
.yelan-ops .cfg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
}
.yelan-ops .cfg-status { font-size: 12px; min-height: 42px; }
.yelan-ops .cfg-revision { color: var(--muted); overflow-wrap: anywhere; }
.yelan-ops .cfg-save-state { color: #2f6f44; }
.yelan-ops .cfg-apply-state.ok { color: #2f6f44; }
.yelan-ops .cfg-apply-state.waiting { color: #88591a; }
.yelan-ops .cfg-apply-state.bad,
.yelan-ops .cfg-lane-error { color: #8b3030; overflow-wrap: anywhere; }
.yelan-ops .cfg-lane-error { display: inline-block; max-width: 100%; font-size: 12px; }
.yelan-ops .cfg-toolbar { padding-top: 0; }
.yelan-ops .cfg-toolbar [aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(79, 167, 222, .12);
}
.yelan-ops .badge.waiting { background: rgba(217, 154, 60, .13); color: #88591a; border: 1px solid rgba(217, 154, 60, .42); }
.yelan-ops .cfg-error {
  margin: 0 16px 12px;
  border-left: 3px solid #c24242;
  padding: 9px 12px;
  background: rgba(225, 107, 107, .1);
  color: #8b3030;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.yelan-ops .cfg-body { border-top: 1px solid var(--line); max-height: min(65vh, 760px); overflow: auto; overscroll-behavior: contain; }
.yelan-ops .cfg-body fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.yelan-ops .cfg-body input,
.yelan-ops .cfg-body textarea,
.yelan-ops .cfg-body select { min-width: 0; max-width: 100%; }
.yelan-ops .cfg-body .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yelan-ops .cfg-body .fld { min-width: 0; }
.yelan-ops .cfg-editor-toolbar { background: rgba(87, 112, 154, .04); border-bottom: 1px solid var(--line2); }
.yelan-ops .cfg-editor-toolbar label { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 0; font-size: 13px; }
.yelan-ops .cfg-editor-toolbar select {
  flex: 1;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.yelan-ops .cfg-editor-title h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.yelan-ops .cfg-subheading { justify-content: space-between; border-top: 1px solid var(--line2); }
.yelan-ops .cfg-subheading h4 { margin: 0; font-size: 13px; }
.yelan-ops .cfg-enabled { align-self: center; min-height: 42px; }
.yelan-ops .cfg-key { border-top: 1px solid var(--line2); }
.yelan-ops .cfg-key-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; font-size: 12px; }
.yelan-ops .cfg-key[data-deleted="true"] { background: rgba(225, 107, 107, .08); }
.yelan-ops .cfg-key[data-deleted="true"] .cfg-key-fields { opacity: .5; }
.yelan-ops .cfg-key[data-deleted="true"] .cfg-key-heading strong::after { content: " · 将移除"; color: #8b3030; }
.yelan-ops .cfg-headers summary { overflow-wrap: anywhere; }
.yelan-ops .cfg-actions { border-top: 1px solid var(--line2); padding-top: 14px; padding-bottom: 14px; }
.yelan-ops .cfg-actions .state { color: var(--muted); font-size: 12px; }
.yelan-ops button.danger { color: #a43838; border-color: rgba(164, 56, 56, .35); box-shadow: none; }
.yelan-ops .cfg-channel-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 16px 12px; flex-wrap: wrap; font-size: 12px; }
.yelan-ops .cfg-channel-toolbar label { flex: 1 1 240px; }
.yelan-ops .cfg-channels { border-top: 1px solid var(--line2); max-height: 330px; overflow: auto; }
.yelan-ops .cfg-channel { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line2); font-size: 12px; cursor: pointer; }
.yelan-ops .cfg-channel:hover { background: rgba(79, 167, 222, .05); }
.yelan-ops .cfg-channel:has(input:checked) { background: rgba(126, 207, 186, .11); }
.yelan-ops .cfg-channel input { width: 17px; height: 17px; }
.yelan-ops .cfg-channel strong,
.yelan-ops .cfg-channel code { display: block; overflow-wrap: anywhere; }
.yelan-ops .cfg-channel code { margin-top: 5px; color: var(--muted); font-size: 12px; }
.yelan-ops .cfg-channel small { max-width: 140px; overflow-wrap: anywhere; color: var(--muted); }
.yelan-ops .cfg-model-list { padding: 0 0 16px; }
.yelan-ops .cfg-model-item {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 8px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  box-shadow: none;
}
.yelan-ops .cfg-model-item:hover { border-color: var(--accent); }
.yelan-ops .cfg-model-item .ptitle { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.yelan-ops .cfg-model-item .pmeta { margin-top: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.yelan-ops .cfg-match-panel { margin: 0 16px 20px; border: 1px solid var(--line2); border-radius: 10px; min-width: 0; }
.yelan-ops .cfg-match-panel h4 { margin: 14px 16px 0; font-size: 13px; }
.yelan-ops .cfg-match-panel .hintbox { margin-bottom: 0; }
.yelan-ops .cfg-match-panel .state { overflow-wrap: anywhere; font-size: 12px; color: var(--muted); }
.yelan-ops .cfg-match-reason { display: block; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.5; }
.yelan-ops .cfg-match-candidate:has(input:disabled) { cursor: default; opacity: .65; }
.yelan-ops .cfg-status .badge { white-space: nowrap; }
.yelan-ops .cfg-body input[type="checkbox"] { accent-color: #257a63; }
.yelan-ops .cfg-body .hintbox { margin: 0; }
.yelan-ops .cfg-body .state { font-size: 12px; }
.yelan-ops .cfg-probe-actions,
.yelan-ops .cfg-probe-summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
.yelan-ops .cfg-probe-actions { border-top: 1px solid var(--line2); }
.yelan-ops .cfg-probe-result { background: rgba(79, 167, 222, .035); border-top: 1px solid var(--line2); }
.yelan-ops .cfg-probe-models { max-height: 300px; overflow: auto; }
.yelan-ops .prov-item .ptitle { overflow-wrap: anywhere; }
.yelan-ops #ops-bare-body,
.yelan-ops #ops-prefix-body { overflow: auto; }
@media (max-width: 960px) {
  .yelan-ops.is-embedded { overflow: auto; }
  .yelan-ops .wrap,
  .yelan-ops .section.workspace { display: block; }
  .yelan-ops .split { min-height: 0; }
  .yelan-ops.is-embedded .wrap > .section:last-child { max-height: none; }
}
@media (max-width: 640px) {
  .yelan-ops .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .yelan-ops .cards .card { padding: 12px; }
  .yelan-ops .cards .card:last-child { grid-column: 1 / -1; }
  .yelan-ops .cfg-body .form-grid { grid-template-columns: minmax(0, 1fr); }
  .yelan-ops .cfg-body { max-height: 70vh; }
  .yelan-ops .cfg-toolbar { gap: 8px; }
  .yelan-ops .cfg-toolbar button { flex: 1 1 130px; }
  .yelan-ops .cfg-channel { grid-template-columns: 20px minmax(0, 1fr); }
  .yelan-ops .cfg-channel small { grid-column: 2; max-width: none; }
  .yelan-ops .toolbar { flex-wrap: wrap; }
  .yelan-ops:not(.is-embedded) { padding: 14px 10px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .yelan-ops *, .yelan-ops *::before, .yelan-ops *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
