.chrono-professions-shell,
.chrono-professions-shell * {
    box-sizing: border-box;
}

.chrono-professions-shell {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 122px 0 72px;
    color: #d4d4d8;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.chrono-prof-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: #52525b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.chrono-prof-breadcrumb a {
    color: #71717a;
    text-decoration: none !important;
    transition: color .2s ease;
}

.chrono-prof-breadcrumb a:hover,
.chrono-prof-breadcrumb strong {
    color: #f59e0b;
}

.chrono-prof-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 190px;
    margin-bottom: 26px;
    padding: 34px 38px;
    border: 1px solid rgba(245, 158, 11, .20);
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, .13), transparent 32%),
        linear-gradient(145deg, rgba(24, 24, 27, .97), rgba(9, 9, 11, .97));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.chrono-prof-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(245, 158, 11, .08);
    border-radius: 50%;
}

.chrono-prof-kicker {
    display: block;
    margin-bottom: 7px;
    color: #f59e0b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.chrono-prof-hero h1,
.prof-right h1,
.skill-title {
    margin: 0;
    color: #fafafa;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    letter-spacing: .025em;
}

.chrono-prof-hero h1 {
    font-size: clamp(27px, 4vw, 46px);
}

.chrono-prof-hero p {
    max-width: 760px;
    margin: 13px 0 0;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.75;
}

.chrono-prof-hero-mark {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    color: rgba(245, 158, 11, .82);
    font-size: 78px;
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, .22));
}

.prof-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.prof-box,
.prof-wrapper,
.prof-tabs,
.skill-desc-box,
.skill-meta-box,
.skill-related-box,
.skill-available-box {
    border: 1px solid rgba(255, 255, 255, .075);
    background: linear-gradient(150deg, rgba(18, 18, 22, .97), rgba(10, 10, 13, .97));
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.prof-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.prof-box:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, .25);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .32);
}

.prof-header {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(245, 158, 11, .16);
    background: linear-gradient(90deg, #261b0e 0%, #17130e 45%, #111113 100%);
    color: #fbbf24;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prof-content,
.prof-tree-scroll {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 18px;
    background: #ffffff;
}

.prof-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 104px;
}

.prof-tree-scroll::-webkit-scrollbar,
.skill-related-scroll::-webkit-scrollbar,
.prof-exp-table-wrap::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.prof-tree-scroll::-webkit-scrollbar-track,
.skill-related-scroll::-webkit-scrollbar-track,
.prof-exp-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
}

.prof-tree-scroll::-webkit-scrollbar-thumb,
.skill-related-scroll::-webkit-scrollbar-thumb,
.prof-exp-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(245, 158, 11, .30);
}

.prof-link,
.prof-tree-job {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none !important;
}

.prof-img,
.job_line img,
.prof-jobline img {
    width: auto;
    height: auto;
    max-width: none;
    image-rendering: pixelated;
    filter: none;
    box-shadow: none;
    transition: transform .16s ease;
}

.prof-img:hover,
.job_line a:hover img,
.prof-jobline a:hover img {
    transform: translateY(-3px) scale(1.08);
    filter: none;
    box-shadow: none;
}

.job_line {
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
}

.job_line td {
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle !important;
    white-space: nowrap;
}

.prof-arrow,
.prof-arrow-diag {
    color: rgba(245, 158, 11, .70);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(245, 158, 11, .18);
}

.prof-arrow {
    display: inline-block;
    margin: 0 3px;
    font-size: 18px;
}

.prof-arrow-diag {
    display: block;
    margin: 3px 0;
    font-size: 16px;
    line-height: 1.1;
}

.prof-img-missing {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 1px dashed rgba(24, 24, 27, .20);
    border-radius: 5px;
}

.prof-wrapper {
    display: grid;
    grid-template-columns: minmax(270px, 390px) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 18px;
}

.prof-left {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background: #ffffff;
}

.prof-left::after {
    content: '';
    position: absolute;
    inset: 0;
    display: none;
    background: none;
    pointer-events: none;
}

.prof-left img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: contain;
    object-position: top center;
    background: #ffffff;
    transition: transform .45s ease;
}

.prof-wrapper:hover .prof-left img {
    transform: scale(1.025);
}

.prof-right {
    padding: 34px 34px 30px;
}

.prof-right h1 {
    font-size: clamp(26px, 3.5vw, 40px);
}

.prof-right > p {
    margin: 16px 0 26px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.78;
}

.prof-right h4,
.skill-meta-box h4,
.skill-related-box h4,
.skill-available-box h4 {
    margin: 0;
    color: #f5f5f5;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.prof-tree-panel {
    margin-top: 12px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: 12px;
    background: #ffffff;
}

