:root {
    --bg: #07090b;
    --panel: #101419;
    --panel-2: #171d23;
    --text: #edf1f4;
    --muted: #929ca5;
    --line: #28313a;
    --red: #c7222a;
    --red-2: #ef4a52;
    --steel: #c8d0d6;
    --sidebar-width: 460px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-left: var(--sidebar-width);
    overflow-x: hidden;
    background:
        linear-gradient(120deg, rgba(199, 34, 42, .18), transparent 34rem),
        radial-gradient(circle at 80% 0, rgba(190, 204, 214, .13), transparent 22rem),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: #ff7279;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

.theme-colors {
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.theme-colors a {
    color: #f26a72;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 24px;
    width: calc(100vw - var(--sidebar-width));
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(7, 9, 11, .92);
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
}

.workshop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar-width);
    padding: 20px 14px 20px 16px;
    border-right: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(180deg, rgba(18,23,28,.98), rgba(6,8,10,.98)),
        var(--bg);
    box-shadow: 18px 0 55px rgba(0,0,0,.32);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(239,74,82,.62) rgba(255,255,255,.045);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.workshop-sidebar::-webkit-scrollbar {
    width: 11px;
}

.workshop-sidebar::-webkit-scrollbar-track {
    border-left: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.035);
}

.workshop-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid rgba(7,9,11,.96);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239,74,82,.84), rgba(93,104,113,.76));
}

.workshop-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff7d84, #8a9aa4);
}

.ws-brand {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.ws-brand .ws-emblem {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    filter: drop-shadow(0 0 18px rgba(255,255,255,.18));
    object-fit: contain;
}

.ws-brand-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.ws-wordmark {
    display: block;
    width: 140px;
    max-width: 100%;
    filter: drop-shadow(0 2px 0 #000);
}

.ws-inline-spec {
    display: block;
    color: var(--steel);
    font: 800 10px/1.2 Consolas, Monaco, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding-top: 10px;
}

.ws-spec {
    margin: 18px 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
}

.ws-spec span,
.ws-spec small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.ws-spec strong {
    display: block;
    margin: 4px 0;
    color: #fff;
    font: 800 18px/1.1 Arial, sans-serif;
}

.ws-tools {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.ws-tools label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font: 800 10px/1.2 Consolas, Monaco, monospace;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ws-tools input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.22);
    color: #fff;
    padding: 0 10px;
    font: 700 12px Arial, sans-serif;
    outline: 0;
}

.ws-tools input:focus {
    border-color: rgba(239,74,82,.72);
    box-shadow: 0 0 0 3px rgba(199,34,42,.18);
}

.workshop-breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted);
    font: 800 11px/1.35 Consolas, Monaco, monospace;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.workshop-breadcrumbs a {
    color: #dfe6eb;
}

.workshop-breadcrumbs a:hover {
    color: #fff;
}

.workshop-breadcrumbs span {
    color: rgba(255,255,255,.28);
}

.ws-current {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.ws-tree-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.ws-tree-title {
    margin-bottom: 9px;
    color: var(--muted);
    font: 800 10px/1.2 Consolas, Monaco, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ws-tree {
    display: grid;
    gap: 10px;
}

.ws-tree-section {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.025);
}

.ws-tree-section.active {
    border-color: rgba(239,74,82,.45);
    background: rgba(199,34,42,.075);
}

.ws-tree-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 11px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
}

.ws-tree-section h2::before {
    content: '-';
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid rgba(239,74,82,.65);
    color: var(--red-2);
    font: 900 13px/1 Arial, sans-serif;
}

.ws-tree-section h2:hover { background: rgba(199,34,42,.14); }

.ws-tree-section-collapsed h2::before { content: '+'; }

.ws-tree-section-collapsed > ul { display: none; }

.ws-tree ul {
    margin: 0;
    padding: 8px 7px 10px;
}

