/* ============================================================
   SHADOWSKINGS - KNOWN KINGDOMS INTELLIGENCE COMMAND CENTER
   ============================================================ */

.kingdoms-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;

    color: #e9e1ff;
    font-family: "Cinzel", "Trajan Pro", serif;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.kingdoms-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.kingdoms-overlay-backdrop {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(73, 37, 127, 0.30),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(3, 2, 7, 0.96),
            rgba(8, 5, 14, 0.985)
        );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* ============================================================
   SHELL
   ============================================================ */

.kingdoms-command-shell {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(13, 8, 22, 0.97),
            rgba(6, 4, 11, 0.99)
        );
}


/* ============================================================
   HEADER
   ============================================================ */

.kingdoms-command-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 98px;

    padding:
        16px
        24px;

    border-bottom:
        1px solid
        rgba(134, 80, 216, 0.48);

    background:
        linear-gradient(
            90deg,
            rgba(19, 10, 31, 0.98),
            rgba(10, 6, 17, 0.98)
        );

    box-shadow:
        0 8px 26px
        rgba(0, 0, 0, 0.38);
}


.kingdoms-header-copy {
    min-width: 0;
}


.kingdoms-eyebrow,
.kingdoms-section-label,
.kingdom-dossier-kicker {
    display: block;

    margin-bottom: 6px;

    color: #8f6bc6;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;

    text-transform: uppercase;
}


.kingdoms-title-row {
    display: flex;
    align-items: center;

    gap: 13px;
}


.kingdoms-title-sigil {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border:
        1px solid
        rgba(156, 93, 235, 0.62);

    border-radius: 8px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(112, 57, 174, 0.30),
            rgba(16, 8, 27, 0.98)
        );

    color: #d7baff;

    font-size: 20px;
    font-weight: 900;

    box-shadow:
        inset 0 0 18px rgba(124, 64, 196, 0.13),
        0 0 18px rgba(94, 45, 160, 0.16);
}


.kingdoms-title-row h1 {
    margin: 0;

    color: #f2ebff;

    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: 0.04em;
}


