@font-face {
    font-family: "RuneScape Plain 12";
    src: url("/static/fonts/runescape-fonts/otf/RuneScape-Plain-12.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --app-height: 100dvh;
    --bg-main: #0d1117;
    --bg-panel: rgba(20, 25, 35, 0.95);
    --bg-panel-soft: rgba(28, 34, 46, 0.84);
    --border-glow: rgba(111, 140, 176, 0.2);
    --accent: #4f7fd3;
    --accent-strong: #6c95e8;
    --text-main: #e2e8f3;
    --text-muted: #94a0b3;
    --shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--app-height);
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(86, 168, 255, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(76, 201, 240, 0.08), transparent 24%),
        linear-gradient(180deg, #070b10 0%, #0d131c 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.app-icon {
    width: 1em;
    height: 1em;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--app-height);
}

.mobile-shell-bar {
    display: none;
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.brand-mark-button {
    width: 42px;
    height: 42px;
}

.mobile-shell-title {
    min-width: 0;
}

.mobile-shell-arrow {
    position: absolute;
    left: 50%;
    bottom: -0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -0.75rem;
    border-radius: 999px;
    color: rgba(220, 231, 247, 0.86);
    background: rgba(10, 16, 24, 0.94);
    border: 1px solid rgba(111, 140, 176, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
    transition: transform 0.24s ease;
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 7, 12, 0.58);
    backdrop-filter: blur(8px);
}

.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar.panel {
    border-radius: 0;
}

.content-area {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.content-area > * {
    min-width: 0;
}

.content-area-todos {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.content-area:has(.journey-workspace) {
    padding-top: 1.25rem;
}

.panel {
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.95), rgba(15, 20, 29, 0.97));
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    min-width: 0;
}

.compact-card {
    padding: 1rem;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #06111f;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: #0d131c;
    border: 1px solid rgba(108, 149, 232, 0.22);
    box-shadow: 0 0 28px rgba(108, 149, 232, 0.12);
}

.brand-mark svg {
    width: 34px;
    height: 34px;
    fill: none;
}

.sidebar-title {
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-word-grind {
    color: #d9b15f;
}

.brand-word-graph {
    color: #6c95e8;
}

.sidebar-subtitle,
.text-secondary,
.metric-label,
.footer-label,
.eyebrow,
.subheading {
    color: var(--text-muted) !important;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: var(--text-main);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.sidebar nav .nav-link + .nav-link::before {
    content: "";
    position: absolute;
    top: -0.4rem;
    left: 0.9rem;
    right: 0.9rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d8e5ff;
    background: transparent;
    border: 0;
}

.nav-icon-image {
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    padding: 0;
    background: transparent;
    border: 0;
}

.nav-icon-composite {
    position: relative;
    overflow: visible;
}

.nav-icon-base {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}

.nav-label {
    flex: 1 1 auto;
}

.nav-count-badge {
    min-width: 24px;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    text-align: center;
    color: #edf3ff;
    background: rgba(79, 127, 211, 0.18);
    border: 1px solid rgba(108, 149, 232, 0.18);
    font-size: 0.76rem;
    line-height: 1.2;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.12);
    border-color: rgba(76, 201, 240, 0.28);
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-undo-toolbar {
    position: sticky;
    top: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 28px;
}

.history-icon-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--text-muted);
    background: transparent;
}

.history-icon-button:hover {
    color: #ffffff;
}

.history-icon-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.notification-bell-button {
    position: relative;
}

.notification-bell-button-active {
    color: #ffffff;
}

.notification-bell-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(13, 17, 23, 0.96);
}

.target-cart-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(93, 110, 138, 0.22);
    border-radius: 12px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(30, 37, 50, 0.96), rgba(21, 26, 35, 0.97));
}

.target-cart-count {
    min-width: 28px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-align: center;
    color: #edf3ff;
    background: rgba(79, 127, 211, 0.18);
}

.page-header {
    padding: 1rem 1.2rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #dff8ff;
    font-size: 0.82rem;
    background: rgba(76, 201, 240, 0.12);
    border: 1px solid rgba(76, 201, 240, 0.24);
}

.blocked-chip {
    color: #ffd7d1;
    background: rgba(255, 138, 128, 0.12);
    border-color: rgba(255, 138, 128, 0.28);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.dashboard-grid {
    align-items: start;
}

.dashboard-hero-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(720px, 1.45fr);
    gap: 1.25rem;
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-hero-charts {
    min-width: 0;
}

.dashboard-metric-row {
    width: 100%;
    display: block;
}

.dashboard-cape-card {
    background: transparent;
    border: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.dashboard-cape-progress {
    width: 100%;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(19, 25, 35, 0.98), rgba(13, 18, 26, 1));
    border: 1px solid rgba(93, 112, 145, 0.2);
}

.dashboard-cape-progress-fill {
    height: 100%;
    min-width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.7rem;
    color: #f4f8ff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(90deg, rgba(86, 149, 255, 0.96), rgba(74, 124, 230, 0.94));
}

.planner-layout {
    grid-template-columns: 320px minmax(0, 1fr);
}

.unlocks-layout {
    grid-template-columns: 1fr;
}

.codex-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-layout {
    grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr) minmax(320px, 1fr);
    align-items: stretch;
    grid-auto-rows: minmax(0, auto);
}

.profile-quest-status-card {
    min-height: 0;
}

.profile-stats-card,
.profile-model-card,
.profile-quest-status-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    height: min(100%, calc(var(--app-height) - 12.5rem));
}

.profile-stats-card .osrs-stats-panel,
.profile-quest-status-card .quest-status-list,
.profile-model-card .profile-model-viewer {
    flex: 1 1 auto;
}

.profile-top-tabs {
    margin-bottom: 0.35rem;
}

.profile-tab-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: pixelated;
}

.quest-status-toolbar {
    align-items: center;
    flex-wrap: wrap;
}

.quest-status-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-model-viewer {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(108, 149, 232, 0.18), transparent 34%),
        radial-gradient(circle at 50% 78%, rgba(217, 177, 95, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(17, 22, 31, 0.98), rgba(10, 14, 20, 1));
    border: 1px solid rgba(96, 108, 128, 0.22);
}

.profile-model-viewer::after {
    content: "";
    position: absolute;
    inset: auto 12% 1.1rem;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42), transparent 72%);
    pointer-events: none;
}

.profile-model-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-model-loading,
.profile-model-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(11, 16, 23, 0.44), rgba(11, 16, 23, 0.18));
}

.profile-model-error {
    color: #ffd1d1;
}

.profile-model-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(108, 149, 232, 0.18);
    border-top-color: rgba(108, 149, 232, 0.9);
    animation: gg-spin 0.9s linear infinite;
}

.hero-card {
    min-height: 0;
}

.dashboard-cart-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    color: #deecff;
    background: rgba(79, 127, 211, 0.16);
    border: 1px solid rgba(108, 149, 232, 0.2);
    font-size: 0.82rem;
}

.dashboard-cart-chip iconify-icon {
    font-size: 15px;
}

.hero-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-hero-copy .d-flex.justify-content-between.align-items-start.gap-3 {
    min-width: 0;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.metric-card,
.list-card {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: var(--bg-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-soft {
    background: linear-gradient(180deg, rgba(30, 37, 50, 0.84), rgba(21, 26, 35, 0.9));
    border: 1px solid rgba(111, 140, 176, 0.12);
}

.minimal-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.compact-inline-card {
    padding: 0.45rem 0.65rem;
    font-size: 0.86rem;
}

.muted-card {
    color: var(--text-muted);
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.quest-status-list {
    max-height: none;
    overflow-y: auto;
}

.quest-status-entry {
    display: block;
}

.quest-status-entry-completed {
    border-left: 3px solid rgba(102, 227, 166, 0.8);
}

.quest-status-entry-uncompleted {
    border-left: 3px solid rgba(76, 201, 240, 0.8);
}

.quest-status-entry-blocked {
    border-left: 3px solid rgba(255, 138, 128, 0.8);
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 0.9rem;
}

.entity-grid-dense {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.entity-tabs {
    gap: 0.55rem;
    flex-wrap: wrap;
}

.entity-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(28, 35, 49, 0.84), rgba(18, 24, 34, 0.9));
    border: 1px solid rgba(111, 140, 176, 0.14);
}

.entity-tabs .nav-link.active {
    background: linear-gradient(180deg, rgba(58, 82, 133, 0.94), rgba(39, 58, 101, 0.98));
}

.entity-tabs-collection {
    gap: 0.3rem;
    border-bottom: 1px solid rgba(111, 140, 176, 0.16);
}

.entity-tabs-collection .nav-link {
    min-height: 42px;
    padding: 0.72rem 1rem 0.68rem;
    border-radius: 14px 14px 0 0;
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(23, 29, 40, 0.86), rgba(17, 22, 31, 0.94));
}

.entity-tabs-collection .nav-link.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(46, 63, 97, 0.96), rgba(28, 40, 67, 0.98));
    border-color: rgba(108, 149, 232, 0.26);
    border-bottom-color: rgba(14, 19, 27, 1);
    transform: translateY(1px);
}