.ws-tree ul ul {
    margin: 3px 0 4px 12px;
    padding: 0 0 0 12px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.ws-tree li {
    list-style: none;
    list-style-image: none;
    position: relative;
    margin: 2px 0;
    line-height: 1.25;
}

.ws-tree .tree-loading {
    padding: 8px 7px;
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.ws-tree .li-folder,
.ws-tree .li-folder.li-folder-open {
    list-style: none;
    list-style-image: none;
}

.ws-tree a {
    display: flex;
    align-items: center;
    min-height: 24px;
    width: 100%;
    padding: 4px 6px;
    border-radius: 3px;
    color: #d9e1e7;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ws-tree a:hover,
.ws-tree .selected > a,
.ws-tree .selected > a[href] {
    background: rgba(199,34,42,.2);
    color: #fff;
}

.ws-tree li.li-folder > a:not([href]),
.ws-tree li.li-folder > a[href="javascript:void(0)"] {
    color: #fff;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.055);
    font-weight: 850;
    cursor: pointer;
}

.ws-tree li.li-folder > a:not([href]):before,
.ws-tree li.li-folder > a[href="javascript:void(0)"]:before {
    content: "+";
    display: inline-grid;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    place-items: center;
    border: 1px solid rgba(239,74,82,.45);
    background: rgba(199,34,42,.12);
    color: var(--red-2);
    font: 900 11px/1 Arial, sans-serif;
}

.ws-tree li.li-folder.li-folder-open > a:not([href]):before,
.ws-tree li.li-folder.li-folder-open > a[href="javascript:void(0)"]:before {
    content: "-";
}

.ws-tree li:not(.li-folder) > a:before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin: 0 10px 0 5px;
    border-radius: 50%;
    background: rgba(200,208,214,.55);
}

.ws-tree-section > ul > li > a {
    font-size: 12.5px;
    font-weight: 900;
}

.ws-tree .folder-icon {
    display: none;
}

.ws-tree li.search-hidden {
    display: none;
}

.ws-tree li.search-match > a {
    background: rgba(199,34,42,.42);
    outline: 1px solid rgba(239,74,82,.58);
    color: #fff;
}

.ws-current span,
.ws-current b {
    display: block;
}

.ws-current span {
    margin-bottom: 5px;
    font: 800 10px/1.2 Consolas, Monaco, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ws-current b {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.header-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(199,34,42,.38));
}

.branding .tiburon-word {
    width: 176px;
    height: auto;
    filter: drop-shadow(0 2px 0 #000);
}

.branding span {
    color: var(--steel);
    font: 700 11px/1.4 Consolas, Monaco, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.breadcrumbs { display: none; }

.breadcrumb-part {
    color: #dbe3e8;
}

.breadcrumbs b {
    margin: 0 5px;
    color: rgba(255,255,255,.28);
}

.main {
    width: min(1080px, calc(100vw - var(--sidebar-width) - 32px));
    margin: 28px auto 92px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(145deg, rgba(19,24,29,.96), rgba(9,12,15,.96));
    box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.07);
}

.main.main-instructions-only {
    max-width: 980px;
    min-height: 360px;
}

.main-content-frame {
    position: fixed;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: var(--sidebar-width);
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.idle-workspace {
    position: fixed;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: var(--sidebar-width);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 55%, rgba(199,34,42,.09), transparent 45%),
        linear-gradient(135deg, rgba(13,18,23,.96), rgba(5,7,9,.98));
}

.idle-workspace::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('icons/tiburon-idle-outline.png') center / min(94%, 1600px) auto no-repeat;
    filter: invert(1) grayscale(1) contrast(1.3);
    opacity: .13;
}

.idle-workspace::after {
    content: 'TIBURON SERVICE HUB';
    position: absolute;
    right: 5vw;
    bottom: 5vh;
    color: rgba(239,74,82,.32);
    font: 800 11px/1 Consolas, Monaco, monospace;
    letter-spacing: .24em;
}

#main-content-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0d1115;
}

.tiburon-embedded-page,
.tiburon-embedded-page body {
    scrollbar-width: none;
}

.tiburon-embedded-page::-webkit-scrollbar,
.tiburon-embedded-page body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.tiburon-embedded-page body {
    padding-left: 0;
}

.tiburon-embedded-page .header,
.tiburon-embedded-page .footer {
    display: none;
}

.tiburon-embedded-page .main {
    width: min(1080px, calc(100% - 32px));
    margin: 16px auto 40px;
}

.manual-placeholder {
    max-width: 560px;
    margin: 20px 0 0;
    color: #d8e0e6;
    font-size: 17px;
}

.main:before {
    content: "GK SERVICE BAY";
    display: block;
    margin: -6px 0 18px;
    color: var(--red-2);
    font: 800 11px/1 Consolas, Monaco, monospace;
    letter-spacing: .18em;
}

h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(32px, 5vw, 64px);
    font-style: italic;
    line-height: .9;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 #000;
}

h2, h3 {
    color: #fff;
    letter-spacing: -.02em;
}

button {
    margin: 0 8px 18px 0;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, #252c33, #14191e);
    color: #f5f8fa;
    padding: 9px 12px;
    font: 700 12px Arial, sans-serif;
    cursor: pointer;
}

button:hover {
    border-color: rgba(239,74,82,.72);
}

#expand-all,
#collapse-all {
    display: none;
}

ul {
    padding-left: 0;
}

li {
    line-height: 1.5;
    list-style: none;
    list-style-image: none;
    margin: 3px 0;
}

