.bot-native-org *{ box-sizing: border-box; }.bot-native-org .stage{ grid-area: stage; position: relative; overflow: hidden; }.bot-native-org canvas{ display: block; width: 100%; height: 100%; cursor: grab; }.bot-native-org canvas.drag{ cursor: grabbing; }.bot-native-org .ai-staff-key{ position:absolute; right:16px; bottom:68px; z-index:6; width:min(340px,calc(100% - 32px)); max-height:40%; overflow:auto; padding:12px; border:1px solid var(--stroke); border-radius:12px; background:var(--panel-solid); color:var(--text); font-size:13px; }.bot-native-org .ai-staff-key summary{ cursor:pointer; font-weight:600; }.bot-native-org .ai-staff-key p{ color:var(--muted); line-height:1.4; }.bot-native-org .ai-staff-key li{ margin:8px 0; overflow-wrap:anywhere; }.bot-native-org .ai-staff-key a{ color:var(--accent); }.bot-native-org .ai-staff-key :focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }.bot-native-org .toolbar{ position: absolute; top: 14px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; z-index: 5; }.bot-native-org .toolbar button,.bot-native-org .search input{
        font-family: inherit; font-size: 14px; color: var(--text);
        background: var(--panel); border: 1px solid var(--stroke); border-radius: 10px; padding: 8px 12px;
        cursor: pointer; backdrop-filter: blur(8px);
      }.bot-native-org .toolbar button:hover{ border-color: var(--stroke-strong); }.bot-native-org .search input{ cursor: text; width: 200px; }.bot-native-org .search input::placeholder{ color: var(--muted); }.bot-native-org .invite-note{ font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 4px; white-space: nowrap; }.bot-native-org .invite-note:hover{ color: var(--text); }.bot-native-org .legend{ position: absolute; bottom: 14px; left: 16px; display: flex; gap: 14px; flex-wrap: wrap; z-index: 5;
        padding: 9px 14px; background: var(--panel); border: 1px solid var(--stroke); border-radius: 999px; backdrop-filter: blur(8px); font-size: 12px; color: var(--muted); }.bot-native-org .legend span{ display: flex; align-items: center; gap: 6px; }.bot-native-org .legend i{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }.bot-native-org .hint-bar{ position: absolute; bottom: 14px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; }.bot-native-org .hint-toggle{ width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
        font-family: inherit; background: var(--panel); border: 1px solid var(--stroke); color: var(--muted); cursor: pointer; backdrop-filter: blur(8px); }.bot-native-org .hint-toggle:hover{ color: var(--text); border-color: var(--stroke-strong); }.bot-native-org .hint-text{ font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--stroke);
        border-radius: 999px; padding: 8px 14px; backdrop-filter: blur(8px); white-space: nowrap; }.bot-native-org .hint-text.hidden{ display: none; }.bot-native-org .tip{ position: absolute; z-index: 8; pointer-events: none; max-width: 240px; padding: 9px 12px;
        background: var(--panel-solid); color: var(--text); border: 1px solid var(--stroke-strong); border-radius: 10px; font-size: 12px; line-height: 1.5;
        box-shadow: 0 12px 30px rgba(var(--shadow),0.18); opacity: 0; transition: opacity 0.12s; }.bot-native-org .tip b{ font-size: 14px; }.bot-native-org .tip .role{ color: var(--muted); }.bot-native-org .sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }.bot-native-org .nm-item{ display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text);
        font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }.bot-native-org .nm-item:hover{ background: var(--wash); }.bot-native-org .nm-danger{ color: var(--red); }.bot-native-org .nm-danger:hover{ background: rgba(248,113,113,0.12); }

      @media (max-width: 720px) {.bot-native-org .toolbar{ flex-wrap: wrap; gap: 6px; left: 10px; right: 10px; top: 10px; }.bot-native-org .search{ flex-basis: 100%; }.bot-native-org .search input{ width: 100%; }.bot-native-org .hint-bar .hint-text{ display: none; }.bot-native-org .hint-bar{ right: 90px; }.bot-native-org .legend{ flex-wrap: wrap; max-width: calc(100% - 24px); font-size: 10px; }
      }