.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.collection-search-row {
    flex: 1 1 320px;
    max-width: none;
}

.collection-filter-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.collection-filter-select {
    min-width: 180px;
    color-scheme: dark;
}

.collection-filter-select option,
.form-select option {
    color: var(--text-main);
    background: #141c28;
}

.collection-filter-select option:checked,
.form-select option:checked {
    color: #ffffff;
    background: #29405f;
}

.entity-tab-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.1rem;
    line-height: 1.1;
    text-align: center;
}

.collection-tab-icon-wrap {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.collection-tab-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.combat-workspace {
    padding: 1rem;
    overflow: visible;
}

.combat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0.2rem 0.9rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(111, 140, 176, 0.14);
}

.combat-workspace-embedded {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.combat-header-title {
    margin: 0;
    color: #f0b15f;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
}

.combat-top-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.combat-top-tab {
    min-width: 104px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(111, 140, 176, 0.18);
    border-radius: 12px 12px 0 0;
    color: var(--text-main);
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(30, 36, 48, 0.96), rgba(21, 26, 35, 0.96));
}

.combat-top-tab.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(51, 78, 131, 0.96), rgba(31, 49, 86, 0.98));
    border-color: rgba(108, 149, 232, 0.26);
}

.combat-log-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.combat-log-sidebar,
.combat-log-panel {
    min-width: 0;
}

.combat-log-category-link {
    text-decoration: none;
}

.combat-log-category-link.is-active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(51, 78, 131, 0.72), rgba(31, 49, 86, 0.82));
}

.combat-banner {
    margin: 1rem 0 1.1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    color: #effff4;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(37, 174, 79, 0.98), rgba(16, 122, 49, 0.98));
    border: 1px solid rgba(119, 241, 159, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.combat-overview-grid,
.combat-task-layout,
.combat-rewards-layout {
    display: grid;
    gap: 1rem;
}

.combat-overview-grid {
    grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.2fr);
}

.combat-task-layout,
.combat-rewards-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
}

.combat-panel-frame {
    min-height: 0;
    padding: 0.9rem;
    border: 1px solid rgba(111, 140, 176, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(31, 36, 46, 0.98), rgba(22, 27, 36, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.combat-section-title {
    margin: 0 0 0.9rem;
    color: #f0b15f;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.combat-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.combat-tier-card,
.combat-boss-card {
    padding: 0.85rem;
    border: 1px solid rgba(111, 140, 176, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(49, 43, 37, 0.18), rgba(26, 28, 35, 0.92));
}

.combat-tier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.combat-tier-name,
.combat-boss-name {
    color: #f0b15f;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.05;
    text-align: center;
}

.combat-tier-icon {
    color: #dfeaff;
    font-size: 1.35rem;
}

.combat-tier-count,
.combat-boss-count {
    color: #f8f26f;
    font-size: 1.15rem;
}

.combat-tier-progress {
    width: 100%;
    height: 14px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(9, 11, 16, 0.72);
    border: 1px solid rgba(94, 102, 116, 0.44);
}

.combat-tier-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c8cb28, #f3e61b);
}

.combat-profile-list {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(111, 140, 176, 0.14);
    border-radius: 10px;
    overflow: hidden;
}

.combat-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.02);
}

.combat-profile-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

.combat-profile-row strong {
    color: #dce8ff;
    font-weight: 600;
    text-align: right;
}

.combat-filter-rail .stack-list {
    gap: 0.9rem;
}

.combat-filter-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #f0b15f;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.15rem;
}

.combat-task-list-frame {
    min-height: 420px;
    max-height: 70vh;
    overflow: auto;
}

.combat-task-list {
    display: flex;
    flex-direction: column;
}

.combat-task-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.combat-task-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.combat-task-row:hover {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.08);
}

.combat-task-row.is-completed {
    opacity: 0.72;
}

.combat-task-tier,
.combat-reward-tier-icon {
    width: 16px;
    height: 34px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #8f6337, #5c3f24);
}

