/*! RO - Org Chart Designer | Studio UI | Res Opera Solutions */
.ro-app { position: relative; display: flex; flex-direction: column; background: #edf4f9; color: var(--ro-ink, #15324b); font-family: var(--ro-ui-font, Inter, system-ui, sans-serif); font-size: 14px; line-height: 1.4; overflow: hidden; }
.ro-app *, .ro-app *::before, .ro-app *::after { box-sizing: border-box; }
.ro-app--public { height: 88vh; min-height: 680px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: var(--ro-radius, 16px); }
.ro-app--admin { height: calc(100vh - 32px); min-height: 600px; }
.ro-app--fs { position: fixed; inset: 0; height: 100% !important; z-index: 99998; border-radius: 0; border: 0; }
.ro-app:fullscreen { height: 100% !important; border-radius: 0; }

.ro-appbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--ro-line, #d6e6f0); box-shadow: 0 2px 10px rgba(7, 40, 80, .05); z-index: 5; }
.ro-sp { flex: 1 1 8px; }
.ro-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--ro-line, #d6e6f0); background: #fff; color: var(--ro-primary, #07569a); border-radius: 11px; cursor: pointer; font: 600 13px var(--ro-ui-font, system-ui); text-decoration: none; transition: background .15s, box-shadow .15s, transform .12s; white-space: nowrap; }
.ro-b:hover { background: #f1f7fb; color: var(--ro-primary, #07569a); }
.ro-b:active { transform: translateY(1px); }
.ro-b:focus-visible { outline: 3px solid var(--ro-accent, #22a8ab); outline-offset: 2px; }
.ro-b[disabled] { opacity: .45; cursor: not-allowed; }
.ro-b--primary { background: linear-gradient(135deg, var(--ro-primary, #07569a), #0a6fc0); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(7, 86, 154, .25); }
.ro-b--primary:hover { background: linear-gradient(135deg, #064a85, var(--ro-primary, #07569a)); color: #fff; }
.ro-b--primary.is-dirty { box-shadow: 0 0 0 3px rgba(34, 168, 171, .35), 0 4px 12px rgba(7, 86, 154, .25); }
.ro-b--danger { color: #b3261e; border-color: #f0c9c6; }
.ro-b--danger:hover { background: #fdecea; color: #b3261e; }
.ro-b--ghost { border-color: transparent; background: transparent; }
.ro-b--wide { width: 100%; margin: 6px 0 10px; }
.ro-title-in { flex: 0 1 240px; min-width: 120px; height: 36px; border: 1px solid transparent; background: #f1f7fb; border-radius: 11px; padding: 0 12px; font: 700 15px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); }
.ro-title-in:focus { outline: none; border-color: var(--ro-accent, #22a8ab); background: #fff; }
.ro-select, .ro-app select { height: 36px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 11px; padding: 0 10px; background: #fff; color: var(--ro-ink, #15324b); font: 13px var(--ro-ui-font, system-ui); max-width: 100%; }
.ro-menu-w { position: relative; }
.ro-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 14px; box-shadow: 0 16px 40px rgba(7, 40, 80, .2); padding: 6px; z-index: 40; min-width: 220px; }
.ro-menu[hidden] { display: none; }
.ro-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font: 13px var(--ro-ui-font, system-ui); color: var(--ro-ink, #15324b); cursor: pointer; }
.ro-menu button:hover { background: #f1f7fb; }

.ro-appmain { display: flex; flex: 1 1 auto; min-height: 0; }
.ro-side { flex: 0 0 372px; width: 372px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--ro-line, #d6e6f0); min-height: 0; }
.ro-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 10px 8px; border-bottom: 1px solid var(--ro-line, #d6e6f0); background: linear-gradient(180deg, #fff, #f7fbfd); }
.ro-tab { border: 0; background: transparent; color: #4a6075; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 12.5px var(--ro-ui-font, system-ui); }
.ro-tab:hover { background: #eaf3f9; }
.ro-tab.is-on { background: var(--ro-primary, #07569a); color: #fff; }
.ro-tab:focus-visible { outline: 3px solid var(--ro-accent, #22a8ab); outline-offset: 1px; }
.ro-pane { flex: 1 1 auto; overflow: auto; padding: 14px 14px 40px; min-height: 0; }
.ro-canvas { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ro-canvas-v { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ro-canvas-v .ro-v { flex: 1 1 auto; }
.ro-status { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .95); border: 1px solid var(--ro-line, #d6e6f0); border-radius: 999px; padding: 5px 14px; font: 600 12px var(--ro-ui-font, system-ui); color: #4a6075; z-index: 8; pointer-events: none; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-status.is-warn { color: #8a5a00; background: #fff4d6; border-color: #f1d58a; }
.ro-app .ro-card { touch-action: none; user-select: none; }
.ro-app.is-dragging, .ro-app.is-dragging * { cursor: grabbing !important; }
.ro-drag-hint { position: absolute; z-index: 30; max-width: 270px; background: #0b2e4d; color: #fff; border-radius: 10px; padding: 7px 11px; font: 600 12.5px var(--ro-ui-font, system-ui); pointer-events: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.ro-drag-hint.is-bad { background: #b3261e; }
.ro-drag-hint[hidden] { display: none; }

/* panel content */
.ro-note { color: #5b7287; font-size: 12.5px; margin: 6px 0 12px; }
.ro-h { margin: 8px 0 10px; font: 700 15px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); }
.ro-act { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ro-q { width: 100%; height: 38px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 11px; padding: 0 12px; font: 14px var(--ro-ui-font, system-ui); margin-bottom: 8px; }
.ro-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ro-pi button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 10px; cursor: pointer; font: 13px var(--ro-ui-font, system-ui); color: var(--ro-ink, #15324b); }
.ro-pi button:hover { background: #f1f7fb; }
.ro-pi.is-on button { background: #e3f3f4; box-shadow: inset 3px 0 0 var(--ro-accent, #22a8ab); }
.ro-pi small { color: #5b7287; font-size: 12px; }
.ro-pi em { font-style: normal; font-size: 11px; background: #eee; border-radius: 6px; padding: 1px 6px; color: #666; }
.ro-scope { background: #f1f7fb; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 14px; padding: 10px 12px 2px; margin-bottom: 12px; }
.ro-scope-t { font: 700 12px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); margin-bottom: 6px; }
.ro-scope-r { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ro-scope-p { font-weight: 600; font-size: 13px; }
.ro-ovr { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: #4a6075; }
.ro-secs { display: flex; flex-direction: column; gap: 8px; }
.ro-sec { border: 1px solid var(--ro-line, #d6e6f0); border-radius: 14px; background: #fff; padding: 0 12px; }
.ro-sec > summary { cursor: pointer; padding: 11px 0; font: 700 13px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); list-style: none; display: flex; justify-content: space-between; }
.ro-sec > summary::after { content: "▾"; color: #7b92a6; transition: transform .15s; }
.ro-sec[open] > summary::after { transform: rotate(180deg); }
.ro-sec[open] { padding-bottom: 8px; }
.ro-sec--ind { margin-top: 14px; background: #fbfdfe; }
.ro-f { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; margin: 0 0 10px; }
.ro-f > label { grid-column: 1 / -1; font: 600 12px var(--ro-ui-font, system-ui); color: #4a6075; }
.ro-f > :not(label):not(.ro-reset) { grid-column: 1; min-width: 0; }
.ro-f > .ro-reset { grid-column: 2; grid-row: 2; }
.ro-f input[type=text], .ro-f input[type=number], .ro-f input[type=search], .ro-f textarea, .ro-f select { width: 100%; height: 36px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; padding: 0 10px; background: #fff; font: 13px var(--ro-ui-font, system-ui); color: var(--ro-ink, #15324b); }
.ro-f textarea { height: auto; padding: 8px 10px; }
.ro-f select[multiple] { height: auto; padding: 4px; }
.ro-f input:focus, .ro-f select:focus, .ro-f textarea:focus, .ro-q:focus { outline: none; border-color: var(--ro-accent, #22a8ab); box-shadow: 0 0 0 3px rgba(34, 168, 171, .18); }
.ro-f--bool { grid-template-columns: 1fr auto auto; }
.ro-f--bool > label { grid-column: 1; grid-row: 1; align-self: center; }
.ro-f--bool > :not(label):not(.ro-reset) { grid-column: 2; grid-row: 1; }
.ro-f--bool > .ro-reset { grid-column: 3; grid-row: 1; }
.ro-reset { visibility: hidden; border: 0; background: #e3f3f4; color: var(--ro-primary, #07569a); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.is-own > .ro-reset { visibility: visible; }
.is-own > label::after { content: " • changed"; color: var(--ro-accent, #22a8ab); font-weight: 600; }
.ro-num { display: flex; align-items: center; gap: 8px; }
.ro-num input[type=range] { flex: 1; min-width: 0; accent-color: var(--ro-primary, #07569a); }
.ro-num input[type=number] { width: 78px !important; flex: 0 0 78px; }
.ro-unit { color: #7b92a6; font-size: 12px; min-width: 18px; }
.ro-color { display: flex; gap: 8px; align-items: center; }
.ro-color input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 44px; }
.ro-color input[type=color].is-none { opacity: .35; }
.ro-hex { flex: 1; }
.ro-seg { display: inline-flex; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; overflow: hidden; }
.ro-seg button { border: 0; background: #fff; padding: 7px 12px; font: 600 12px var(--ro-ui-font, system-ui); color: #4a6075; cursor: pointer; }
.ro-seg button + button { border-left: 1px solid var(--ro-line, #d6e6f0); }
.ro-seg button[aria-pressed=true] { background: var(--ro-primary, #07569a); color: #fff; }
.ro-switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #c9d8e4; position: relative; cursor: pointer; border: 0; transition: background .15s; flex: 0 0 auto; }
.ro-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.ro-switch:checked { background: var(--ro-accent, #22a8ab); }
.ro-switch:checked::after { transform: translateX(18px); }
.ro-switch:focus-visible { outline: 3px solid rgba(34, 168, 171, .4); outline-offset: 2px; }
.ro-media { display: flex; gap: 6px; }
.ro-media input { flex: 1; }
.ro-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ro-preset { border: 1px solid var(--ro-line, #d6e6f0); background: #fff; border-radius: 14px; padding: 8px 6px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 12px var(--ro-ui-font, system-ui); color: var(--ro-ink, #15324b); transition: border-color .15s, box-shadow .15s; }
.ro-preset:hover { border-color: var(--ro-accent, #22a8ab); box-shadow: 0 6px 18px rgba(7, 40, 80, .12); }
.ro-preset:focus-visible { outline: 3px solid var(--ro-accent, #22a8ab); outline-offset: 2px; }
.ro-thumb { position: relative; width: 100%; height: 100px; overflow: hidden; border-radius: 10px; background: #f1f7fb; }
.ro-thumb .ro-card { position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -46%) scale(.56) !important; transform-origin: center; pointer-events: none; cursor: pointer; }

/* modal */
.ro-modal-ov { position: absolute; inset: 0; z-index: 60; background: rgba(8, 30, 52, .5); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(2px); }
.ro-modal { background: #fff; border-radius: 20px; width: min(480px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: ro-in .18s ease; }
.ro-modal--wide { width: min(780px, 100%); }
.ro-modal-h { position: relative; padding: 18px 56px 12px 22px; border-bottom: 1px solid var(--ro-line, #d6e6f0); }
.ro-modal-h h3 { margin: 0; font: 700 18px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); }
.ro-modal-h .ro-x { top: 14px; right: 14px; }
.ro-modal-b { padding: 16px 22px; overflow: auto; }
.ro-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid var(--ro-line, #d6e6f0); }
.ro-radio { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; font-size: 14px; }
.ro-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px dashed #9cc5de; border-radius: 16px; background: #f4fafd; padding: 24px 14px; cursor: pointer; margin: 10px 0; color: var(--ro-primary, #07569a); }
.ro-drop span { color: #5b7287; font-size: 12.5px; }
.ro-drop input { display: none; }
.ro-drop.is-over, .ro-drop:hover { background: #e6f5f6; border-color: var(--ro-accent, #22a8ab); }
.ro-imp textarea { width: 100%; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; padding: 8px 10px; font: 12.5px ui-monospace, Menlo, monospace; margin-bottom: 6px; }
.ro-link { color: var(--ro-accent, #22a8ab); font-weight: 600; margin-left: 10px; font-size: 13px; }
.ro-err { color: #b3261e; font-weight: 600; margin: 8px 0; }
.ro-err:empty { display: none; }
.ro-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; }
.ro-map-i { display: flex; flex-direction: column; gap: 3px; font: 600 12px var(--ro-ui-font, system-ui); color: #4a6075; }
.ro-map-i select { width: 100%; }
.ro-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.ro-stat { background: #f1f7fb; border-radius: 12px; padding: 10px; text-align: center; }
.ro-stat b { display: block; font: 800 22px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); }
.ro-stat span { font-size: 12px; color: #5b7287; }
.ro-stat.ok { background: #e3f6ee; } .ro-stat.ok b { color: #1a7f5a; }
.ro-stat.warn { background: #fff4d6; } .ro-stat.warn b { color: #9a6a00; }
.ro-stat.bad { background: #fdecea; } .ro-stat.bad b { color: #b3261e; }
.ro-rd { border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; padding: 6px 12px; margin: 6px 0; font-size: 13px; }
.ro-rd summary { cursor: pointer; font-weight: 600; }
.ro-rd ul { margin: 6px 0 4px 18px; padding: 0; color: #4a6075; }
.ro-tbl-w { overflow: auto; margin-top: 8px; }
.ro-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ro-tbl th, .ro-tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6eff5; white-space: nowrap; }
.ro-tbl th { color: #4a6075; background: #f7fbfd; }
.ro-imp-mode { margin: 10px 0 0; }

.ro-empty { position: absolute; z-index: 12; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); background: #fff; border: 2px dashed #9cc5de; border-radius: 22px; padding: 28px 26px; text-align: center; box-shadow: 0 20px 50px rgba(7, 40, 80, .15); }
.ro-empty.is-over { background: #e6f5f6; border-color: var(--ro-accent, #22a8ab); }
.ro-empty h3 { margin: 0 0 8px; font: 800 22px var(--ro-ui-font, system-ui); color: var(--ro-primary, #07569a); }
.ro-empty p { margin: 0 0 16px; color: #4a6075; }
.ro-empty-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ro-toast { position: absolute; left: 50%; bottom: 54px; transform: translate(-50%, 14px); background: #0b2e4d; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; font: 600 13px var(--ro-ui-font, system-ui); opacity: 0; transition: opacity .2s, transform .2s; z-index: 70; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ro-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.ro-toast button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
  .ro-app--public { height: auto; min-height: 0; }
  .ro-appmain { flex-direction: column; }
  .ro-canvas { order: -1; height: 62vh; flex: none; }
  .ro-side { flex: 1 1 auto; width: auto; border-right: 0; border-top: 1px solid var(--ro-line, #d6e6f0); max-height: none; }
  .ro-pane { overflow: visible; }
  .ro-app--admin { height: auto; min-height: calc(100vh - 46px); }
  .ro-appbar .ro-b span { display: none; }
  .ro-appbar .ro-b--primary span, .ro-appbar .ro-b[title="Undo (Ctrl+Z)"] span, .ro-appbar .ro-b[title="Redo (Ctrl+Y)"] span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .ro-modal, .ro-toast { animation: none; transition: none; } }

/* ---------- card header / footer (public builder) ---------- */
.ro-app-head { display: flex; align-items: center; gap: 16px; padding: 16px 22px; color: #fff; flex: 0 0 auto; }
.ro-app-icon { flex: 0 0 auto; object-fit: contain; display: block; }
.ro-app-ht { flex: 1 1 auto; min-width: 0; }
.ro-app-title { font: 800 24px/1.2 var(--ro-ui-font, system-ui); letter-spacing: -.01em; }
.ro-app-sub { font: 500 14px/1.4 var(--ro-ui-font, system-ui); margin-top: 3px; opacity: .95; }
.ro-theme-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.ro-theme-btn:hover { background: rgba(255, 255, 255, .32); transform: rotate(12deg); }
.ro-theme-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ro-appbar .ro-theme-btn { background: var(--ro-primary, #07569a); border-color: transparent; }
.ro-app-foot { flex: 0 0 auto; padding: 10px 18px; text-align: center; font: 600 12.5px var(--ro-ui-font, system-ui); }
.ro-app-foot a { text-decoration: none; }
.ro-app-foot a:hover { text-decoration: underline; }
.ro-app--public { border-radius: var(--ro-radius, 16px); }
.ro-quick { background: #f1f7fb; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 14px; padding: 10px 12px 2px; margin-bottom: 12px; }
.ro-quick select { width: 100%; }
.ro-scope-warn { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff4d6; color: #7a5300; border: 1px solid #f1d58a; border-radius: 10px; padding: 7px 10px; margin: 8px 0 4px; font-size: 12.5px; font-weight: 600; }
.ro-detect { background: #e9f6f6; border: 1px solid #b7e0e1; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.ro-detect p { margin: 4px 0 8px; color: #35566a; font-size: 13px; }
.ro-note-i { background: #fff4d6; color: #7a5300; border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 12.5px; font-weight: 600; }
@media (max-width: 700px) { .ro-app-title { font-size: 19px; } .ro-app-sub { font-size: 12.5px; } .ro-app-head { padding: 12px 14px; gap: 10px; } .ro-app-icon { width: 34px !important; height: 34px !important; } }

/* ---------- dark theme (UI only; the chart sheet keeps its own page color) ---------- */
.ro-app[data-theme="dark"] { background: #0c1722; color: #dbe7f1; --ro-ink: #dbe7f1; --ro-line: #26394b; --ro-soft: #152536; color-scheme: dark; }
.ro-app[data-theme="dark"] .ro-appbar, .ro-app[data-theme="dark"] .ro-side, .ro-app[data-theme="dark"] .ro-modal, .ro-app[data-theme="dark"] .ro-menu, .ro-app[data-theme="dark"] .ro-sec, .ro-app[data-theme="dark"] .ro-preset, .ro-app[data-theme="dark"] .ro-empty { background: #111f2e; border-color: #26394b; color: #dbe7f1; }
.ro-app[data-theme="dark"] .ro-tabs { background: #0e1b29; border-color: #26394b; }
.ro-app[data-theme="dark"] .ro-tab { color: #9db5c9; }
.ro-app[data-theme="dark"] .ro-tab:hover { background: #172a3d; }
.ro-app[data-theme="dark"] .ro-tab.is-on { background: #22a8ab; color: #04202a; }
.ro-app[data-theme="dark"] .ro-b, .ro-app[data-theme="dark"] .ro-seg button { background: #162637; color: #8cc8ff; border-color: #2a4157; }
.ro-app[data-theme="dark"] .ro-b:hover { background: #1c3249; color: #b5dcff; }
.ro-app[data-theme="dark"] .ro-b--primary { background: linear-gradient(135deg, #0a6fc0, #22a8ab); color: #fff; border-color: transparent; }
.ro-app[data-theme="dark"] .ro-b--danger { color: #ff9a92; border-color: #5a2b2b; }
.ro-app[data-theme="dark"] .ro-f input[type=text], .ro-app[data-theme="dark"] .ro-f input[type=number], .ro-app[data-theme="dark"] .ro-f input[type=search], .ro-app[data-theme="dark"] .ro-f textarea, .ro-app[data-theme="dark"] .ro-f select, .ro-app[data-theme="dark"] .ro-select, .ro-app[data-theme="dark"] .ro-q, .ro-app[data-theme="dark"] .ro-title-in, .ro-app[data-theme="dark"] select, .ro-app[data-theme="dark"] .ro-imp textarea { background: #0c1a28; color: #dbe7f1; border-color: #2a4157; }
.ro-app[data-theme="dark"] .ro-color input[type=color] { background: #0c1a28; border-color: #2a4157; }
.ro-app[data-theme="dark"] .ro-f > label, .ro-app[data-theme="dark"] .ro-note, .ro-app[data-theme="dark"] .ro-pi small, .ro-app[data-theme="dark"] .ro-stat span, .ro-app[data-theme="dark"] .ro-map-i { color: #9db5c9; }
.ro-app[data-theme="dark"] .ro-h, .ro-app[data-theme="dark"] .ro-sec > summary, .ro-app[data-theme="dark"] .ro-modal-h h3, .ro-app[data-theme="dark"] .ro-scope-t, .ro-app[data-theme="dark"] .ro-empty h3 { color: #7fd0d2; }
.ro-app[data-theme="dark"] .ro-pi button, .ro-app[data-theme="dark"] .ro-menu button, .ro-app[data-theme="dark"] .ro-preset { color: #dbe7f1; }
.ro-app[data-theme="dark"] .ro-pi button:hover, .ro-app[data-theme="dark"] .ro-menu button:hover { background: #172a3d; }
.ro-app[data-theme="dark"] .ro-pi.is-on button { background: #14383f; }
.ro-app[data-theme="dark"] .ro-scope, .ro-app[data-theme="dark"] .ro-quick, .ro-app[data-theme="dark"] .ro-thumb, .ro-app[data-theme="dark"] .ro-stat, .ro-app[data-theme="dark"] .ro-tbl th { background: #152536; border-color: #26394b; color: #dbe7f1; }
.ro-app[data-theme="dark"] .ro-drop { background: #0e1b29; border-color: #2f5b7a; color: #8cc8ff; }
.ro-app[data-theme="dark"] .ro-detect { background: #12313a; border-color: #25565f; }
.ro-app[data-theme="dark"] .ro-detect p { color: #b5ced9; }
.ro-app[data-theme="dark"] .ro-tbl td, .ro-app[data-theme="dark"] .ro-tbl th { border-color: #26394b; }
.ro-app[data-theme="dark"] .ro-reset { background: #14383f; color: #7fd0d2; }
.ro-app[data-theme="dark"] .ro-switch { background: #34506a; }
.ro-app[data-theme="dark"] .ro-switch:checked { background: #22a8ab; }
.ro-app[data-theme="dark"] .ro-status { background: rgba(17, 31, 46, .95); border-color: #26394b; color: #9db5c9; }
.ro-app[data-theme="dark"] .ro-canvas .ro-v--sheet .ro-scroller { background: #0a131d; background-image: radial-gradient(#1b2d3e 1px, transparent 1px); background-size: 18px 18px; }
.ro-app[data-theme="dark"] .ro-modal-f, .ro-app[data-theme="dark"] .ro-modal-h { border-color: #26394b; }
.ro-app[data-theme="dark"] .ro-x { background: #1c3249; color: #9bd0ff; }
.ro-app[data-theme="dark"] .ro-rd { border-color: #26394b; }
.ro-app[data-theme="dark"] .ro-link { color: #7fd0d2; }
.ro-app[data-theme="dark"] .ro-modal-b, .ro-app[data-theme="dark"] .ro-modal-b p { color: #dbe7f1; }
.ro-app[data-theme="dark"] .ro-scope-warn { background: #3a2e12; color: #ffd98a; border-color: #6b5420; }
.ro-app[data-theme="dark"] .ro-sheet { color-scheme: light; }

/* chips for dotted-line managers, project name input, saved list */
.ro-f--chips { grid-template-columns: 1fr; }
.ro-f--chips > :not(label) { grid-column: 1; }
.ro-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.ro-chip { display: inline-flex; align-items: center; gap: 4px; background: #e3f3f4; color: var(--ro-primary, #07569a); border: 1px dotted var(--ro-accent, #22a8ab); border-radius: 999px; padding: 3px 4px 3px 11px; font: 600 12.5px var(--ro-ui-font, system-ui); }
.ro-chip button { border: 0; background: var(--ro-accent, #22a8ab); color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; }
.ro-chip button:hover { background: #b3261e; }
.ro-chip-none { color: #7b92a6; font-size: 12.5px; }
.ro-name-in { width: 100%; height: 40px; border: 1px solid var(--ro-line, #d6e6f0); border-radius: 10px; padding: 0 12px; font: 600 15px var(--ro-ui-font, system-ui); }
.ro-saved .ro-plist { max-height: 340px; overflow: auto; }
.ro-amb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.ro-imp-opts { display: grid; gap: 4px; margin: 10px 0 4px; padding: 10px 12px; background: #f1f7fb; border-radius: 12px; }
.ro-app[data-theme="dark"] .ro-imp-opts, .ro-app[data-theme="dark"] .ro-chip { background: #152536; }
.ro-app[data-theme="dark"] .ro-name-in { background: #0c1a28; color: #dbe7f1; border-color: #2a4157; }

.ro-tip { background: #fff4d6; border: 1px solid #f1d58a; color: #5f4300; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 13px; }
.ro-tip p { margin: 4px 0 0; }
.ro-tip .ro-tip-cols { font-weight: 700; color: #07569a; }
.ro-colcheck { margin: 8px 0 10px; }
.ro-ok-i { background: #e3f6ee; color: #1a7f5a; border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 12.5px; font-weight: 600; }
.ro-app[data-theme="dark"] .ro-tip { background: #3a2e12; border-color: #6b5420; color: #ffd98a; }
.ro-app[data-theme="dark"] .ro-tip .ro-tip-cols { color: #7fd0d2; }
.ro-app[data-theme="dark"] .ro-note-i { background: #3a2e12; color: #ffd98a; }
.ro-app[data-theme="dark"] .ro-ok-i { background: #12332b; color: #7be0b5; }