.prof-tree-panel .prof-tree-scroll,
.prof-tree-panel .job_line,
.prof-tree-panel .prof-jobline,
.prof-tree-panel table,
.prof-tree-panel tbody,
.prof-tree-panel tr,
.prof-tree-panel td {
    background: #ffffff !important;
}

.prof-tree-panel.prof-tree-scroll {
    padding: 14px;
}

.prof-tree-panel .prof-img,
.prof-tree-panel .job_line img,
.prof-tree-panel .prof-jobline img,
.prof-tree-panel a:hover img {
    filter: none !important;
    box-shadow: none !important;
}

.prof-tree-panel .prof-arrow,
.prof-tree-panel .prof-arrow-diag {
    color: #d97706;
    text-shadow: none;
}

.prof-tree-panel.prof-tree-scroll::-webkit-scrollbar-track {
    background: #f4f4f5;
}

.prof-tree-panel.prof-tree-scroll::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 6, .62);
}

.prof-tabs {
    overflow: hidden;
    border-radius: 18px;
}

.prof-tabbuttons {
    display: flex;
    gap: 7px;
    padding: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(0, 0, 0, .20);
}

.prof-tabbuttons button {
    appearance: none;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #71717a;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s ease;
}

.prof-tabbuttons button:hover {
    color: #e4e4e7;
    background: rgba(255, 255, 255, .035);
}

.prof-tabbuttons button.active {
    border-color: rgba(245, 158, 11, .30);
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #09090b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, .12);
}

.prof-tabcontent {
    padding: 24px;
}

.prof-skillgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-flow: row;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
}

.prof-skillcol {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.prof-skillgrid-flat {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    overflow: visible;
}

.prof-skillitem {
    min-width: 0;
}

.prof-skilllink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 9px;
    background: rgba(255, 255, 255, .022);
    color: #d4d4d8 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    transition: all .18s ease;
}

.prof-skilllink:hover {
    border-color: rgba(245, 158, 11, .28);
    background: rgba(245, 158, 11, .065);
    color: #fbbf24 !important;
    transform: translateX(2px);
}

.prof-skilllink img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.prof-skilllink span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prof-expwrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.prof-exp-table-wrap {
    max-height: 620px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(0, 0, 0, .18);
}

.prof-exp-table-wrap h3 {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(245, 158, 11, .16);
    background: #141416;
    color: #fbbf24;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prof-exptable {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.prof-exptable th,
.prof-exptable td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.prof-exptable th {
    position: sticky;
    top: 43px;
    z-index: 2;
    background: #101013;
    color: #71717a;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prof-exptable th:first-child,
.prof-exptable td:first-child {
    width: 32%;
    text-align: center;
}

.prof-exptable th:last-child,
.prof-exptable td:last-child {
    text-align: right;
}

.prof-exptable tbody tr:hover td {
    background: rgba(245, 158, 11, .035);
    color: #fef3c7;
}

.skill-back {
    margin-bottom: 14px;
}

.skill-back a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, .20);
    border-radius: 8px;
    background: rgba(245, 158, 11, .045);
    color: #f59e0b !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.skill-page {
    display: grid;
    gap: 20px;
}

.skill-desc-box,
.skill-meta-box,
.skill-related-box,
.skill-available-box {
    border-radius: 16px;
    padding: 25px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.skill-icon-frame {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 12px;
    background: radial-gradient(circle, rgba(245, 158, 11, .13), rgba(0, 0, 0, .35));
    box-shadow: inset 0 0 18px rgba(245, 158, 11, .06);
}

.skill-icon {
    width: auto;
    height: auto;
    max-width: 40px;
    max-height: 40px;
    image-rendering: pixelated;
}

.skill-title {
    font-size: clamp(23px, 3vw, 34px);
}

.skill-code {
    margin-top: 5px;
    color: #52525b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.skill-description {
    padding-top: 20px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.78;
}

.skill-description .prof-skill-copy,
.skill-tooltip-desc .prof-skill-copy {
    color: #ffffff;
}

.skill-description [style*="color:#000000"],
.skill-description [style*="color: #000000"],
.skill-tooltip-desc [style*="color:#000000"],
.skill-tooltip-desc [style*="color: #000000"] {
    color: #ffffff !important;
}

.skill-meta-container,
.skill-related,
.skill-available {
    min-width: 0;
}

.skill-meta-box h4 {
    margin-bottom: 15px;
}

.skill-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: 12px;
}

.skill-meta-row strong {
    color: #a1a1aa;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.skill-meta-row span {
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
}

.skill-sp-box {
    overflow-x: auto;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 10px;
}

.skill-sp-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    color: #d4d4d8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-align: center;
}

.skill-sp-table th,
.skill-sp-table td {
    padding: 9px;
    border-right: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.skill-sp-table th {
    background: rgba(245, 158, 11, .075);
    color: #fbbf24;
}

.skill-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.skill-count {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: 99px;
    background: rgba(245, 158, 11, .07);
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 900;
}

.skill-related-scroll {
    max-height: 430px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
}

.skill-related-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
    font-size: 12px;
}