.combat-tier-easy {
    background: linear-gradient(180deg, #9a6b42, #734b2a);
}

.combat-tier-medium {
    background: linear-gradient(180deg, #c6c6cf, #8f95a7);
}

.combat-tier-hard {
    background: linear-gradient(180deg, #4f5668, #262c38);
}

.combat-tier-elite {
    background: linear-gradient(180deg, #71b4da, #33749d);
}

.combat-tier-master {
    background: linear-gradient(180deg, #bd4a47, #7a2220);
}

.combat-tier-grandmaster {
    background: linear-gradient(180deg, #8890c8, #4b4f80);
}

.combat-task-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.combat-task-copy strong {
    color: inherit;
    font-size: 1.15rem;
    font-weight: 600;
}

.combat-task-copy span:last-child,
.combat-boss-subtitle {
    color: #f0b15f;
    font-size: 0.98rem;
}

.combat-bosses-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.combat-boss-search {
    max-width: 520px;
}

.combat-boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    max-height: 70vh;
    overflow: auto;
}

.combat-boss-card {
    text-decoration: none;
    color: var(--text-main);
}

.combat-boss-card:hover {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(55, 64, 84, 0.92), rgba(25, 30, 41, 0.96));
}

.combat-reward-tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.combat-reward-tier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(111, 140, 176, 0.18);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}

.combat-reward-tier.active,
.combat-reward-tier:hover {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.08);
}

.combat-reward-list {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(111, 140, 176, 0.14);
    border-radius: 10px;
    overflow: hidden;
}

.combat-reward-row {
    padding: 0.85rem 1rem;
    color: #f0b15f;
    font-size: 1.12rem;
    background: rgba(255, 255, 255, 0.03);
}

.combat-reward-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

.combat-empty-state {
    padding: 1rem;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .combat-overview-grid,
    .combat-task-layout,
    .combat-rewards-layout {
        grid-template-columns: 1fr;
    }

    .combat-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.entity-search-row {
    max-width: 360px;
}

.entity-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.entity-tile-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-height: 124px;
    padding: 0.7rem 0.5rem 0.7rem;
    border: 0;
    color: var(--text-main);
    background: transparent;
    text-align: center;
}

.entity-tile-plain {
    background: transparent;
    border: 0;
}

.entity-icon-wrap,
.entity-modal-icon-wrap {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(79, 127, 211, 0.14), rgba(17, 21, 28, 0.96));
    border: 1px solid rgba(111, 140, 176, 0.18);
}

.entity-icon-wrap-plain {
    background: rgba(18, 22, 31, 0.96);
    border: 1px solid rgba(90, 106, 132, 0.16);
}

.entity-obtained-mark {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #d7eef8;
    background: linear-gradient(180deg, rgba(60, 129, 107, 0.94), rgba(37, 90, 74, 0.98));
    border: 1px solid rgba(184, 235, 213, 0.24);
    border-radius: 999px;
}

.entity-modal-icon-wrap {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
}

.entity-icon,
.entity-modal-icon {
    max-width: 42px;
    max-height: 42px;
    image-rendering: auto;
}

.entity-modal-icon {
    max-width: 54px;
    max-height: 54px;
}

.entity-fallback-icon {
    font-size: 30px;
    color: #dce6fa;
}

.entity-name {
    width: 100%;
    font-size: 0.74rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entity-tile-cart {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
}

.entity-tile-cart-dropdown {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
}

.collection-variant-menu {
    min-width: 210px;
    padding: 0.3rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.98), rgba(15, 20, 29, 0.99));
    border: 1px solid rgba(111, 140, 176, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.collection-variant-option {
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.84rem;
}

.collection-variant-option:hover,
.collection-variant-option.active {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.12);
}

.entity-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.chart-wrap {
    position: relative;
    min-height: 240px;
}

.chart-wrap-short {
    min-height: 260px;
    height: 260px;
}

.journey-workspace {
    position: relative;
    height: calc(100vh - 2.5rem);
    min-height: calc(100vh - 2.5rem);
    padding: 0;
    overflow: hidden;
}

.journey-floating {
    position: absolute;
    z-index: 6;
    width: auto;
    padding: 0.95rem;
    border-radius: 16px;
    background: rgba(14, 21, 34, 0.94);
    border: 1px solid rgba(76, 201, 240, 0.18);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.journey-planner-panel {
    right: 1rem;
    bottom: 1rem;
    width: 440px;
}

.journey-search-hud {
    position: absolute;
    right: 0.9rem;
    bottom: 4.1rem;
    z-index: 9;
    width: auto;
    max-width: calc(100vw - 1.8rem);
}

.journey-control-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.journey-control-shell {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.journey-icon-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(14, 21, 34, 0.94);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.journey-control-panel {
    min-width: 0;
    position: absolute;
    top: 50%;
    right: calc(100% + 0.65rem);
    width: min(320px, calc(100vw - 5.75rem));
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.journey-control-open .journey-control-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.journey-zoom-panel {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.55rem;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
}

.journey-target-form {
    display: block;
}

.journey-selected-quest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    max-width: min(260px, calc(100vw - 1.8rem));
    margin-left: auto;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(27, 35, 49, 0.96), rgba(19, 24, 34, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.journey-selected-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 600;
}

.journey-selected-clear {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.journey-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.journey-category-shell {
    position: relative;
    flex: 0 0 auto;
}

.journey-category-button {
    height: 38px;
    padding: 0 0.9rem;
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 12px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(27, 35, 49, 0.96), rgba(18, 24, 34, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.journey-category-button.journey-icon-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
    background: rgba(14, 21, 34, 0.94);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.journey-category-menu {
    left: auto;
    right: calc(100% + 0.65rem);
    top: auto;
    bottom: 50%;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    width: min(320px, calc(100vw - 5.75rem));
    max-height: 48vh;
    padding: 0.3rem;
    overflow-y: auto;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 29, 41, 0.985), rgba(16, 21, 30, 0.99));
    border: 1px solid rgba(76, 201, 240, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    transform: translateY(50%);
}

.journey-category-menu-open {
    display: flex;
}

.journey-control-open .journey-category-menu {
    transform: translateY(50%);
}

.journey-category-option {
    width: 100%;
    padding: 0.34rem 0.45rem;
    border: 0;
    border-radius: 8px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    white-space: nowrap;
}

.journey-category-option:hover {
    background: rgba(76, 201, 240, 0.12);
}

.journey-legend-row {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 540px;
}

.journey-legend-pill,
.journey-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(12, 18, 29, 0.92);
    border: 1px solid rgba(76, 201, 240, 0.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.journey-legend-pill {
    border: 0;
    color: var(--text-main);
}

.journey-legend-pill-active {
    background: rgba(76, 201, 240, 0.14);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.52), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dot-qp {
    background: #5a78d6;
}

[data-qp-heatmap-toggle] {
    background: linear-gradient(90deg, rgba(128, 132, 139, 0.24), rgba(90, 120, 214, 0.3));
}

.journey-hint {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 7;
    color: var(--text-muted);
}

.quest-tree-viewport {
    position: relative;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(86, 168, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(86, 168, 255, 0.08) 1px, transparent 1px),
        rgba(8, 13, 21, 0.86);
    background-size: 32px 32px;
}

.quest-tree-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    user-select: none;
}

.quest-tree-lines-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quest-section-label {
    position: absolute;
    z-index: 2;
    max-width: 340px;
    pointer-events: none;
}

.quest-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: rgba(230, 242, 255, 0.95);
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    text-decoration: underline;
    text-decoration-color: var(--section-color, rgba(76, 201, 240, 0.3));
    text-underline-offset: 0.18em;
}

.quest-section-subtitle {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.quest-section-bank .quest-section-title {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quest-node {
    position: absolute;
    z-index: 3;
    padding: 0.6rem 0.72rem;
    border-radius: 12px;
    color: var(--text-main);
    background: rgba(12, 18, 29, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
    overflow: visible;
}

.quest-node:hover {
    z-index: 16;
    transform: translateY(-2px);
    border-color: rgba(76, 201, 240, 0.34);
}

.quest-node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.quest-node-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.quest-node-select,
.quest-node-meta-button {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}

.quest-node-select {
    font-weight: 700;
}

.quest-node-meta {
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.quest-node-meta-button {
    display: block;
}

.quest-info-button {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #dff8ff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(76, 201, 240, 0.16);
    border: 1px solid rgba(76, 201, 240, 0.32);
}

.quest-info-button:hover {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.24);
}

.quest-target-button,
.target-toggle-button {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(108, 149, 232, 0.2);
    border-radius: 999px;
    color: #dbe7ff;
    background: rgba(79, 127, 211, 0.12);
}

.quest-target-button iconify-icon,
.target-toggle-button iconify-icon {
    font-size: 14px;
}

.quest-target-button-active,
.target-toggle-button-active {
    color: #ffffff;
    background: rgba(79, 127, 211, 0.3);
    border-color: rgba(108, 149, 232, 0.38);
}

.target-toggle-button-accessible {
    color: #7df2a4;
    background: rgba(43, 124, 74, 0.22);
    border-color: rgba(125, 242, 164, 0.45);
}

.target-toggle-button-accessible.target-toggle-button-active {
    color: #dfffea;
    background: rgba(43, 124, 74, 0.34);
    border-color: rgba(125, 242, 164, 0.62);
}

.quest-complete-toggle {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #07111a;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quest-complete-toggle-remove {
    background: rgba(255, 138, 128, 0.92);
    color: #11131a;
}

.quest-node:hover .quest-complete-toggle {
    opacity: 1;
    pointer-events: auto;
}

.quest-complete-toggle:hover {
    transform: scale(1.06);
}

.quest-node-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #05101a;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
}

.quest-node-completed {
    border-color: rgba(102, 227, 166, 0.45);
    background: linear-gradient(180deg, rgba(18, 39, 42, 0.96), rgba(10, 24, 26, 0.96));
}

.quest-node-completed .quest-node-mark {
    background: #66e3a6;
}

.quest-node-available {
    border-color: rgba(76, 201, 240, 0.35);
}

.quest-node-blocked {
    border-color: rgba(255, 138, 128, 0.38);
    background: linear-gradient(180deg, rgba(37, 23, 29, 0.96), rgba(24, 15, 19, 0.96));
}

.quest-node-blocked .quest-node-mark {
    background: #ff8a80;
}

.quest-tree-canvas-qp-heatmap .quest-node[data-status="available"],
.quest-tree-canvas-qp-heatmap .quest-node[data-status="blocked"] {
    background: var(--qp-heat-background, rgba(12, 18, 29, 0.96));
    border-color: var(--qp-heat-border, rgba(255, 255, 255, 0.12));
    box-shadow: var(--qp-heat-shadow, 0 10px 24px rgba(0, 0, 0, 0.28));
}

.quest-node-target {
    border-color: rgba(246, 244, 123, 0.46);
    box-shadow: 0 0 0 1px rgba(246, 244, 123, 0.16), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.quest-node-focused {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78), 0 0 24px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.quest-node-required {
    border-color: rgba(76, 201, 240, 0.42);
}

.quest-node-hover {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    z-index: 30;
    display: none;
    width: 232px;
    padding: 0.7rem;
    border-radius: 12px;
    background: rgba(12, 18, 29, 0.98);
    border: 1px solid rgba(255, 138, 128, 0.24);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.quest-node:hover .quest-node-hover {
    display: block;
}

.quest-node-hover-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.quest-hover-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.quest-hover-chip-questcape {
    color: #fff3be;
    background: linear-gradient(180deg, rgba(123, 92, 24, 0.98), rgba(86, 62, 15, 0.98));
    border: 1px solid rgba(234, 198, 92, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 244, 188, 0.16);
}

.quest-hover-chip-nonquestcape {
    color: #d9e6ff;
    background: linear-gradient(180deg, rgba(43, 58, 84, 0.98), rgba(27, 37, 56, 0.98));
    border: 1px solid rgba(115, 142, 191, 0.38);
    box-shadow: inset 0 1px 0 rgba(218, 230, 255, 0.08);
}

.quest-node-dimmed {
    opacity: 0.24;
}

.quest-dependent-toggle {
    position: absolute;
    left: 50%;
    bottom: -12px;
    z-index: 12;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(76, 201, 240, 0.25);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(11, 17, 28, 0.98);
    transform: translateX(-50%);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.quest-node-drawer-open .quest-dependent-toggle {
    transform: translateX(-50%) rotate(180deg);
    border-color: rgba(76, 201, 240, 0.42);
    background: rgba(16, 25, 39, 0.98);
}

.quest-dependent-drawer {
    position: absolute;
    left: 50%;
    top: calc(100% + 16px);
    z-index: 14;
    width: max(220px, calc(100% + 4px));
    padding: 0.6rem;
    border-radius: 12px;
    background: rgba(12, 18, 29, 0.98);
    border: 1px solid rgba(76, 201, 240, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    transform: translateX(-50%) translateY(-10px);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.quest-node-drawer-open .quest-dependent-drawer {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.quest-dependent-title {
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.quest-dependent-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quest-dependent-item {
    width: 100%;
    text-align: left;
    padding: 0.34rem 0.45rem;
    border: 0;
    border-radius: 8px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.quest-dependent-item-completed {
    background: rgba(102, 227, 166, 0.16);
}

.quest-dependent-item-blocked {
    background: rgba(255, 138, 128, 0.16);
}

.journey-search-shell {
    position: relative;
    flex: 1 1 auto;
}

.journey-tip-panel {
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    color: var(--text-main);
    font-size: 0.82rem;
    line-height: 1.45;
    background: rgba(14, 21, 34, 0.96);
    border: 1px solid rgba(76, 201, 240, 0.16);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.journey-search-input {
    min-height: 42px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.journey-search-results {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: none;
    gap: 0.15rem;
    max-height: 220px;
    padding: 0.3rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 29, 41, 0.985), rgba(16, 21, 30, 0.99));
    border: 1px solid rgba(76, 201, 240, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
}

.journey-search-results-open {
    display: flex;
    flex-direction: column;
}

.journey-search-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    width: 100%;
    padding: 0.34rem 0.45rem;
    border: 0;
    border-radius: 8px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
}

.journey-search-option:hover {
    background: rgba(76, 201, 240, 0.12);
}

.journey-search-option-name {
    font-size: 0.76rem;
}

.journey-search-option-meta {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.entity-tooltip .tooltip-inner {
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(26, 34, 48, 0.98), rgba(17, 22, 31, 0.99));
    border: 1px solid rgba(76, 201, 240, 0.18);
}

.target-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(7, 10, 15, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.target-cart-overlay-open {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 35;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(111, 140, 176, 0.18);
    border-radius: 999px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.96), rgba(15, 20, 29, 0.98));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.back-to-top-button:hover {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(55, 64, 84, 0.92), rgba(25, 30, 41, 0.96));
}

.target-cart-drawer {
    position: fixed;
    top: auto;
    right: auto;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 41;
    width: 260px;
    max-width: calc(100vw - 1.5rem);
    max-height: min(58vh, 420px);
    padding: 0.85rem;
    background: linear-gradient(180deg, rgba(24, 31, 43, 0.985), rgba(16, 21, 30, 0.99));
    border: 1px solid rgba(88, 103, 128, 0.18);
    border-left: 1px solid rgba(88, 103, 128, 0.18);
    border-radius: 18px;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.42);
    transform: translateY(calc(100% + 1rem));
    transition: transform 0.2s ease;
}

.target-cart-drawer-open {
    transform: translateY(0);
}

.history-drawer {
    position: fixed;
    top: 0;
    left: 100vw;
    bottom: 0;
    z-index: 42;
    width: 320px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(21, 28, 40, 0.985), rgba(14, 19, 29, 0.99));
    border-left: 1px solid rgba(88, 103, 128, 0.18);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.38);
    transform: none;
    pointer-events: none;
    transition: left 0.2s ease;
}

.history-drawer-open {
    left: calc(100vw - 320px);
    pointer-events: auto;
}

.notification-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 43;
    width: 360px;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(21, 28, 40, 0.985), rgba(14, 19, 29, 0.99));
    border-left: 1px solid rgba(88, 103, 128, 0.18);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.38);
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.notification-drawer-open {
    transform: translateX(0);
    pointer-events: auto;
}

.notification-entry {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(111, 140, 176, 0.16);
    background: rgba(22, 28, 39, 0.92);
}

.notification-entry-success {
    border-color: rgba(99, 215, 157, 0.28);
}

.notification-entry-error {
    border-color: rgba(255, 138, 128, 0.28);
}

.notification-entry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #eaf3ff;
    background: rgba(79, 127, 211, 0.16);
    border: 1px solid rgba(108, 149, 232, 0.2);
}

.import-preview-modal {
    min-height: 520px;
}

.import-preview-shell {
    min-height: 320px;
}

.import-preview-loading {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: var(--text-muted);
}

.import-preview-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.import-preview-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.import-preview-summary-card {
    display: flex;
    justify-content: flex-start;
}

.import-preview-stats .osrs-stat-grid {
    height: auto;
}

.import-preview-runeprofile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 1rem;
    align-items: stretch;
}

.import-preview-model {
    min-height: 340px;
    height: 340px;
}

.import-preview-runeprofile-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-entry {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: var(--text-main);
    background: var(--bg-panel-soft);
    text-align: left;
}

.history-entry-time {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.target-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.target-cart-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88, 103, 128, 0.18);
    border-radius: 12px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(33, 40, 53, 0.97), rgba(22, 27, 36, 0.98));
}

.target-cart-body {
    height: auto;
    max-height: calc(min(58vh, 420px) - 82px);
    overflow-y: auto;
    padding-right: 0.2rem;
}

.target-cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.target-drawer-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.target-drawer-remove {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.target-drawer-remove iconify-icon {
    font-size: 14px;
}

.target-toggle-button-modal {
    width: 34px;
    height: 34px;
}

.boss-requirement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-unlock-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.35rem 0;
}

.profile-collection-tabs {
    margin-bottom: 0.2rem;
}

.profile-log-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
}

.diary-log-layout {
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
}

.profile-log-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.diary-nav-sidebar {
    display: block;
    align-content: start;
}

.diary-nav-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(106, 135, 175, 0.12);
    background: linear-gradient(180deg, rgba(18, 25, 35, 0.86), rgba(12, 17, 24, 0.94));
}

.diary-nav-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.diary-nav-group + .diary-nav-group {
    border-left: 1px solid rgba(106, 135, 175, 0.12);
}

.diary-nav-group .profile-log-title {
    padding: 0.1rem 0 0.65rem;
}

.profile-log-title {
    color: #f0b15f;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.04em;
    font-size: 1rem;
}

.profile-log-vertical-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-log-vertical-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(180deg, rgba(24, 32, 45, 0.74), rgba(15, 21, 31, 0.92));
    border: 1px solid rgba(104, 133, 171, 0.12);
}

.profile-log-vertical-tab.active {
    background: linear-gradient(180deg, rgba(51, 72, 115, 0.92), rgba(31, 46, 77, 0.98));
    border-color: rgba(110, 150, 232, 0.24);
    color: #fff;
}

.profile-log-vertical-tabs-connected {
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(106, 135, 175, 0.12);
    background: linear-gradient(180deg, rgba(18, 25, 35, 0.86), rgba(12, 17, 24, 0.94));
}

.diary-nav-link {
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0;
    font-size: 0.92rem;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(106, 135, 175, 0.08);
    box-shadow: none;
}

.diary-nav-link:first-child {
    border-top: 0;
}

.diary-nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.diary-nav-link.active {
    background: linear-gradient(180deg, rgba(50, 71, 112, 0.88), rgba(31, 46, 77, 0.94));
    color: #fff;
}

.diary-nav-link .status-chip {
    padding: 0.18rem 0.48rem;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(111, 140, 176, 0.1);
}

.diary-nav-link.active .status-chip {
    background: rgba(76, 201, 240, 0.12);
    border-color: rgba(76, 201, 240, 0.14);
}

.diary-nav-sidebar .profile-log-vertical-tabs {
    gap: 0;
    border-radius: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.diary-nav-sidebar .profile-log-vertical-tab {
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0;
    font-size: 0.92rem;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(106, 135, 175, 0.08);
    box-shadow: none;
}

.diary-nav-sidebar .profile-log-vertical-tab:first-child {
    border-top: 0;
}

.diary-nav-sidebar .profile-log-vertical-tab:hover {
    background: rgba(255, 255, 255, 0.03);
}

.diary-nav-sidebar .profile-log-vertical-tab.active {
    background: linear-gradient(180deg, rgba(50, 71, 112, 0.88), rgba(31, 46, 77, 0.94));
    color: #fff;
}

.diary-nav-sidebar .profile-log-vertical-tab .status-chip {
    padding: 0.18rem 0.48rem;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(111, 140, 176, 0.1);
}

.diary-nav-sidebar .profile-log-vertical-tab.active .status-chip {
    background: rgba(76, 201, 240, 0.12);
    border-color: rgba(76, 201, 240, 0.14);
}

.profile-log-panel {
    min-width: 0;
}

.profile-log-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.diary-log-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.diary-mobile-filters {
    display: none !important;
    width: 100%;
}

.diary-mobile-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.quest-log-shell {
    padding: 1rem 1.1rem;
}

.quest-log-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.quest-log-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 72vh;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.quest-log-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(23, 30, 41, 0.58), rgba(14, 19, 27, 0.8));
    border: 1px solid rgba(92, 116, 148, 0.08);
}

.quest-log-row-completed {
    color: #b7e7bf;
}

.quest-log-row-uncompleted {
    color: #d8e0f1;
}

.quest-log-row-blocked {
    color: #ecaeae;
}

.quest-log-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.quest-log-checkbox {
    margin: 0;
}

.quest-log-name {
    color: inherit;
    text-decoration: none;
}

.quest-log-name:hover {
    color: inherit;
    text-decoration: underline;
}

.profile-collection-summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.profile-collection-grid {
    align-items: start;
}

.profile-collection-tile {
    min-height: 122px;
    text-decoration: none;
}

.profile-collection-tile.is-missing {
    opacity: 0.58;
}

.profile-collection-tile.is-obtained {
    opacity: 1;
}

.profile-collection-tile .entity-name {
    min-height: 2.4rem;
}

.diary-entry {
    border: 1px solid rgba(107, 136, 176, 0.12);
    background: linear-gradient(180deg, rgba(19, 26, 37, 0.56), rgba(12, 18, 28, 0.36));
}

.diary-log-stack {
    gap: 0.75rem;
}

.diary-entry .diary-entry-head {
    align-items: center;
}

.profile-log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.collection-log-top-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.collection-log-top-tab {
    padding: 0.65rem 0.9rem;
    border-radius: 12px 12px 0 0;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(24, 31, 42, 0.82), rgba(16, 22, 31, 0.94));
    border: 1px solid rgba(106, 135, 175, 0.14);
    border-bottom-color: transparent;
}