.kingdoms-title-row p {
    margin:
        4px
        0
        0;

    max-width: 720px;

    color: #877b9e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}


.kingdoms-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: 18px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.kingdoms-button,
.kingdoms-close-button {
    appearance: none;

    border-radius: 6px;

    cursor: pointer;

    font-family: "Cinzel", "Trajan Pro", serif;
    font-weight: 700;
    letter-spacing: 0.06em;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.kingdoms-button {
    min-height: 34px;

    padding:
        7px
        12px;

    font-size: 9px;

    text-transform: uppercase;
}


.kingdoms-button-secondary {
    border:
        1px solid
        rgba(124, 76, 196, 0.55);

    background:
        linear-gradient(
            180deg,
            rgba(48, 28, 77, 0.82),
            rgba(25, 14, 43, 0.92)
        );

    color: #d9c7f6;
}


.kingdoms-button-secondary:hover {
    border-color: #9b6cdf;

    background:
        linear-gradient(
            180deg,
            rgba(68, 38, 108, 0.92),
            rgba(33, 18, 54, 0.96)
        );

    box-shadow:
        0 0 15px
        rgba(123, 75, 195, 0.25);
}


.kingdoms-button-danger {
    border:
        1px solid
        rgba(136, 51, 79, 0.62);

    background:
        rgba(62, 22, 36, 0.68);

    color: #e2aabd;
}


.kingdoms-button-danger:hover {
    border-color: rgba(201, 78, 116, 0.85);

    background:
        rgba(94, 29, 50, 0.85);
}


.kingdoms-close-button {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border:
        1px solid
        rgba(122, 78, 177, 0.36);

    background:
        rgba(18, 11, 29, 0.86);

    color: #9c8db3;

    font-size: 13px;
}


.kingdoms-close-button:hover {
    border-color: rgba(170, 108, 238, 0.75);

    color: #efe2ff;

    background:
        rgba(49, 26, 77, 0.92);
}


/* ============================================================
   BODY
   ============================================================ */

.kingdoms-command-body {
    flex: 1 1 auto;

    display: grid;

    grid-template-columns:
        335px
        minmax(0, 1fr);

    min-height: 0;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.kingdoms-sidebar {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    border-right:
        1px solid
        rgba(98, 60, 151, 0.38);

    background:
        linear-gradient(
            180deg,
            rgba(12, 8, 20, 0.99),
            rgba(7, 5, 12, 0.99)
        );
}


.kingdoms-sidebar-top {
    flex: 0 0 auto;

    padding:
        16px
        14px
        13px;

    border-bottom:
        1px solid
        rgba(90, 57, 139, 0.25);
}


.kingdoms-sidebar-top > div:first-child {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 11px;
}


.kingdoms-sidebar-top strong {
    color: #bba4dd;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
}


.kingdoms-search-wrap {
    position: relative;
}


.kingdoms-search-icon {
    position: absolute;

    left: 11px;
    top: 50%;

    transform: translateY(-50%);

    color: #6e5b8c;

    font-size: 11px;

    pointer-events: none;
}


.kingdoms-search {
    width: 100%;
    height: 36px;

    box-sizing: border-box;

    padding:
        0
        12px
        0
        31px;

    border:
        1px solid
        rgba(102, 65, 156, 0.35);

    border-radius: 5px;

    outline: none;

    background:
        rgba(6, 4, 10, 0.90);

    color: #e0d5ef;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}


.kingdoms-search:focus {
    border-color:
        rgba(149, 91, 220, 0.75);

    box-shadow:
        0 0 0 2px
        rgba(130, 74, 200, 0.08);
}


.kingdoms-search::placeholder {
    color: #5f536f;
}


.kingdoms-list {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding:
        9px
        8px
        18px;
}


.kingdom-list-item {
    position: relative;

    width: 100%;

    display: block;

    margin-bottom: 7px;

    padding:
        11px
        11px
        10px
        14px;

    overflow: hidden;

    border:
        1px solid
        rgba(86, 56, 129, 0.25);

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 15, 33, 0.90),
            rgba(12, 8, 19, 0.94)
        );

    color: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.kingdom-list-item:hover {
    transform: translateX(2px);

    border-color:
        rgba(127, 79, 193, 0.48);

    background:
        linear-gradient(
            135deg,
            rgba(31, 20, 47, 0.95),
            rgba(15, 10, 24, 0.97)
        );
}


.kingdom-list-item.selected {
    border-color:
        rgba(159, 99, 226, 0.72);

    background:
        linear-gradient(
            135deg,
            rgba(51, 30, 76, 0.72),
            rgba(18, 11, 29, 0.98)
        );

    box-shadow:
        inset 0 0 18px
        rgba(121, 66, 181, 0.11),
        0 0 14px
        rgba(75, 37, 120, 0.11);
}


.kingdom-list-accent {
    position: absolute;

    left: 0;
    top: 8px;
    bottom: 8px;

    width: 2px;

    border-radius: 999px;

    background: transparent;
}


.kingdom-list-item.selected .kingdom-list-accent {
    background: #9560d6;

    box-shadow:
        0 0 8px
        rgba(169, 102, 242, 0.7);
}


.kingdom-list-topline {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 9px;
}


.kingdom-list-avatar {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    border:
        1px solid
        rgba(126, 78, 185, 0.50);

    border-radius: 6px;

    background:
        radial-gradient(
            circle,
            rgba(84, 42, 126, 0.34),
            rgba(12, 7, 21, 0.98)
        );

    color: #c9a8f0;

    font-size: 13px;
    font-weight: 800;
}


.kingdom-list-identity {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.kingdom-list-identity strong {
    overflow: hidden;

    color: #e7dcf5;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.kingdom-list-identity span {
    overflow: hidden;

    color: #756789;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.kingdom-report-count {
    flex: 0 0 auto;

    min-width: 21px;

    padding:
        3px
        5px;

    border:
        1px solid
        rgba(122, 75, 182, 0.35);

    border-radius: 999px;

    background:
        rgba(37, 21, 56, 0.72);

    color: #a88acb;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 800;

    text-align: center;
}


.kingdom-list-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 9px;
}


.kingdom-list-tags span {
    padding:
        3px
        6px;

    border:
        1px solid
        rgba(87, 57, 126, 0.28);

    border-radius: 3px;

    background:
        rgba(8, 5, 13, 0.55);

    color: #827393;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
}


.kingdom-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 8px;

    color: #5f556d;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
}


.kingdom-list-footer time {
    text-align: right;
}


/* ============================================================
   DETAIL AREA
   ============================================================ */

.kingdoms-detail {
    min-width: 0;
    min-height: 0;

    overflow-y: auto;

    padding:
        18px
        20px
        40px;

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(66, 34, 103, 0.13),
            transparent 35%
        ),
        #09060f;
}


/* ============================================================
   DOSSIER
   ============================================================ */

.kingdom-dossier {
    border:
        1px solid
        rgba(107, 67, 162, 0.34);

    border-radius: 9px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(18, 12, 28, 0.96),
            rgba(11, 7, 18, 0.98)
        );

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.26);
}


