.dictionary-pane {
    padding: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92)),
        radial-gradient(circle at top left, rgba(0, 122, 255, 0.12), transparent 42%);
}

.dictionary-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    font-size: 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(0, 122, 255, 0.06), transparent 36%),
        radial-gradient(circle at bottom right, rgba(0, 198, 255, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.92));
}

.dictionary-sidebar,
.dictionary-detail {
    min-height: 0;
}

.dictionary-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.52);
}

.dictionary-hero {
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(0, 122, 255, 0.12), rgba(0, 198, 255, 0.08)),
        rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 122, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 122, 255, 0.08);
}

.dictionary-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.dictionary-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.dictionary-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.1;
}

.dictionary-hero p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dictionary-controls {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dictionary-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dictionary-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dictionary-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.88rem;
    font-family: inherit;
}

.dictionary-search input::placeholder {
    color: rgba(134, 134, 139, 0.9);
}

.dictionary-stage-filters {
    display: none;
}

.dictionary-filter {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.dictionary-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.dictionary-filter.is-active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(0, 122, 255, 0.18);
}

.dictionary-status {
    display: none;
}

.dictionary-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.dictionary-list-card {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.dictionary-list-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 122, 255, 0.18);
    box-shadow: none;
}

.dictionary-list-card.is-active {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.14), rgba(0, 198, 255, 0.08));
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: none;
}

.dictionary-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.dictionary-list-card h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dictionary-list-id {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.dictionary-detail {
    overflow: auto;
    padding: 28px;
}

.dictionary-detail-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dictionary-detail-header {
    display: block;
}

.dictionary-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dictionary-detail-pills {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dictionary-detail-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    line-height: 1.05;
}

.dictionary-detail-copy {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9rem;
}

.dictionary-balanced-text {
    max-inline-size: var(--balance-width, none);
    text-wrap: pretty;
}

.dictionary-detail-title.dictionary-balanced-text,
.dictionary-panel h4.dictionary-balanced-text,
.dictionary-empty-state h3.dictionary-balanced-text {
    text-wrap: balance;
}

.dictionary-stage-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.dictionary-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dictionary-columns-stack {
    grid-template-columns: 1fr;
}

.dictionary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.dictionary-surface {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.06);
}

.dictionary-figure {
    margin: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 18px;
    background: #ffffff;
    border-radius: 26px;
}

.dictionary-definition-panel {
    padding: 22px;
}

.dictionary-figure-media {
    width: 100%;
    display: block;
}

.dictionary-figure img {
    width: 100%;
    height: auto;
    display: block;
    background: #ffffff;
    border-radius: 18px;
}

.dictionary-figure-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(0, 122, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 247, 255, 0.92));
    color: var(--text-secondary);
    text-align: center;
}

.dictionary-figure-empty svg {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.dictionary-panel {
    padding: 22px;
}

.dictionary-panel h4 {
    margin: 0 0 14px;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.dictionary-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-main);
}

.dictionary-panel li + li {
    margin-top: 12px;
}

.dictionary-panel li,
.dictionary-panel p {
    line-height: 1.65;
    font-size: 0.88rem;
}

.dictionary-panel p {
    margin: 0;
    color: var(--text-secondary);
}

.dictionary-empty-state {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dictionary-empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.dictionary-empty-state p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .dictionary-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .dictionary-shell {
        grid-template-columns: 1fr;
    }

    .dictionary-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .dictionary-detail {
        padding-top: 22px;
    }
}

@media (max-width: 640px) {
    .dictionary-sidebar,
    .dictionary-detail {
        padding: 18px;
    }

    .dictionary-hero,
    .dictionary-surface,
    .dictionary-list-card {
        border-radius: 20px;
    }

    .dictionary-detail-header {
        display: block;
    }

    .dictionary-detail-title-row {
        align-items: flex-start;
        gap: 10px;
    }

    .dictionary-detail-title {
        font-size: 1.55rem;
    }

    .dictionary-panel {
        padding: 18px;
    }

    .dictionary-stage-pill {
        display: none;
    }
}