.collection-log-top-tab.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(49, 69, 109, 0.95), rgba(31, 45, 75, 0.98));
}

.collection-log-layout {
    align-items: start;
}

.collection-log-sidebar {
    min-height: 0;
    max-height: 72vh;
    overflow: hidden;
}

.collection-log-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.collection-log-accordion {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.45rem;
    overflow-y: auto;
    padding-right: 0.2rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.collection-log-category {
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(20, 25, 34, 0.84), rgba(14, 18, 25, 0.9));
    border: 1px solid rgba(111, 140, 176, 0.08);
    overflow: hidden;
}

.collection-log-category-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 0;
    cursor: pointer;
    color: #dbe6f6;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(26, 33, 44, 0.84), rgba(18, 23, 31, 0.92));
    text-align: left;
}

.collection-log-category.is-open .collection-log-category-summary {
    border-bottom: 1px solid rgba(111, 140, 176, 0.08);
}

.collection-log-category-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s ease;
}

.collection-log-category.is-open .collection-log-category-panel {
    grid-template-rows: 1fr;
}

.collection-log-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.3rem;
    max-height: 16rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.collection-log-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.78rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    box-shadow: none;
}

.collection-log-source-row.active {
    background: linear-gradient(180deg, rgba(48, 67, 104, 0.7), rgba(28, 40, 66, 0.82));
    border-color: rgba(111, 149, 228, 0.14);
    color: #fff;
}