.skill-related-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(245, 158, 11, .14);
    background: #121215;
    color: #71717a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
}

.skill-related-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    color: #a1a1aa;
    vertical-align: middle;
}

.skill-related-table tbody tr:hover td {
    background: rgba(245, 158, 11, .032);
}

.skill-related-item,
.monster-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e4e4e7 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.skill-related-item:hover,
.monster-tooltip:hover {
    color: #fbbf24 !important;
}

.skill-related-item img,
.monster-list-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    image-rendering: pixelated;
}

.skill-related-item span,
.monster-tooltip span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.skill-related-item small,
.monster-tooltip small {
    color: #52525b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
}

.prof-jobline {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.prof-jobline a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 84px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    color: #a1a1aa !important;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: all .2s ease;
}

.prof-jobline a:hover {
    border-color: rgba(245, 158, 11, .24);
    background: rgba(245, 158, 11, .05);
    color: #fbbf24 !important;
}

.chrono-prof-empty {
    padding: 28px;
    border: 1px dashed rgba(245, 158, 11, .20);
    border-radius: 12px;
    background: rgba(245, 158, 11, .035);
    color: #a1a1aa;
    text-align: center;
}

.tooltip.tooltip-job .tooltip-inner,
.tooltip.tooltip-skill .tooltip-inner,
.tooltip.tooltip-item .tooltip-inner {
    border: 1px solid rgba(245, 158, 11, .22);
    border-radius: 10px;
    background: #111114;
    color: #d4d4d8;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .48);
}

.tooltip.tooltip-job .tooltip-inner {
    padding: 6px 10px;
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
}

.tooltip.tooltip-skill .tooltip-inner,
.tooltip.tooltip-item .tooltip-inner {
    padding: 0;
    text-align: left;
}

.tooltip.tooltip-skill .tooltip-inner {
    width: 340px;
    max-width: min(340px, calc(100vw - 28px));
}

.tooltip.tooltip-item .tooltip-inner {
    width: 420px;
    max-width: min(420px, calc(100vw - 28px));
}

.skill-tooltip-box,
.item-tooltip-box {
    overflow: hidden;
    border-radius: 9px;
    font-size: 12px;
}

.skill-tooltip-box {
    padding: 14px;
}

.skill-tooltip-box > img {
    float: left;
    margin: 0 10px 6px 0;
    image-rendering: pixelated;
}

.skill-tooltip-title {
    color: #fbbf24;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
}

.skill-tooltip-desc {
    clear: both;
    margin-top: 11px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
}

.item-tooltip-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(245, 158, 11, .13);
    background: rgba(245, 158, 11, .06);
    color: #fbbf24;
}

.item-tooltip-header img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.item-tooltip-body {
    max-height: none;
    overflow: visible;
    padding: 11px 12px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.55;
}

.tooltip {
    z-index: 10050 !important;
    pointer-events: none;
}

@media (max-width: 1120px) {
    .prof-index-grid {
        grid-template-columns: 1fr;
    }

    .prof-skillgrid-flat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .chrono-professions-shell {
        width: min(100% - 22px, 1320px);
        padding-top: 104px;
    }

    .chrono-prof-hero {
        min-height: 0;
        padding: 26px 22px;
    }

    .chrono-prof-hero-mark {
        display: none;
    }

    .prof-wrapper {
        grid-template-columns: 1fr;
    }

    .prof-left,
    .prof-left img {
        min-height: 300px;
        max-height: 390px;
    }

    .prof-right {
        padding: 26px 22px;
    }

    .prof-expwrap {
        grid-template-columns: 1fr;
    }

    .prof-tabcontent,
    .skill-desc-box,
    .skill-meta-box,
    .skill-related-box,
    .skill-available-box {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .chrono-professions-shell {
        width: min(100% - 14px, 1320px);
    }

    .chrono-prof-hero {
        border-radius: 13px;
        padding: 22px 17px;
    }

    .chrono-prof-hero p {
        font-size: 12px;
    }

    .prof-box,
    .prof-wrapper,
    .prof-tabs,
    .skill-desc-box,
    .skill-meta-box,
    .skill-related-box,
    .skill-available-box {
        border-radius: 12px;
    }

    .prof-content,
    .prof-tree-scroll {
        justify-content: flex-start;
        padding: 16px 12px;
    }

    .prof-tabbuttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .prof-tabbuttons button {
        padding: 9px 8px;
        font-size: 9px;
    }

    .prof-skillgrid-flat {
        grid-template-columns: 1fr;
    }

    .skill-header {
        align-items: flex-start;
    }

    .skill-section-heading {
        align-items: flex-start;
    }

    .prof-jobline a {
        min-width: 72px;
    }
}