.kingdom-dossier-hero {
    display: flex;
    align-items: center;

    gap: 15px;

    padding:
        19px
        20px;

    border-bottom:
        1px solid
        rgba(97, 60, 145, 0.26);

    background:
        linear-gradient(
            90deg,
            rgba(40, 23, 59, 0.42),
            rgba(15, 9, 24, 0.28)
        );
}


.kingdom-dossier-emblem {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    border:
        1px solid
        rgba(150, 91, 218, 0.60);

    border-radius: 9px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(120, 65, 181, 0.31),
            rgba(14, 8, 23, 0.98)
        );

    color: #d6b9f5;

    font-size: 23px;
    font-weight: 900;

    box-shadow:
        inset 0 0 17px
        rgba(133, 75, 193, 0.10);
}


.kingdom-dossier-title {
    flex: 1 1 auto;

    min-width: 0;
}


.kingdom-dossier-title h2 {
    margin: 0;

    overflow: hidden;

    color: #f0e5fb;

    font-size: clamp(20px, 2.2vw, 31px);

    text-overflow: ellipsis;
    white-space: nowrap;
}


.kingdom-dossier-subtitle {
    display: flex;
    flex-wrap: wrap;

    gap:
        5px
        8px;

    margin-top: 7px;
}


.kingdom-dossier-subtitle span {
    padding:
        3px
        7px;

    border:
        1px solid
        rgba(100, 61, 145, 0.28);

    border-radius: 3px;

    background:
        rgba(7, 4, 12, 0.52);

    color: #817391;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
}


.kingdom-dossier-actions {
    flex: 0 0 auto;
}


.kingdom-dossier-meta {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    border-bottom:
        1px solid
        rgba(92, 57, 137, 0.24);
}


.kingdom-dossier-meta > div {
    min-width: 0;

    padding:
        12px
        14px;

    border-right:
        1px solid
        rgba(86, 53, 128, 0.19);
}


.kingdom-dossier-meta > div:last-child {
    border-right: 0;
}


.kingdom-dossier-meta span {
    display: block;

    margin-bottom: 4px;

    color: #655875;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}


.kingdom-dossier-meta strong {
    display: block;

    overflow: hidden;

    color: #bbaaCB;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   INTEL GRID
   ============================================================ */

.kingdom-intelligence-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    padding: 14px;
}


.kingdom-intel-section {
    min-width: 0;

    border:
        1px solid
        rgba(95, 58, 140, 0.26);

    border-radius: 7px;

    background:
        rgba(7, 5, 12, 0.50);
}


.kingdom-intel-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding:
        10px
        12px;

    border-bottom:
        1px solid
        rgba(86, 52, 127, 0.22);
}