.collection-log-source-row.is-complete {
    background: linear-gradient(180deg, rgba(31, 88, 58, 0.56), rgba(18, 56, 37, 0.72));
    border-color: rgba(109, 211, 151, 0.16);
}

.collection-log-source-row.is-complete .status-chip {
    color: #d9ffeb;
    background: rgba(66, 190, 120, 0.14);
    border-color: rgba(109, 211, 151, 0.2);
}

.collection-log-source-row:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.collection-log-source-row .status-chip,
.collection-log-category-summary .status-chip {
    padding: 0.18rem 0.45rem;
    font-size: 0.68rem;
    background: rgba(76, 201, 240, 0.08);
    border-color: rgba(76, 201, 240, 0.14);
}

.collection-log-panel {
    min-height: 540px;
    position: relative;
}

.collection-log-panel.is-local-loading > * {
    opacity: 0.22;
}

.collection-log-panel.is-local-loading::before {
    content: none;
}

.collection-log-panel.is-local-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2rem;
    height: 2rem;
    margin-left: -1rem;
    margin-top: -1rem;
    border-radius: 999px;
    border: 3px solid rgba(124, 153, 220, 0.18);
    border-top-color: rgba(124, 153, 220, 0.95);
    z-index: 3;
    animation: gg-spin 0.8s linear infinite;
}

.collection-log-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.collection-log-pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.collection-log-page-link {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(106, 135, 196, 0.28);
    background: rgba(20, 27, 39, 0.72);
    color: var(--text-main);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.collection-log-page-link:hover {
    border-color: rgba(132, 165, 229, 0.44);
    background: rgba(28, 38, 56, 0.88);
    transform: translateY(-1px);
}

.collection-log-page-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.collection-log-item-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-height: 128px;
    padding: 0.7rem 0.5rem;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(180deg, rgba(32, 39, 49, 0.78), rgba(18, 23, 31, 0.94));
    border: 1px solid rgba(112, 132, 160, 0.12);
}

.collection-log-item-slot.is-missing {
    opacity: 0.55;
    filter: saturate(0.7);
}

.collection-log-item-slot.is-obtained {
    opacity: 1;
}

.collection-log-item-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    position: relative;
}

.collection-log-quantity {
    position: absolute;
    right: -0.25rem;
    bottom: -0.2rem;
    min-width: 1.4rem;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18, 27, 45, 0.96), rgba(31, 47, 76, 0.96));
    border: 1px solid rgba(114, 153, 223, 0.42);
    color: #f3f8ff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 8px 18px rgba(3, 7, 18, 0.35);
}

.collection-log-item-name {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.25;
}

.progressive-icon-shell {
    position: relative;
    overflow: hidden;
}

.progressive-icon-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(56, 74, 112, 0.16), rgba(23, 31, 46, 0.2)),
        repeating-linear-gradient(
            45deg,
            rgba(112, 142, 201, 0.12) 0,
            rgba(112, 142, 201, 0.12) 8px,
            rgba(25, 34, 53, 0.08) 8px,
            rgba(25, 34, 53, 0.08) 16px
        );
    opacity: 0;
    transition: opacity 0.18s ease;
}

.progressive-icon-shell.progressive-icon-shell-loading::before {
    opacity: 1;
}

.progressive-icon {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.progressive-icon.progressive-icon-ready {
    opacity: 1;
}

.progressive-icon.progressive-icon-failed {
    opacity: 0;
}

.shared-site-tooltip {
    position: fixed;
    z-index: 5000;
    max-width: min(320px, calc(100vw - 24px));
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19, 26, 40, 0.96), rgba(13, 18, 29, 0.98));
    border: 1px solid rgba(106, 135, 196, 0.3);
    box-shadow: 0 18px 45px rgba(4, 9, 18, 0.45);
    color: var(--text-main);
    pointer-events: auto;
    line-height: 1.35;
    font-size: 0.82rem;
}

@keyframes gg-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .profile-log-layout,
    .diary-log-columns {
        grid-template-columns: 1fr;
    }

    .profile-log-sidebar {
        max-height: none;
    }

    .diary-log-layout {
        grid-template-columns: 1fr;
    }

    .diary-nav-shell {
        grid-template-columns: 1fr;
    }

    .diary-nav-group + .diary-nav-group {
        border-left: 0;
        border-top: 1px solid rgba(106, 135, 175, 0.12);
    }
}

.unlock-item-minimal {
    background: transparent;
    border: 0;
}

.quest-node-need {
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

.unlock-link:hover {
    color: #ffffff;
    border-color: rgba(76, 201, 240, 0.28);
    background: rgba(76, 201, 240, 0.08);
}

.todo-sections {
    gap: 1.5rem;
    background: transparent !important;
}

.todo-section-spacer {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent !important;
}

.todo-group-shell {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.todo-accordion-shell {
    border: 0;
    border-radius: 12px;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.todo-section-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.todo-section-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.todo-skill-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(720px, 100%);
    padding: 0.85rem 0.75rem 0.45rem 0.75rem;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    background: transparent;
    border: 0;
}

.todo-skill-bar-track {
    width: 100%;
    margin-top: 0.45rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.todo-skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(93, 132, 216, 0.82), rgba(87, 203, 240, 0.74));
}

.todo-skill-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.todo-skill-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.todo-skill-icon,
.todo-source-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: pixelated;
}

.todo-skill-icon {
    width: 20px;
    height: 20px;
}

.todo-skill-icon-inline {
    margin-right: 0.05rem;
}

