.aetheon-dock-host {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    color: #1f2937;
    background: #eef3f8;
    border: 1px solid #cfd8e3;
}

.aetheon-dock-host--border-none {
    border: 0;
}

.aetheon-dock-host__workspace {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: var(--aetheon-dock-panel-border-width, 1px);
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #cfd8e3;
}

.aetheon-dock-host__middle {
    display: grid;
    grid-row: 3;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: var(--aetheon-dock-panel-border-width, 1px);
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.aetheon-dock-host--has-right .aetheon-dock-host__middle {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto var(--aetheon-dock-side-rail-width, 50px);
}

.aetheon-dock-splitter {
    appearance: none;
    position: relative;
    display: block;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: #f7fafc;
    touch-action: none;
}

.aetheon-dock-splitter__line {
    display: none;
    pointer-events: none;
}

.aetheon-dock-splitter--horizontal {
    width: 100%;
    height: 5px;
    background:
        linear-gradient(
            to bottom,
            transparent calc(50% - 0.5px),
            #94a3b8 calc(50% - 0.5px),
            #94a3b8 calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        ),
        #f7fafc;
    cursor: row-resize !important;
}

.aetheon-dock-splitter--vertical {
    width: 5px;
    height: 100%;
    background:
        linear-gradient(
            to right,
            transparent calc(50% - 0.5px),
            #94a3b8 calc(50% - 0.5px),
            #94a3b8 calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        ),
        #f7fafc;
    cursor: col-resize !important;
}

.aetheon-dock-splitter--top {
    grid-row: 2;
}

.aetheon-dock-splitter--bottom {
    grid-row: 4;
}

.aetheon-dock-splitter--left {
    grid-column: 2;
}

.aetheon-dock-splitter--right {
    grid-column: 4;
}

.aetheon-dock-splitter:hover,
.aetheon-dock-splitter:focus-visible {
    outline: none;
}

.aetheon-dock-splitter--horizontal:hover,
.aetheon-dock-splitter--horizontal:focus-visible,
.aetheon-dock-host--resizing-y .aetheon-dock-splitter--horizontal {
    background:
        linear-gradient(
            to bottom,
            transparent calc(50% - 1.5px),
            #2563eb calc(50% - 1.5px),
            #2563eb calc(50% + 1.5px),
            transparent calc(50% + 1.5px)
        ),
        #f7fafc;
}

.aetheon-dock-splitter--vertical:hover,
.aetheon-dock-splitter--vertical:focus-visible,
.aetheon-dock-host--resizing-x .aetheon-dock-splitter--vertical {
    background:
        linear-gradient(
            to right,
            transparent calc(50% - 1.5px),
            #2563eb calc(50% - 1.5px),
            #2563eb calc(50% + 1.5px),
            transparent calc(50% + 1.5px)
        ),
        #f7fafc;
}

.aetheon-dock-host--resizing-x,
.aetheon-dock-host--resizing-x * {
    cursor: col-resize !important;
    user-select: none;
}

.aetheon-dock-host--resizing-y,
.aetheon-dock-host--resizing-y * {
    cursor: row-resize !important;
    user-select: none;
}

.aetheon-dock-host--resizing-x .aetheon-dock-splitter:focus,
.aetheon-dock-host--resizing-y .aetheon-dock-splitter:focus {
    outline: none;
}

.aetheon-dock-host__documents,
.aetheon-dock-host__region {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f7fafc;
}

.aetheon-dock-host__region {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.aetheon-dock-host__region--top {
    grid-row: 1;
    height: var(--aetheon-dock-top-height, 180px);
}

.aetheon-dock-host__region--bottom {
    grid-row: 5;
    height: var(--aetheon-dock-bottom-height, 190px);
}

.aetheon-dock-host__region--left {
    grid-column: 1;
    width: var(--aetheon-dock-left-width, 280px);
}

.aetheon-dock-host__region--center {
    grid-column: 3;
}

.aetheon-dock-host__region--right {
    grid-column: 5;
    width: var(--aetheon-dock-right-width, 360px);
}

.aetheon-dock-host--right-collapsed .aetheon-dock-splitter--right {
    display: none;
}

.aetheon-dock-host__region--top.aetheon-dock-host__region--empty,
.aetheon-dock-host__region--bottom.aetheon-dock-host__region--empty {
    height: 0;
}

.aetheon-dock-host .aetheon-dock-host__region--left.aetheon-dock-host__region--empty,
.aetheon-dock-host .aetheon-dock-host__region--right.aetheon-dock-host__region--empty,
.aetheon-dock-host.aetheon-dock-host--right-collapsed .aetheon-dock-host__region--right {
    width: 0;
}

.aetheon-dock-side-collapse {
    position: absolute;
    z-index: 8;
    top: 18px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid #c2cad3;
    border-radius: 50%;
    background: #ffffff;
    color: #3f4650;
    box-shadow: 0 1px 2px rgba(31, 35, 40, 0.08);
    cursor: pointer;
}

.aetheon-dock-side-collapse:hover,
.aetheon-dock-side-collapse:focus-visible {
    border-color: #0969da;
    color: #0969da;
    outline: none;
}

.aetheon-dock-side-collapse--right {
    right: calc(var(--aetheon-dock-right-width, 360px) + var(--aetheon-dock-side-rail-width, 50px) + 5px - 15px);
}

.aetheon-dock-host--right-collapsed .aetheon-dock-side-collapse--right {
    right: calc(var(--aetheon-dock-side-rail-width, 50px) - 15px);
}

.aetheon-dock-side-collapse__icon {
    display: inline-grid;
    place-items: center;
    font-family: "Segoe MDL2 Assets";
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.aetheon-dock-side-rail {
    position: relative;
    z-index: 4;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    width: var(--aetheon-dock-side-rail-width, 50px);
    padding: 8px 5px;
    overflow: hidden;
    background: #ffffff;
}

.aetheon-dock-side-rail--right {
    grid-column: 6;
    padding-left: 0;
    padding-right: 7px;
    border-left: 1px solid #d7dde3;
}

.aetheon-dock-side-rail__button {
    display: flex;
    box-sizing: border-box;
    width: 42px;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5561;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: visible;
    text-align: center;
    text-orientation: mixed;
    writing-mode: vertical-rl;
}

.aetheon-dock-side-rail__button:hover,
.aetheon-dock-side-rail__button:focus-visible {
    border-color: #c8d0d8;
    color: #1f2328;
    outline: none;
}

.aetheon-dock-side-rail__button--active {
    border-color: #b6c0ca;
    border-left-color: #2563eb;
    background: #f1f3f5;
    color: #0969da;
    box-shadow: inset 2px 0 0 #2563eb;
}

.aetheon-dock-side-rail__icon,
.aetheon-dock-side-rail__icon-image {
    flex: 0 0 auto;
}

.aetheon-dock-side-rail__icon {
    color: #2563eb;
}

.aetheon-dock-side-rail__icon--glyph {
    display: inline-grid;
    place-items: center;
    font-family: "Segoe MDL2 Assets";
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transform: rotate(90deg);
}

.aetheon-dock-side-rail__icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transform: rotate(90deg);
}

.aetheon-dock-side-rail__title {
    min-width: 0;
}

.aetheon-dock-host__region-stack {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.aetheon-dock-host__region-empty {
    display: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    color: #64748b;
    background: #f9fbfd;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.aetheon-dock-host__region--left.aetheon-dock-host__region--empty .aetheon-dock-host__region-empty,
.aetheon-dock-host__region--right.aetheon-dock-host__region--empty .aetheon-dock-host__region-empty,
.aetheon-dock-host--right-collapsed .aetheon-dock-host__region--right .aetheon-dock-host__region-empty {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.aetheon-dock-host__documents {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.aetheon-dock-host__document-stack {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.aetheon-dock-host__document {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.aetheon-dock-host__document[hidden] {
    display: none;
}

.aetheon-dock-host__document-header,
.aetheon-dock-host__right-header,
.aetheon-dock-host__region-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    color: #111827;
    background: #ffffff;
    border-bottom: var(--aetheon-dock-panel-border-width, 1px) solid #dbe3ed;
    box-sizing: border-box;
    font-size: 0.78rem;
    font-weight: 700;
    position: relative;
}

.aetheon-dock-host__document--global-active .aetheon-dock-host__document-header::before,
.aetheon-dock-host__document--global-active .aetheon-dock-host__right-header::before,
.aetheon-dock-host__document--global-active .aetheon-dock-host__region-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: #2563eb;
}

.aetheon-dock-host__document-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aetheon-dock-host__document-action,
.aetheon-dock-tabs__close {
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #64748b;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.aetheon-dock-host__document-action {
    width: 28px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 4px;
    line-height: 1;
}

.aetheon-dock-host__document-action-icon {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
}

.aetheon-dock-host__document-action-icon::before,
.aetheon-dock-host__document-action-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1px;
    width: 10px;
    height: 1.5px;
    border-radius: 0;
    background: currentColor;
    transform-origin: center;
}

.aetheon-dock-host__document-action-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.aetheon-dock-host__document-action-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

.aetheon-dock-tabs__close {
    width: 24px;
    height: 24px;
    border: 0;
}

.aetheon-dock-host__document-action:hover,
.aetheon-dock-host__document-action:focus-visible {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    outline: none;
}

.aetheon-dock-tabs__close:hover {
    color: #0f172a;
    background: #e8eef5;
}

.aetheon-dock-host__document-content,
.aetheon-dock-host__right-content,
.aetheon-dock-host__region-content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.aetheon-dock-host__region-content {
    box-sizing: border-box;
}

.aetheon-dock-host__empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: #64748b;
    font-size: 0.95rem;
}

.aetheon-dock-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: end;
    gap: 2px;
    min-width: 0;
    min-height: 31px;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    color: #334155;
    background: #ffffff;
    border-top: var(--aetheon-dock-panel-border-width, 1px) solid #cfd8e3;
}

.aetheon-dock-tabs__tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 120px;
    max-width: 260px;
    height: 30px;
    border: var(--aetheon-dock-panel-border-width, 1px) solid #d4dde8;
    border-bottom: 0;
    background: #eef3f8;
}

.aetheon-dock-tabs__tab[draggable="true"] {
    cursor: grab;
}

.aetheon-dock-tabs__tab[draggable="true"]:active {
    cursor: grabbing;
}

.aetheon-dock-tabs__tab--active {
    background: #ffffff;
    border-top-color: #2563eb;
    box-shadow: inset 0 2px 0 #2563eb;
}

.aetheon-dock-tabs__label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.aetheon-dock-tabs__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aetheon-dock-tabs__icon,
.aetheon-dock-tabs__icon-image {
    flex: 0 0 auto;
}

.aetheon-dock-tabs__icon {
    color: #2563eb;
}

.aetheon-dock-tabs__icon--glyph {
    display: inline-grid;
    place-items: center;
    font-family: "Segoe MDL2 Assets";
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.aetheon-dock-tabs__icon-image {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.aetheon-dock-tabs__empty {
    padding: 0 8px;
    color: #64748b;
    font-size: 0.78rem;
}

.aetheon-dock-host__region-header[draggable="true"],
.aetheon-dock-host__document-header[draggable="true"],
.aetheon-dock-host__right-header[draggable="true"] {
    cursor: grab;
}

.aetheon-dock-host__region-header[draggable="true"]:active,
.aetheon-dock-host__document-header[draggable="true"]:active,
.aetheon-dock-host__right-header[draggable="true"]:active {
    cursor: grabbing;
}

.aetheon-dock-edge-target {
    position: absolute;
    z-index: 25;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #9fb3cc;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: copy;
}

.aetheon-dock-edge-target:hover,
.aetheon-dock-edge-target:focus-visible,
.aetheon-dock-edge-target.aetheon-dock-drop-target--hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #1d4ed8;
    outline: none;
}

.aetheon-dock-edge-target--top {
    inset: 8px auto auto 50%;
    transform: translateX(-50%);
}

.aetheon-dock-edge-target--bottom {
    inset: auto auto 8px 50%;
    transform: translateX(-50%);
}

.aetheon-dock-edge-target--left {
    inset: 50% auto auto 8px;
    transform: translateY(-50%);
}

.aetheon-dock-edge-target--right {
    inset: 50% 8px auto auto;
    transform: translateY(-50%);
}

.aetheon-dock-compass {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 30;
    display: grid;
    grid-template-columns: 42px 42px 42px;
    grid-template-rows: 42px 42px 42px;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.aetheon-dock-compass__target {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #9fb3cc;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: copy;
    pointer-events: auto;
}

.aetheon-dock-compass__target:hover,
.aetheon-dock-compass__target:focus-visible,
.aetheon-dock-compass__target.aetheon-dock-drop-target--hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #1d4ed8;
    outline: none;
}

.aetheon-dock-compass__target--top {
    grid-column: 2;
    grid-row: 1;
}

.aetheon-dock-compass__target--left {
    grid-column: 1;
    grid-row: 2;
}

.aetheon-dock-compass__target--center {
    grid-column: 2;
    grid-row: 2;
}

.aetheon-dock-compass__target--right {
    grid-column: 3;
    grid-row: 2;
}

.aetheon-dock-compass__target--bottom {
    grid-column: 2;
    grid-row: 3;
}

@media (max-width: 900px) {
    .aetheon-dock-host__workspace {
        grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    }

    .aetheon-dock-host__middle {
        grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    }

    .aetheon-dock-host--has-right .aetheon-dock-host__middle {
        grid-template-columns: auto auto minmax(0, 1fr) auto auto var(--aetheon-dock-side-rail-width, 50px);
    }

    .aetheon-dock-host__region--top {
        height: var(--aetheon-dock-top-height, 180px);
    }

    .aetheon-dock-host__region--bottom {
        height: var(--aetheon-dock-bottom-height, 190px);
    }

    .aetheon-dock-host__region--left {
        width: var(--aetheon-dock-left-width, 280px);
    }

    .aetheon-dock-host__region--right {
        width: var(--aetheon-dock-right-width, 360px);
    }

    .aetheon-dock-host__region--top.aetheon-dock-host__region--empty,
    .aetheon-dock-host__region--bottom.aetheon-dock-host__region--empty {
        height: 0;
    }

    .aetheon-dock-host__region--left.aetheon-dock-host__region--empty,
    .aetheon-dock-host__region--right.aetheon-dock-host__region--empty {
        width: 0;
    }
}