.kingdom-intel-section-title span {
    color: #c7b2e5;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}


.kingdom-intel-section-title small {
    color: #5f536e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
}


.kingdom-intel-stats,
.kingdom-report-quickstats {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 1px;

    background:
        rgba(95, 58, 139, 0.13);
}


.kingdom-intel-stat {
    min-width: 0;

    padding:
        11px
        10px;

    background:
        rgba(12, 8, 18, 0.96);
}


.kingdom-intel-stat span {
    display: block;

    margin-bottom: 5px;

    color: #61556f;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;
    font-weight: 700;

    text-transform: uppercase;
}


.kingdom-intel-stat strong {
    display: block;

    overflow: hidden;

    color: #c5b2dc;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   HISTORY
   ============================================================ */

.kingdom-reports-list {
    margin-top: 20px;
}


.kingdom-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    padding:
        0
        2px;
}


.kingdom-history-heading h3 {
    margin: 0;

    color: #d8c8ec;

    font-size: 16px;
}


.kingdom-history-count {
    display: grid;
    place-items: center;

    min-width: 27px;
    height: 21px;

    padding:
        0
        6px;

    border:
        1px solid
        rgba(122, 76, 182, 0.35);

    border-radius: 999px;

    background:
        rgba(38, 22, 57, 0.66);

    color: #a98acb;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 800;
}


.kingdom-report-history {
    display: grid;

    gap: 10px;
}


.kingdom-report-card {
    overflow: hidden;

    border:
        1px solid
        rgba(91, 57, 134, 0.28);

    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            rgba(16, 11, 24, 0.94),
            rgba(10, 7, 16, 0.98)
        );
}


.kingdom-report-card-top {
    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        10px
        12px;

    border-bottom:
        1px solid
        rgba(85, 52, 124, 0.21);
}


.kingdom-report-number {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    border:
        1px solid
        rgba(111, 67, 162, 0.38);

    border-radius: 5px;

    color: #82669e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 800;
}


.kingdom-report-heading {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.kingdom-report-heading strong {
    color: #c7b5da;

    font-size: 10px;
}


.kingdom-report-heading span {
    color: #61566e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
}


.kingdom-report-status {
    padding:
        4px
        7px;

    border:
        1px solid
        rgba(86, 114, 155, 0.32);

    border-radius: 3px;

    background:
        rgba(22, 38, 61, 0.40);

    color: #879dba;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.10em;
}


.kingdom-report-summary {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );
}


.kingdom-report-summary > div {
    min-width: 0;

    padding:
        10px
        12px;

    border-right:
        1px solid
        rgba(81, 50, 119, 0.17);

    border-bottom:
        1px solid
        rgba(81, 50, 119, 0.17);
}


.kingdom-report-summary > div:last-child {
    border-right: 0;
}


.kingdom-report-summary span {
    display: block;

    margin-bottom: 4px;

    color: #5d5269;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 7px;

    text-transform: uppercase;
}


.kingdom-report-summary strong {
    display: block;

    overflow: hidden;

    color: #aa9aba;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.kingdom-report-quickstats {
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );
}


.kingdom-report-actions {
    display: flex;
    justify-content: flex-end;

    padding:
        8px
        10px;

    border-top:
        1px solid
        rgba(80, 49, 118, 0.17);
}


/* ============================================================
   EMPTY STATES
   ============================================================ */

.kingdoms-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    padding:
        36px
        18px;

    color: #6d607c;

    text-align: center;
}


.kingdoms-empty-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    margin-bottom: 4px;

    border:
        1px solid
        rgba(104, 66, 153, 0.33);

    border-radius: 50%;

    background:
        rgba(29, 17, 45, 0.47);

    color: #80639d;

    font-size: 15px;
}


.kingdoms-empty-state strong {
    color: #9f90af;

    font-size: 11px;
}


.kingdoms-empty-state span,
.kingdoms-empty-state p {
    max-width: 290px;

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.5;
}


.kingdom-detail-placeholder {
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border:
        1px dashed
        rgba(95, 59, 139, 0.26);

    border-radius: 9px;

    color: #6d607c;
}