.todo-skill-name {
    font-weight: 700;
}

.todo-skill-progress {
    color: #f1f6ff;
    font-size: 0.84rem;
    font-weight: 700;
}

.todo-quest-name {
    flex: 1 1 auto;
    font-weight: 700;
    text-align: left;
}

.todo-quest-indicator {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #dce8fb;
    background: rgba(79, 127, 211, 0.12);
    border: 1px solid rgba(108, 149, 232, 0.2);
    transition: transform 0.18s ease;
}

.todo-quest-indicator iconify-icon {
    font-size: 13px;
}

.todo-source-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.15rem 0.25rem 0.15rem 0.25rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.todo-source-prefix {
    font-weight: 300;
    letter-spacing: 0.01em;
}

.todo-source-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.todo-source-chips-compact {
    justify-content: flex-end;
    max-width: min(100%, 640px);
}

.todo-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 24px;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.todo-source-icon {
    width: 16px;
    height: 16px;
}

.todo-source-chip-quest {
    color: #def1ff;
    background: rgba(79, 127, 211, 0.16);
    border-color: rgba(108, 149, 232, 0.24);
}

.todo-source-chip-boss {
    color: #ffe1dd;
    background: rgba(196, 86, 72, 0.16);
    border-color: rgba(226, 125, 112, 0.22);
}

.todo-source-chip-item {
    color: #ecf2ce;
    background: rgba(116, 143, 53, 0.18);
    border-color: rgba(149, 182, 73, 0.22);
}

.todo-accordion-button {
    padding: 0.2rem 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.todo-accordion-button::after {
    display: none;
}

.todo-accordion-button:not(.collapsed) {
    color: var(--text-main) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.todo-quest-button {
    padding: 0 !important;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.todo-quest-button:not(.collapsed) .todo-quest-indicator {
    transform: rotate(90deg);
}

.todo-accordion-body {
    padding: 0.55rem 0.1rem 0.25rem 0.1rem;
    background: transparent;
}

.todo-quest-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 18, 29, 0.86);
}

.todo-quest-summary-main {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.todo-compact-list {
    width: min(680px, 100%);
}

.todo-link-row,
.todo-requirement-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    color: var(--text-main);
    text-decoration: none;
}

[data-progressive-card].progressive-card-loading .entity-name,
[data-progressive-card].progressive-card-loading .collection-log-item-name {
    opacity: 0.24;
}

[data-progressive-card].progressive-card-ready .entity-name,
[data-progressive-card].progressive-card-ready .collection-log-item-name {
    opacity: 1;
    transition: opacity 0.16s ease;
}

.todo-link-row {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0.18rem 0.1rem;
}

.todo-link-label {
    font-weight: 600;
}

.todo-requirement-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: min(680px, 100%);
    padding: 0.3rem 0.1rem;
}

.todo-requirement-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.todo-requirement-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.16rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.todo-requirement-progress {
    color: #f1f6ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.todo-requirement-label {
    color: #f1f6ff;
}

.todo-requirement-row-skill .todo-requirement-category {
    color: #ffddae;
    background: rgba(183, 122, 49, 0.16);
}

.todo-requirement-row-meta .todo-requirement-category {
    color: #ffd7d1;
    background: rgba(196, 86, 72, 0.16);
}

.todo-requirement-row-meta .todo-requirement-label {
    color: #ffd7d1;
}

.todo-requirement-bar-track {
    width: 280px;
    max-width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.todo-requirement-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(93, 132, 216, 0.82), rgba(87, 203, 240, 0.72));
}

.todo-accordion-shell .accordion-header,
.todo-accordion-shell .accordion-item,
.todo-accordion-shell .accordion-button,
.todo-accordion-shell .accordion-body,
.todo-accordion-shell .accordion-collapse {
    border-radius: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.todo-sections .accordion,
.todo-sections .accordion-item,
.todo-sections .accordion-collapse,
.todo-sections .accordion-body {
    background: transparent !important;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 0.45rem;
    border-radius: 999px;
}

.dot-player {
    background: #f6f47b;
}

.dot-complete {
    background: #66e3a6;
}

.dot-open {
    background: #4cc9f0;
}

.dot-locked {
    background: #ff8a80;
}

.dot-target {
    background: #f6f47b;
}

.dot-combat {
    background: #f4b860;
}

.dependency-tree {
    padding: 0.9rem;
    border-radius: 14px;
    background: #0a1017;
    color: #cce8ff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    line-height: 1.5;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(76, 201, 240, 0.08);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.form-select,
.form-control,
.btn-info,
.form-range {
    border-radius: 12px;
}

.form-select,
.form-control {
    background: linear-gradient(180deg, rgba(26, 34, 48, 0.96), rgba(18, 24, 34, 0.98));
    color: var(--text-main);
    border-color: rgba(76, 201, 240, 0.2);
}

.form-control:focus,
.form-select:focus {
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(29, 38, 54, 0.98), rgba(20, 27, 38, 0.99));
    border-color: rgba(76, 201, 240, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(76, 201, 240, 0.12);
}

.btn-info {
    color: #04111e;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border: none;
}

.form-range::-webkit-slider-thumb {
    background: var(--accent);
}

.form-range::-moz-range-thumb {
    background: var(--accent);
    border: 0;
}

.unlocks-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.unlock-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.planner-selected {
    border-color: rgba(76, 201, 240, 0.24);
    background: rgba(76, 201, 240, 0.09);
}

.planner-quest-list {
    max-height: 580px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.planner-list-card {
    padding: 0.55rem 0.7rem;
}

.planner-list-card strong {
    font-size: 0.92rem;
}

.unlock-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 17, 27, 0.5);
}

.accordion-button {
    color: var(--text-main);
    background: rgba(12, 19, 31, 0.92);
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.12);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 201, 240, 0.14);
}

.accordion-meta {
    margin-left: auto;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.accordion-body {
    background: rgba(8, 13, 21, 0.88);
}

.checkbox-col {
    width: 60px;
}

.unlock-link {
    color: var(--text-main);
    text-decoration: none;
}

.sidebar-import-form {
    display: flex;
    flex-direction: column;
}

.sidebar-import-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.import-launcher {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.import-options-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 0.55rem);
    z-index: 30;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.98), rgba(15, 20, 29, 0.99));
    border: 1px solid rgba(111, 140, 176, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.import-options-panel-floating {
    position: fixed;
    z-index: 2000;
    min-width: 190px;
    max-width: min(220px, calc(100vw - 24px));
}

.import-option-button {
    width: 100%;
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    text-align: left;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(111, 140, 176, 0.12);
    border-radius: 12px;
}

.import-option-button:hover,
.import-option-button:focus-visible {
    color: #ffffff;
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.24);
}

.modal-content.panel {
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.98), rgba(15, 20, 29, 0.99));
}

body.welcome-modal-active .app-shell,
body.import-flow-active .app-shell,
body.welcome-modal-active .target-cart-overlay,
body.import-flow-active .target-cart-overlay,
body.welcome-modal-active .target-cart-drawer,
body.import-flow-active .target-cart-drawer,
body.welcome-modal-active .history-drawer,
body.import-flow-active .history-drawer,
body.welcome-modal-active .notification-drawer,
body.import-flow-active .notification-drawer {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px);
    background: rgba(4, 7, 12, 0.72);
}

.onboarding-modal {
    max-width: 620px;
}

.onboarding-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.brand-row-modal .brand-mark {
    width: 42px;
    height: 42px;
}

.brand-row-modal .brand-mark svg {
    width: 30px;
    height: 30px;
}

.welcome-import-grid {
    display: grid;
    gap: 0.8rem;
}

.welcome-import-launcher {
    width: fit-content;
    max-width: 100%;
}

.welcome-import-launcher .btn {
    min-width: 160px;
}

.welcome-import-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem 1.05rem;
    text-align: left;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(30, 37, 50, 0.96), rgba(19, 24, 34, 0.99));
    border: 1px solid rgba(111, 140, 176, 0.16);
    border-radius: 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.welcome-import-option:hover,
.welcome-import-option:focus-visible {
    color: #ffffff;
    border-color: rgba(76, 201, 240, 0.35);
    background: linear-gradient(180deg, rgba(38, 48, 66, 0.98), rgba(24, 32, 45, 1));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(76, 201, 240, 0.08);
    transform: translateY(-1px);
}

.welcome-import-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.welcome-import-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    color: #deecff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(79, 127, 211, 0.16);
    border: 1px solid rgba(108, 149, 232, 0.2);
}

.welcome-import-title {
    color: #f3f7ff;
    font-size: 1rem;
    font-weight: 700;
}

