.oc-view { display: grid; gap: 1.1rem; color: var(--ink,#22232e); }
.oc-view h1, .oc-view h2, .oc-view h3, .oc-view h4, .oc-view p,
.oc-dialog h2, .oc-dialog p { margin: 0; }
.oc-head, .oc-detail-head, .oc-subhead, .oc-editor-head, .oc-actions, .oc-filter {
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
}
.oc-head { flex-wrap: wrap; margin: .45rem 0; }
.oc-head h1 { font-size: clamp(1.65rem,3vw,2.05rem); font-weight: 730; letter-spacing: -.045em; }
.oc-head p, .oc-empty p { color: #686978; margin-top: .3rem; }
.oc-button, .oc-link {
  border: 1px solid #dcd9e5; padding: .48rem .85rem; border-radius: 8px;
  background: #fff; color: #423c52; cursor: pointer; font-size: .89rem; font-weight: 600; line-height: 1.45;
}
.oc-button:hover, .oc-link:hover { border-color: #ad9ccb; background: #f8f6fc; }
.oc-button:disabled { opacity: .48; cursor: default; }
.oc-primary { background: #7351bf; color: #fff; border-color: #7351bf; }
.oc-primary:hover { background: #6041a6; border-color: #6041a6; }
.oc-link { display: inline-flex; align-items: center; text-decoration: none; }
.oc-view .oc-filter { justify-content: flex-start; flex-wrap: wrap; font-size: .91rem; color: #615671; }
.oc-filter .oc-link { background: transparent; border: 0; text-decoration: underline; color: #6950a1; }
.oc-grid { display: grid; grid-template-columns: minmax(12rem,.68fr) minmax(0,1.7fr); gap: 1rem; align-items: start; }
.oc-list, .oc-detail, .oc-empty {
  min-width: 0; overflow: hidden; border: 1px solid #e3e1e9; border-radius: 14px;
  background: #fff; box-shadow: 0 3px 12px #24203504;
}
.oc-list { padding: .8rem; display: grid; gap: .35rem; }
.oc-list .oc-list-title { display: flex; align-items: center; gap: .5rem; font-size: .99rem; padding: .5rem .4rem; }
.oc-list-title small { font-size: .8rem; padding: .04rem .4rem; border-radius: 5px; background: #f0edf6; color: #675d79; }
.oc-button.oc-resource {
  display: flex; gap: .65rem; align-items: center; padding: .7rem .55rem;
  text-align: left; width: 100%; border-color: transparent; min-width: 0;
}
.oc-button.oc-resource[aria-pressed="true"] { border-color: #ddd1ef; background: #f7f3fc; }
.oc-row-copy { display: grid; min-width: 0; gap: .13rem; }
.oc-row-copy strong { font-size: .94rem; font-weight: 650; overflow-wrap: anywhere; }
.oc-row-copy small, .oc-detail-head small, .oc-metric small, .oc-small { color: #696979; font-size: .82rem; font-weight: 400; }
.oc-type {
  display: grid; place-items: center; width: 2.45rem; height: 2.45rem; flex-shrink: 0;
  border-radius: 10px; background: #eae5f9; color: #7051ad; font-family: ui-monospace,monospace; font-weight: 650; font-size: .84rem;
}
.oc-colab { background: #fff1d8; color: #916218; }
.oc-vm { background: #e5edf9; color: #486892; }
.oc-detail-head { padding: 1.2rem 1.35rem; align-items: start; border-bottom: 1px solid #eeedf2; }
.oc-detail-head .oc-kind { font-size: .83rem; color: #795ca7; font-weight: 650; }
.oc-detail-head h2 { font-size: 1.32rem; font-weight: 700; margin: .1rem 0 .2rem; overflow-wrap: anywhere; }
.oc-detail-head p { color: #646373; font-size: .91rem; overflow-wrap: anywhere; }
.oc-detail-head small { display: block; margin-top: .25rem; }
.oc-detail-body { display: grid; gap: 1rem; padding: 1.15rem 1.35rem; }
.oc-detail-body > .oc-button { justify-self: start; }
.oc-facts {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: .3rem .9rem; margin: 0;
  padding-bottom: 1rem; border-bottom: 1px solid #eeedf2; font-size: .9rem;
}
.oc-facts dt { color: #6d6c7a; } .oc-facts dd { margin: 0; font-family: ui-monospace,monospace; overflow-wrap: anywhere; }
.oc-subhead { justify-content: flex-start; flex-wrap: wrap; gap: .6rem; }
.oc-subhead h3, .oc-units h3 { font-size: 1rem; }
.oc-tag { color: #65616d; font-size: .76rem; border: 1px solid #e4e1e9; padding: .12rem .45rem; border-radius: 5px; }
.oc-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(8.5rem,100%),1fr)); gap: .58rem; }
.oc-metric { display: flex; flex-direction: column; min-width: 0; gap: .3rem; padding: .85rem; background: #f8f7fb; border: 1px solid #eae7f1; border-radius: 10px; }
.oc-metric h4 { color: #626171; font-size: .9rem; font-weight: 600; }
.oc-value, .oc-balance { font-size: clamp(1.2rem,2.5vw,1.65rem); font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.oc-spark { display: block; width: 100%; height: 2.2rem; }
.oc-note, .oc-notice, .oc-empty p, .oc-setup p { font-size: .92rem; line-height: 1.65; color: #686676; }
.oc-notice { padding: .6rem .75rem; border-radius: 7px; background: #faf6ec; color: #77603b; overflow-wrap: anywhere; }
.oc-notice.oc-error { background: #fcf0f1; }
.oc-monitor-actions, .oc-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.oc-toggle { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: #514b5d; }
.oc-toggle input { width: 1rem; height: 1rem; accent-color: #7250be; }
.oc-setup { border-top: 1px solid #eeedf2; padding-top: .8rem; }
.oc-setup summary { cursor: pointer; font-size: .91rem; font-weight: 600; color: #524863; }
.oc-setup p { margin-top: .6rem; } .oc-links { margin-top: .7rem; }
.oc-foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.35rem; border-top: 1px solid #eeedf2; }
.oc-units { display: grid; gap: .35rem; padding: 1rem; background: #faf8f2; border: 1px solid #ede8d9; border-radius: 10px; }
.oc-empty { padding: 2.5rem 1.1rem; text-align: center; } .oc-empty h2 { font-size: 1.15rem; }
.oc-dialog {
  width: min(32rem,calc(100vw - 1.5rem)); max-height: 88vh; max-height: 88dvh; margin: auto; padding: 0;
  overflow: auto; border: 1px solid #e3dfea; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 65px #17132038; font-family: inherit; color: #242330;
}
.oc-dialog::backdrop { background: #17142368; backdrop-filter: blur(3px); }
.oc-editor-head { border-bottom: 1px solid #eeedf2; padding: 1rem 1.3rem; }
.oc-editor-head h2 { font-size: 1.2rem; }
.oc-close { font-size: 1.3rem; line-height: 1; width: 2.15rem; height: 2.15rem; padding: 0; }
.oc-form, .oc-fields { display: grid; gap: .84rem; }
.oc-form { padding: 1.1rem 1.3rem; }
.oc-field { display: grid; gap: .3rem; font-size: .89rem; font-weight: 600; }
.oc-field input, .oc-field select {
  width: 100%; min-height: 2.55rem; padding: .45rem .65rem; border: 1px solid #dcd9e6; border-radius: 7px;
  background-color: #fff; font: inherit; font-weight: 400; color: #282532;
}
.oc-field select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg,transparent 50%,#797081 50%),linear-gradient(135deg,#797081 50%,transparent 50%); background-position: calc(100% - 15px) 50%,calc(100% - 11px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.oc-field small { color: #696777; font-size: .8rem; font-weight: 400; }
.oc-feedback:empty { display: none; }
.oc-error { color: #9c3846; font-size: .89rem; }
.oc-actions { justify-content: flex-end; padding-top: .5rem; }
.oc-remove { margin-right: auto; color: #9c3846; }
@media(max-width:880px) { .oc-grid { grid-template-columns: minmax(0,1fr); } .oc-list { grid-template-columns: repeat(auto-fit,minmax(min(12rem,100%),1fr)); } .oc-list-title { grid-column: 1/-1; } }
@media(max-width:560px) {
  .oc-head { align-items: start; } .oc-head p { font-size: .9rem; }
  .oc-detail-head, .oc-detail-body, .oc-foot, .oc-form, .oc-editor-head { padding: 1rem; }
  .oc-list { padding: .55rem; } .oc-button, .oc-link { min-height: 2.5rem; }
  .oc-close { width: 2.5rem; } .oc-monitor-actions, .oc-actions { gap: .45rem; }
}