.main > ul {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    padding: 0;
}

.main > ul > li {
    display: block;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(255,255,255,.025);
    box-shadow: inset 0 1px rgba(255,255,255,.055);
}

.main li.search-hidden {
    display: none;
}

.main li.search-match > a {
    background: rgba(199,34,42,.34);
    outline: 1px solid rgba(239,74,82,.5);
    color: #fff;
}

.main > ul > li.li-folder {
    list-style-image: none;
}

.main > ul > li > a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.main ul ul {
    margin: 12px 0 0;
    padding: 0;
}

.main ul ul li {
    position: relative;
    margin: 6px 0;
    padding: 0 0 0 16px;
}

.main ul ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .78em;
    width: 6px;
    height: 1px;
    background: rgba(200,208,214,.42);
}

.main li.li-folder > a:not([href]) {
    color: #f3f6f8;
    font-weight: 800;
}

.main li.li-folder > a:not([href]):before {
    content: "+";
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: var(--red-2);
    font: 900 13px/1 Arial, sans-serif;
    vertical-align: 1px;
}

.main li.li-folder.li-folder-open > a:not([href]):before {
    content: "-";
}

li a {
    display: inline-block;
    padding: 3px 4px;
    border-radius: 4px;
}

li a:hover {
    background: rgba(199,34,42,.18);
}

.folder-icon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    object-fit: contain;
    vertical-align: -4px;
    filter: grayscale(1) brightness(1.5);
}

.li-folder {
    list-style-image: url('icons/folder.svg');
}

.li-folder.li-folder-open {
    list-style-image: url('icons/folder-open.svg');
}

.hidden {
    display: none;
}

.selected {
    background: rgba(199, 34, 42, .28);
    outline: 1px solid rgba(239,74,82,.45);
}

.indent-1 { white-space: pre; tab-size: 2; }
.indent-2 { white-space: pre; tab-size: 4; }
.indent-3 { white-space: pre; tab-size: 6; }
.indent-4 { white-space: pre; tab-size: 8; }
.indent-5 { white-space: pre; tab-size: 10; }
.indent-6 { white-space: pre; tab-size: 12; }
.indent-7 { white-space: pre; tab-size: 14; }
.indent-8 { white-space: pre; tab-size: 16; }
.indent-9 { white-space: pre; tab-size: 18; }
.indent-right-align { white-space: pre; tab-size: 100; }

.oxe-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.oxe-region {
    position: absolute;
    display: block;
    background: rgba(199, 34, 42, .32);
    outline: 1px solid rgba(255,255,255,.35);
}

img {
    max-width: 100%;
    height: auto;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    background: #f8fafb;
    color: #161a1e;
}

td, th {
    border: 1px solid #cbd2d8;
    padding: .45rem;
}

.footer {
    display: none;
}

.hub-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hub-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(145deg, rgba(199,34,42,.18), transparent 60%),
        linear-gradient(180deg, #171d23, #0b0f13);
    color: #fff;
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.hub-card:hover {
    border-color: rgba(239,74,82,.75);
    transform: translateY(-2px);
}

.hub-card span {
    color: var(--red-2);
    font: 900 12px/1 Consolas, Monaco, monospace;
    letter-spacing: .18em;
}

.hub-card b {
    display: block;
    margin: 18px 0 10px;
    font-size: 26px;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
}

.hub-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.footer span {
    color: #fff;
    font-weight: 800;
}

.about-body {
    min-height: 100vh;
    padding: 36px min(6vw, 72px);
    background:
        linear-gradient(120deg, rgba(199,34,42,.18), transparent 35rem),
        var(--bg);
    color: var(--text);
}

.about-h1 {
    margin: 0 0 20px;
    font-size: clamp(44px, 8vw, 94px);
    font-style: italic;
    line-height: .82;
    letter-spacing: -.06em;
}

.about-content {
    max-width: 780px;
    margin: 0;
    color: #d7dde2;
    font-size: 18px;
}

@media only screen and (max-width: 760px) {
    body {
        padding-left: 0;
    }

    .workshop-sidebar {
        position: static;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .header {
        padding: 12px 14px;
        width: auto;
    }

    .main-content-frame,
    .idle-workspace {
        position: relative;
        top: auto !important;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: calc(100dvh - 72px);
    }

    #main-content-frame {
        height: calc(100dvh - 72px);
    }

    .main {
        width: calc(100% - 20px);
        margin-top: 14px;
        padding: 18px;
    }

    h1 {
        font-size: 36px;
    }

    .footer {
        position: static;
        margin: 24px 10px 10px;
    }

    .hub-cards,
    .main > ul {
        grid-template-columns: 1fr;
    }
}