.welcome-import-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.codex-metrics {
    grid-template-columns: 220px minmax(0, 1fr);
}

.codex-copy {
    font-size: 0.92rem;
    line-height: 1.5;
}

.osrs-stats-panel {
    position: relative;
    padding: 0.7rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(88, 114, 162, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(26, 31, 41, 0.98), rgba(17, 21, 29, 0.99));
    border: 1px solid rgba(96, 108, 128, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.osrs-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 0.34rem 0.3rem;
    height: 100%;
    align-content: stretch;
}

.osrs-stat-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    min-height: 0;
    padding: 0.22rem 0.24rem;
    border-radius: 8px;
    text-align: left;
    background: linear-gradient(180deg, rgba(33, 38, 47, 0.96), rgba(19, 23, 30, 0.98));
    border: 1px solid rgba(91, 102, 121, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.osrs-stat-icon {
    width: auto;
    height: auto;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    image-rendering: pixelated;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: none;
    max-height: none;
}

.osrs-stat-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.osrs-stat-level {
    font-family: "RuneScape Plain 12", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #00ff00;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.92);
    font-smooth: never;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: auto;
}

.osrs-stat-level span {
    display: inline;
    color: #00ff00;
    font-size: 0.8em;
    font-weight: 400;
}

.dashboard-radar-wrap {
    min-height: 290px;
    height: 290px;
}

.dashboard-chart-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-chart-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: start;
}

.dashboard-chart-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.dashboard-chart-stack {
    width: min(100%, 360px);
}

.dashboard-chart-wrap {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-chart-wrap canvas {
    display: block;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.dashboard-chart-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.chart-wrap-focus {
    min-height: 300px;
    height: 300px;
    margin-bottom: 0;
}

.focus-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.8rem;
    min-height: 300px;
    padding: 0.5rem 0.25rem 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    z-index: 1;
}

.focus-bar-col {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 64px;
    min-width: 64px;
}

.focus-bar-col-highlighted .focus-bar-track {
    border-color: rgba(246, 244, 123, 0.42);
    box-shadow: 0 0 0 1px rgba(246, 244, 123, 0.14), 0 0 22px rgba(246, 244, 123, 0.12);
}

.focus-bar-col:hover {
    z-index: 2;
}

.focus-bar-hover-shell {
    position: relative;
    width: 100%;
}

.dashboard-focus-panel {
    grid-column: 1 / -1;
}

.focus-bar-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.focus-bar-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.focus-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 42px;
    height: 220px;
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(19, 25, 35, 0.98), rgba(13, 18, 26, 1));
    border: 1px solid rgba(93, 112, 145, 0.2);
    overflow: hidden;
}

.focus-bar-fill-gap {
    width: 100%;
    min-height: 10px;
    max-height: calc(100% - 8px);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(103, 180, 255, 0.98), rgba(71, 120, 230, 0.94));
    box-shadow: 0 0 18px rgba(68, 140, 255, 0.18);
    border: 1px solid rgba(127, 190, 255, 0.28);
}

.focus-bar-label {
    font-size: 0.75rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.1;
}

.focus-bar-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.focus-bar-menu-head {
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.focus-bar-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.35rem 0.3rem;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.focus-bar-menu-link:hover {
    background: rgba(76, 201, 240, 0.08);
    color: #ffffff;
}

.focus-bar-menu-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.focus-bar-menu-kind-quest {
    color: #def1ff;
    background: rgba(79, 127, 211, 0.16);
    border: 1px solid rgba(108, 149, 232, 0.24);
}

.focus-bar-menu-kind-diary {
    color: #ffddae;
    background: rgba(183, 122, 49, 0.16);
    border: 1px solid rgba(205, 146, 70, 0.24);
}

.focus-bar-menu-kind-todo {
    color: #f8efb4;
    background: rgba(184, 157, 57, 0.16);
    border: 1px solid rgba(217, 191, 88, 0.24);
}

.focus-bar-menu-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.focus-bar-menu-subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.focus-bar-floating-menu {
    position: fixed;
    z-index: 9999;
    width: 230px;
    padding: 0.45rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(24, 31, 44, 0.98), rgba(15, 20, 29, 0.99));
    border: 1px solid rgba(111, 140, 176, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.favour-card {
    overflow: visible;
}

.favour-slider-wrap {
    position: relative;
    padding-bottom: 2.6rem;
}

.favour-markers {
    position: absolute;
    left: 0;
    right: 0;
    top: 28px;
    height: 44px;
}

.favour-marker {
    position: absolute;
    transform: translateX(-50%);
}

.favour-marker-line {
    display: block;
    width: 1px;
    height: 16px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.28);
}

.favour-marker-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    white-space: nowrap;
    color: var(--text-muted);
}

.diary-entry {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.diary-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.diary-entry-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    cursor: pointer;
}

.diary-entry-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.diary-requirement-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.diary-requirement-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    border: 1px solid rgba(103, 119, 146, 0.22);
    background: linear-gradient(180deg, rgba(22, 27, 37, 0.94), rgba(16, 21, 29, 0.98));
    color: var(--text-main);
}

.diary-requirement-chip-met {
    border-color: rgba(85, 166, 121, 0.26);
    color: #d6f4dc;
}

.diary-requirement-chip-missing {
    border-color: rgba(193, 90, 90, 0.28);
    color: #ffd1d1;
}

.diary-requirement-chip-note {
    color: var(--text-muted);
}

.diary-skill-tooltip .small {
    color: #f3f8ff;
}

