.orym-structure-shell__toolbar {
    position: relative;
    z-index: 21;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 22px;
}

.orym-structure-shell__tb-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orym-structure-shell__tb-label {
    font-size: var(--fs-data-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-faint);
    white-space: nowrap;
}

.orym-structure-shell__seg {
    display: flex;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    overflow: visible;
}

.orym-structure-shell__seg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 6px 12px;
    border: none;
    background: none;
    color: var(--fg-faint);
    cursor: pointer;
}

.orym-structure-shell__seg-btn svg {
    display: block;
}

.orym-structure-shell__seg-btn--active {
    background: color-mix(in srgb, var(--teal-1) 14%, transparent);
    color: var(--teal-1);
}

.orym-structure-shell__popwrap {
    position: relative;
}

.orym-structure-shell__roles-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: var(--fs-data-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 11px;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    background: var(--bg-panel);
    color: var(--fg-muted);
    cursor: pointer;
}

.orym-structure-shell__roles-btn b {
    color: var(--fg);
    font-weight: 600;
}

.orym-structure-shell__roles-btn:hover,
.orym-structure-shell__roles-btn--on {
    border-color: var(--teal-1);
    color: var(--fg);
}

.orym-structure-shell__pop {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    min-width: 250px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    padding: 6px;
    z-index: 22;
}

.orym-structure-shell__pop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    color: var(--fg);
}

.orym-structure-shell__pop-row:hover {
    background: color-mix(in srgb, var(--teal-1) 8%, transparent);
}

.orym-structure-shell__pop-row input {
    accent-color: var(--teal-1);
    cursor: pointer;
}

.orym-structure-shell__pop-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.orym-structure-shell__pop-sep {
    border-top: 1px solid var(--hairline);
    margin: 5px 4px;
}

.orym-structure-shell__pop-all {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-1);
}

.orym-structure-shell__pop-sec {
    padding: 6px 8px 2px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.orym-structure-shell__pop-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: transparent;
}

.orym-structure-shell__asof {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

.orym-structure-shell__datewrap {
    position: relative;
    display: inline-flex;
}

.orym-structure-shell__dateval {
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 6px 10px;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    background: var(--bg-panel);
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.orym-structure-shell__datewrap:hover .orym-structure-shell__dateval,
.orym-structure-shell__datewrap:focus-within .orym-structure-shell__dateval {
    border-color: var(--teal-1);
    color: var(--fg);
}

.orym-structure-shell__dateval--shift {
    border-color: var(--teal-1);
    color: var(--teal-1);
}

.orym-structure-shell__datenative {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.orym-structure-shell__datenative::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.orym-structure-shell__legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0 0;
}

.orym-structure-shell__legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
}

.orym-structure-shell__legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.orym-structure-shell__legend-dash {
    display: inline-block;
    width: 16px;
    border-top: 1.6px dashed currentColor;
}

.orym-structure-shell__legend-sep {
    width: 1px;
    height: 14px;
    background: var(--hairline);
}

.orym-structure-shell__help {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-1);
    border: 1px solid color-mix(in srgb, var(--teal-1) 45%, transparent);
    border-radius: 9px;
    padding: 3px 11px;
    cursor: default;
}

.orym-structure-shell__help-tip {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 380px;
    max-width: 74vw;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 13px 15px;
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.75;
    color: var(--fg-muted);
    text-transform: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    z-index: 30;
}

.orym-structure-shell__help:hover .orym-structure-shell__help-tip,
.orym-structure-shell__help:focus-within .orym-structure-shell__help-tip {
    opacity: 1;
}

.orym-structure-shell__help-tip b {
    font-weight: 600;
    color: var(--fg);
}

.orym-structure-shell__help-do {
    color: var(--teal-1);
    font-weight: 600;
    font-style: italic;
}

.orym-structure-shell__stage {
    position: relative;
    min-height: 560px;
    margin-top: 12px;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    background: var(--bg-2);
    overflow: hidden;
}

.orym-structure-shell__stage-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.orym-structure-shell__stage-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
}

.orym-structure-shell__canvas-wrap {
    overflow: auto;
    padding: 12px;
}

.orym-structure-shell__canvas {
    display: block;
    min-width: 100%;
}

.orym-structure-shell__edge {
    fill: none;
    stroke: var(--r-shareholder);
    stroke-width: 1.6;
    opacity: 0.9;
}

.orym-structure-shell__edge--rail {
    opacity: 1;
}

.orym-structure-shell__edge--manual {
    stroke-dasharray: 5 4;
}

.orym-structure-shell__open {
    cursor: pointer;
    color: var(--r-shareholder);
}

.orym-structure-shell__open circle {
    fill: var(--bg-panel);
    stroke: currentColor;
    stroke-width: 1.4;
}

.orym-structure-shell__open path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orym-structure-shell__open:focus-visible circle {
    stroke-width: 2.2;
}

.orym-structure-shell__node {
    cursor: pointer;
}

.orym-structure-shell__node-rect {
    fill: var(--bg-panel);
    stroke: var(--fg-faint);
    stroke-opacity: 0.55;
}

.orym-structure-shell__node:hover .orym-structure-shell__node-rect,
.orym-structure-shell__node:focus-visible .orym-structure-shell__node-rect {
    stroke: var(--teal-1);
    stroke-width: 1.6;
}

.orym-structure-shell__node-name {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    fill: var(--fg);
    letter-spacing: 0.03em;
}

.orym-structure-shell__node-sub,
.orym-structure-shell__col-head,
.orym-structure-shell__col-sub {
    font-family: inherit;
    fill: var(--fg-faint);
}

.orym-structure-shell__node-sub {
    font-size: 10px;
}

.orym-structure-shell__col-head {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.orym-structure-shell__col-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
}