.bot-native-org{position:relative;height:680px;min-height:500px;overflow:hidden;border:1px solid var(--stroke);border-radius:14px;background:var(--panel-solid)}
.bot-native-org canvas{position:absolute;inset:0}
.bot-native-logs .wrap{--muted:#535d71;width:100%;max-width:1440px;margin:0 auto;padding:24px 24px 50px;box-sizing:border-box;align-self:stretch;min-width:0}.bot-native-logs h1{font-size:28px;letter-spacing:-.025em;margin:18px 0 6px}.bot-native-logs .sub{color:var(--muted);line-height:1.5;font-size:14px}.bot-native-logs .topline,.bot-native-logs .paging{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.bot-native-logs .back{color:var(--text)}.bot-native-logs .filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px 0}.bot-native-logs .filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;flex:1 1 140px;min-width:0}.bot-native-logs .filters select,.bot-native-logs .filters input,.bot-native-logs button{font:inherit;color:var(--text);background:var(--panel-solid);border:1px solid var(--stroke);border-radius:8px;padding:10px 12px;min-height:42px;box-sizing:border-box;width:100%}.bot-native-logs button{cursor:pointer;width:auto;font-weight:600}.bot-native-logs button:hover{background:var(--wash)}.bot-native-logs button:disabled{opacity:.6;cursor:default}.bot-native-logs button.primary{background:#435cc5;color:#fff}.bot-native-logs .filters input,.bot-native-logs .filters select{min-width:0}.bot-native-logs a:focus-visible,.bot-native-logs button:focus-visible,.bot-native-logs input:focus-visible,.bot-native-logs select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.bot-native-logs .table-shell{background:var(--panel-solid);border:1px solid var(--stroke);border-radius:12px;overflow:hidden}.bot-native-logs table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}.bot-native-logs th,.bot-native-logs td{text-align:left;vertical-align:top;padding:13px 14px;border-bottom:1px solid var(--stroke);overflow-wrap:anywhere}.bot-native-logs th{font-size:12px;color:var(--muted);background:var(--wash)}.bot-native-logs td small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.bot-native-logs tbody tr:last-child td{border-bottom:0}.bot-native-logs .result{font-weight:600}.bot-native-logs .paging{margin-top:14px}.bot-native-logs .notice{padding:12px 14px;background:var(--wash);border-radius:8px;font-size:13px;line-height:1.5;color:var(--muted)}.bot-native-logs #logs-status{line-height:1.5}.bot-native-logs [hidden]{display:none!important}[data-theme=dark] .bot-native-logs .wrap{--muted:#adb7ca}@media(max-width:700px){.bot-native-logs .wrap{padding:16px 14px 40px}.bot-native-logs h1{font-size:25px}.bot-native-logs .filters label{flex-basis:calc(50% - 12px)}.bot-native-logs thead{display:none}.bot-native-logs table,.bot-native-logs tbody,.bot-native-logs tr,.bot-native-logs td{display:block;width:auto}.bot-native-logs tr{padding:8px 0;border-bottom:1px solid var(--stroke)}.bot-native-logs td{border:0;padding:7px 12px;display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px}.bot-native-logs td:before{content:attr(data-label);font-size:12px;color:var(--muted);font-weight:600}.bot-native-logs .filters button{width:100%}}

.bot-native-pa .card{background:var(--panel-solid);border:1px solid var(--stroke);border-radius:14px;padding:16px}.bot-native-pa h3{font-size:18px;margin:0 0 12px}.bot-native-pa .hint,.bot-native-pa .ta-desc{font-size:12px;color:var(--muted);line-height:1.5}.bot-native-pa .ta-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--stroke)}.bot-native-pa .ta-main{flex:1;min-width:0}.bot-native-pa .ta-name{font-size:18px;font-weight:600}.bot-native-pa .ta-state{font-size:12px}.bot-native-pa .ta-state.on{color:var(--green)}.bot-native-pa .ta-switch{position:relative;display:inline-flex;align-items:center}.bot-native-pa .ta-switch input{width:20px;height:20px;accent-color:#5543bf}.bot-native-pa [data-pa-status]:empty{display:none}
@media(max-width:700px){.bot-native-org{height:640px}.bot-native-org .ai-staff-key{max-height:30%;bottom:72px}}

.bot-native-org [data-org-access]{position:absolute;left:16px;right:16px;top:120px;padding:16px;background:var(--panel-solid);border:1px solid var(--stroke);border-radius:10px;z-index:9;font-size:14px}

/* Regional chart editors leave the host tab navigation reachable. */
.bot-native-org .org-chart-overlay{padding:16px;overflow:auto;box-sizing:border-box}
.bot-native-org .org-chart-overlay>div{max-width:100%;max-height:100%;overflow:auto;box-sizing:border-box}
.bot-native-org .org-chart-overlay[hidden]{display:none!important}

/* Preserve the PA checkbox switch, including keyboard focus and failure state. */
      .bot-native-pa .ta-switch{ position: relative; flex: none; width: 46px; height: 26px; }
      .bot-native-pa .ta-switch input{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
      .bot-native-pa .ta-switch .track{
        position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
        background: var(--panel); border: 1px solid var(--stroke-strong);
        transition: background 0.15s ease, border-color 0.15s ease;
      }
      .bot-native-pa .ta-switch .knob{
        position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
        background: var(--muted); pointer-events: none;
        transition: transform 0.15s ease, background 0.15s ease;
      }
      .bot-native-pa .ta-switch input:checked ~ .track{ background: var(--green); border-color: var(--green); }
      .bot-native-pa .ta-switch input:checked ~ .knob{ transform: translateX(20px); background: var(--on-green); }
      .bot-native-pa .ta-switch input:focus-visible ~ .track{ outline: 2px solid var(--accent); outline-offset: 2px; }
      .bot-native-pa .ta-switch input:disabled{ cursor: progress; }
      .bot-native-pa .ta-switch input:disabled ~ .track,.bot-native-pa .ta-switch input:disabled ~ .knob{ opacity: 0.55; }

.bot-native-pa [data-pa-retry]{font:inherit;font-size:14px;padding:10px 16px;color:var(--text);background:var(--panel-solid);border:1px solid var(--stroke-strong);border-radius:8px;cursor:pointer}.bot-native-pa [data-pa-retry]:hover{background:var(--wash)}.bot-native-pa [data-pa-retry]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.bot-native-pa [data-pa-retry]:disabled{opacity:.6;cursor:wait}
.bot-native-org .invite-note{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%;line-height:1.5}
@media(max-width:720px){.bot-native-org .invite-note{flex-basis:100%;margin-left:0}}