.kingdom-detail-placeholder-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border:
        1px solid
        rgba(115, 72, 166, 0.35);

    border-radius: 8px;

    background:
        rgba(29, 17, 43, 0.43);

    color: #876ca2;

    font-size: 19px;
}


.kingdom-detail-placeholder strong {
    display: block;

    margin-bottom: 4px;

    color: #a999ba;

    font-size: 12px;
}


.kingdom-detail-placeholder p {
    margin: 0;

    max-width: 360px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
}


/* ============================================================
   SCROLLBARS
   ============================================================ */

.kingdoms-list,
.kingdoms-detail {
    scrollbar-width: thin;
    scrollbar-color:
        #40275e
        #09060e;
}


.kingdoms-list::-webkit-scrollbar,
.kingdoms-detail::-webkit-scrollbar {
    width: 7px;
}


.kingdoms-list::-webkit-scrollbar-track,
.kingdoms-detail::-webkit-scrollbar-track {
    background: #09060e;
}


.kingdoms-list::-webkit-scrollbar-thumb,
.kingdoms-detail::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #40275e;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {

    .kingdoms-command-body {
        grid-template-columns:
            285px
            minmax(0, 1fr);
    }


    .kingdom-dossier-meta {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .kingdom-dossier-meta > div:nth-child(3) {
        border-right: 0;
    }


    .kingdom-dossier-meta > div:nth-child(-n + 3) {
        border-bottom:
            1px solid
            rgba(86, 53, 128, 0.19);
    }


    .kingdom-intel-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .kingdom-report-summary {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .kingdom-report-quickstats {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 850px) {

    .kingdoms-command-header {
        min-height: 0;

        padding:
            12px
            13px;
    }


    .kingdoms-title-row p {
        display: none;
    }


    .kingdoms-title-sigil {
        width: 38px;
        height: 38px;

        font-size: 17px;
    }


    .kingdoms-header-actions .kingdoms-button {
        display: none;
    }


    .kingdoms-command-body {
        display: flex;
        flex-direction: column;
    }


    .kingdoms-sidebar {
        flex:
            0
            0
            auto;

        height: 230px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(98, 60, 151, 0.38);
    }


    .kingdoms-sidebar-top {
        padding:
            10px
            11px
            8px;
    }


    .kingdoms-list {
        display: flex;

        gap: 7px;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            6px
            9px
            10px;
    }


    .kingdom-list-item {
        flex:
            0
            0
            260px;

        margin: 0;
    }


    .kingdoms-detail {
        padding:
            10px
            10px
            30px;
    }


    .kingdom-dossier-hero {
        flex-wrap: wrap;

        padding:
            14px;
    }


    .kingdom-dossier-actions {
        width: 100%;
    }


    .kingdom-dossier-actions .kingdoms-button {
        width: 100%;
    }


    .kingdom-intelligence-grid {
        grid-template-columns:
            1fr;
    }
}


@media (max-width: 560px) {

    .kingdoms-eyebrow {
        font-size: 7px;
    }


    .kingdoms-title-row h1 {
        font-size: 18px;
    }


    .kingdoms-command-header {
        gap: 6px;
    }


    .kingdoms-header-actions {
        margin-left: 5px;
    }


    .kingdoms-sidebar {
        height: 218px;
    }


    .kingdom-list-item {
        flex-basis: 230px;
    }


    .kingdom-dossier-emblem {
        width: 44px;
        height: 44px;

        font-size: 18px;
    }


    .kingdom-dossier-meta,
    .kingdom-report-summary,
    .kingdom-report-quickstats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .kingdom-dossier-meta > div,
    .kingdom-report-summary > div {
        border-right:
            1px solid
            rgba(86, 53, 128, 0.19) !important;

        border-bottom:
            1px solid
            rgba(86, 53, 128, 0.19);
    }


    .kingdom-dossier-meta > div:nth-child(even),
    .kingdom-report-summary > div:nth-child(even) {
        border-right: 0 !important;
    }


    .kingdom-intel-section-title small {
        display: none;
    }
}