.diary-skill-progress {
    width: 150px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.diary-skill-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(84, 147, 255, 0.95), rgba(71, 205, 221, 0.95));
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        min-height: auto;
    }

    .mobile-shell-bar {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 110;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.6rem 0.75rem;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(7, 11, 16, 0.94), rgba(11, 16, 24, 0.86));
        backdrop-filter: blur(10px);
        border: 1px solid rgba(111, 140, 176, 0.18);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    }

    .sidebar {
        position: fixed;
        inset: 0;
        z-index: 100;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        height: var(--app-height);
        overflow-y: auto;
        border-right: 0;
        border-radius: 0;
        padding: calc(env(safe-area-inset-top, 0px) + 5.6rem) 1rem 1rem;
        transform: translateY(calc(-100% - 1rem));
        opacity: 0;
        visibility: hidden;
        transition: transform 0.32s ease, opacity 0.22s ease, visibility 0.22s ease;
        will-change: transform;
        box-shadow: none;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    body.mobile-nav-open .sidebar {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.mobile-nav-open .mobile-menu-button .brand-mark {
        box-shadow: 0 0 32px rgba(108, 149, 232, 0.22);
        border-color: rgba(76, 201, 240, 0.3);
    }

    body.mobile-nav-open .mobile-shell-arrow {
        transform: rotate(180deg);
    }

    .sidebar .brand-row,
    .sidebar .sidebar-subtitle {
        display: none;
    }

    .grid-layout,
    .codex-layout,
    .item-layout,
    .planner-layout,
    .unlocks-form,
    .profile-layout,
    .metric-row,
    .dashboard-hero-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-panel {
        display: grid;
        grid-column: auto;
    }

    .content-area {
        padding: calc(env(safe-area-inset-top, 0px) + 5.35rem) 1rem 1rem;
        gap: 0.85rem;
    }

    .content-area:has(.journey-workspace) {
        padding-bottom: 0.75rem;
    }

    .compact-card,
    .page-header {
        padding: 0.9rem;
    }

    .hero-cart-summary {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .sidebar-undo-toolbar {
        top: 0;
    }

    .journey-workspace {
        min-height: auto;
        height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - 6.1rem);
        min-height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - 6.1rem);
        padding: 0;
        background: rgba(8, 13, 21, 0.86);
        border: 1px solid rgba(111, 140, 176, 0.16);
        border-radius: 18px;
        box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.03);
        overflow: hidden;
    }

    .journey-floating {
        position: absolute;
        width: auto;
    }

    .journey-planner-panel {
        display: none;
    }

    .journey-search-hud {
        right: 0.9rem;
        bottom: 3.35rem;
        z-index: 9;
        width: auto;
        max-width: calc(100vw - 1.8rem);
    }

    .journey-control-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.55rem;
    }

    .journey-control-shell {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .journey-icon-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(76, 201, 240, 0.2);
        border-radius: 999px;
        color: var(--text-main);
        background: rgba(14, 21, 34, 0.94);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(10px);
    }

    .journey-control-panel {
        position: absolute;
        top: 50%;
        right: calc(100% + 0.65rem);
        width: min(320px, calc(100vw - 5.75rem));
        transform: translateY(-50%) translateX(10px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .journey-control-open .journey-control-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(-50%) translateX(0);
    }

    .journey-target-form.journey-control-panel {
        display: block;
    }

    .journey-tip-panel {
        padding: 0.7rem 0.8rem;
        border-radius: 14px;
        color: var(--text-main);
        font-size: 0.82rem;
        line-height: 1.45;
        background: rgba(14, 21, 34, 0.96);
        border: 1px solid rgba(76, 201, 240, 0.16);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(10px);
    }

    .journey-category-menu {
        top: auto;
        left: auto;
        right: calc(100% + 0.65rem);
        bottom: 50%;
        width: min(320px, calc(100vw - 5.75rem));
        transform: translateY(50%);
        max-height: 48vh;
    }

    .journey-category-menu-open {
        display: flex;
    }

    .journey-control-open .journey-category-menu {
        transform: translateY(50%);
    }

    .journey-search-shell {
        position: relative;
    }

    .journey-search-input {
        min-height: 42px;
    }

    .journey-search-results {
        left: 0;
        right: 0;
        bottom: calc(100% + 8px);
    }

    .journey-selected-quest {
        margin-bottom: 0.55rem;
        max-width: min(260px, calc(100vw - 1.8rem));
        margin-left: auto;
    }

    .journey-zoom-panel {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.55rem;
        width: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
    }

    .journey-legend-row {
        top: calc(env(safe-area-inset-top, 0px) + 4.55rem);
        left: 0.9rem;
        right: 0.9rem;
        z-index: 8;
        max-width: none;
        overflow: visible;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding-bottom: 0;
    }

    .journey-legend-pill {
        width: auto;
        max-width: 100%;
        flex: 0 1 auto;
        justify-content: flex-start;
    }

    .quest-tree-viewport {
        height: 100%;
        border-radius: inherit;
    }

    .quest-tree-canvas,
    .quest-tree-lines-canvas {
        touch-action: none;
    }

    .target-cart-overlay {
        z-index: 114;
    }

    .target-cart-drawer {
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        z-index: 115;
        width: auto;
        max-width: none;
        max-height: min(58vh, 420px);
        padding: 0.85rem;
        border-radius: 18px;
        border: 1px solid rgba(88, 103, 128, 0.18);
        border-left: 1px solid rgba(88, 103, 128, 0.18);
        box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.42);
        transform: translateY(calc(100% + 1rem));
    }

    .target-cart-drawer-open {
        transform: translateY(0);
    }

    .target-cart-body {
        height: auto;
        max-height: calc(min(58vh, 420px) - 82px);
        overflow-y: auto;
    }

    .target-cart-actions {
        margin-top: 0.85rem !important;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .history-drawer {
        left: 100vw;
        width: min(320px, 100vw);
    }

    .history-drawer-open {
        left: max(0px, calc(100vw - min(320px, 100vw)));
    }

    .notification-drawer {
        width: min(360px, 100vw);
    }

    .import-options-panel {
        left: 0;
        top: calc(100% + 0.55rem);
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .content-area {
        padding: calc(env(safe-area-inset-top, 0px) + 5rem) 0.75rem 0.85rem;
        gap: 0.75rem;
    }

    .content-area:has(.journey-workspace) {
        padding-bottom: 0.65rem;
    }

    .compact-card,
    .page-header {
        padding: 0.8rem;
        border-radius: 16px;
    }

    .dashboard-hero-panel {
        gap: 0.9rem;
    }

    .dashboard-hero-copy .d-flex.justify-content-between.align-items-start.gap-3 {
        flex-wrap: wrap;
    }

    .status-chip {
        max-width: 100%;
    }

    .dashboard-metric-row {
        margin-top: 0.8rem;
    }

    .dashboard-cape-progress {
        height: 20px;
    }

    .dashboard-cape-progress-fill {
        min-width: 3.5rem;
        padding: 0 0.5rem;
        font-size: 0.72rem;
    }

    .dashboard-chart-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .dashboard-chart-cell {
        min-width: 0;
    }

    .dashboard-chart-stack {
        width: 100%;
        min-width: 0;
    }

    .dashboard-chart-wrap {
        min-height: 172px;
        padding: 0.25rem 0;
    }

    .dashboard-chart-meta {
        gap: 0.15rem;
        font-size: 0.72rem;
    }

    .dashboard-focus-panel .d-flex.justify-content-between.align-items-center.mb-3 {
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem !important;
    }

    .focus-bars {
        justify-content: flex-start;
        min-height: 214px;
        gap: 0.55rem;
        padding: 0.35rem 0.1rem 0.1rem;
    }

    .focus-bar-col {
        flex: 0 0 46px;
        min-width: 46px;
        gap: 0.3rem;
    }

    .focus-bar-track {
        max-width: 18px;
        height: 154px;
        padding: 2px;
        border-radius: 999px;
    }

    .focus-bar-meta,
    .focus-bar-subtext {
        font-size: 0.56rem;
        text-align: center;
    }

    .focus-bar-label {
        font-size: 0.54rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .focus-bar-subtext {
        line-height: 1.15;
        white-space: nowrap;
    }

    .sidebar-subtitle {
        max-width: 26ch;
    }

    .sidebar .nav-link {
        padding: 0.65rem 0.75rem;
    }

    .sidebar-footer {
        padding-top: 0.75rem;
    }

    .sidebar-import-form .form-control,
    .sidebar-import-form .btn {
        font-size: 0.92rem;
    }

    .collection-filter-row,
    .collection-search-row {
        width: 100%;
    }

    .import-preview-runeprofile-layout {
        grid-template-columns: 1fr;
    }

    .back-to-top-button {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .journey-legend-row {
        top: calc(env(safe-area-inset-top, 0px) + 4.55rem);
        left: 0.75rem;
        right: 0.75rem;
        gap: 0.4rem;
    }

    .journey-legend-pill {
        padding: 0.44rem 0.62rem;
        font-size: 0.76rem;
    }

    .journey-search-hud {
        right: 0.75rem;
        bottom: 4.35rem;
    }

    .journey-icon-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .journey-category-button.journey-icon-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .journey-category-menu {
        left: auto;
        right: calc(100% + 0.65rem);
        top: auto;
        bottom: 0;
        width: min(320px, calc(100vw - 5rem));
        min-width: 0;
        max-width: calc(100vw - 5rem);
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 14rem);
        transform: none;
        overflow-y: auto;
    }

    .journey-control-open .journey-category-menu {
        transform: none;
    }

    .journey-search-shell {
        width: 100%;
    }

    .journey-search-input {
        width: 100%;
    }

    .journey-zoom-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.7rem;
    }

    .journey-zoom-panel .small.text-secondary {
        display: none;
    }

    .journey-zoom-panel .d-flex {
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        margin-bottom: 0.15rem;
    }

    .journey-zoom-panel .form-range {
        margin-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .mobile-shell-bar {
        top: calc(env(safe-area-inset-top, 0px) + 0.55rem);
        left: 0.55rem;
        right: 0.55rem;
        padding: 0.5rem 0.6rem;
        gap: 0.7rem;
        border-radius: 16px;
    }

    .brand-mark-button {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .mobile-shell-title .sidebar-title {
        font-size: 0.95rem;
    }

    .sidebar {
        padding: calc(env(safe-area-inset-top, 0px) + 5rem) 0.8rem 0.9rem;
    }

    .content-area {
        padding: calc(env(safe-area-inset-top, 0px) + 4.7rem) 0.6rem 0.75rem;
    }

    .content-area:has(.journey-workspace) {
        padding-bottom: 0.6rem;
    }

    .journey-workspace {
        height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - 5.35rem);
        min-height: calc(var(--app-height) - env(safe-area-inset-top, 0px) - 5.35rem);
        border-radius: 16px;
    }

    .dashboard-cart-chip {
        font-size: 0.74rem;
        padding: 0.2rem 0.5rem;
    }

    .dashboard-chart-wrap {
        min-height: 148px;
    }

    .dashboard-chart-meta {
        font-size: 0.68rem;
    }

    .focus-bars {
        min-height: 196px;
    }

    .focus-bar-track {
        height: 138px;
        max-width: 16px;
    }

    .focus-bar-col {
        flex-basis: 42px;
        min-width: 42px;
    }
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .profile-stats-card,
    .profile-model-card,
    .profile-quest-status-card {
        min-height: 0;
    }

    .profile-model-viewer {
        min-height: 340px;
        height: 340px;
    }

    .diary-nav-sidebar {
        display: none !important;
    }

    .diary-mobile-filters {
        display: block !important;
    }

    .diary-log-columns {
        grid-template-columns: 1fr;
    }
}
