body {
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    background:
        radial-gradient(circle at top, rgba(205, 177, 120, 0.18), transparent 35%),
        linear-gradient(180deg, #16110f 0%, #241915 100%);
    color: #f4ead7;
    min-height: 100vh;
}

body.dashboard-page {
    background: #000;
    color: #f1e9d8;
}

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

a:hover {
    text-decoration: underline;
}

.page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.login-page {
    position: relative;
    background: linear-gradient(180deg, #07080c 0%, #0d1017 100%);
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("/themes/default/assets/img/login-bg-fantasy.png") center center / cover no-repeat fixed;
    opacity: 0.5;
    pointer-events: none;
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 212, 122, 0.04), transparent 32%),
        linear-gradient(rgba(7, 8, 12, 0.28), rgba(7, 8, 12, 0.48));
    pointer-events: none;
}

.login-page .page-shell {
    position: relative;
    z-index: 1;
    max-width: none;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-page .page-shell {
    max-width: none;
    min-height: 100vh;
    padding: 26px 18px 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 0.08em;
}

.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #c6a980;
    font-size: 0.75rem;
}

.topnav {
    display: flex;
    gap: 16px;
    padding-top: 12px;
}

.content {
    display: block;
}

.response-time {
    margin: 18px 4px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(225, 214, 191, 0.62);
}

.dashboard-shell {
    color: #f1e9d8;
}

.kingdom-header {
    width: 100%;
    margin: 0 auto 24px;
    padding: 18px 24px 16px;
    border: 1px solid rgba(197, 166, 109, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(8, 8, 8, 0.98));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.kingdom-header__line {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(0.88rem, 1.6vw, 1.08rem);
    letter-spacing: 0.03em;
    color: #f2e4c2;
    line-height: 1.55;
}

.kingdom-header__countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #d7c39b;
    white-space: nowrap;
}

.kingdom-header__countdown strong {
    color: #f0c978;
    font-variant-numeric: tabular-nums;
}

.kingdom-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 10px;
    color: rgba(227, 214, 186, 0.8);
    font-size: 0.98rem;
}

.kingdom-header__meta a {
    color: #f0c978;
}

.kingdom-header__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.kingdom-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 166, 109, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #d7b370;
}

.kingdom-shortcut {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 166, 109, 0.26);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(47, 35, 17, 0.96), rgba(16, 13, 11, 0.98));
    color: #f2d699;
    font-family: "Cinzel", serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.kingdom-shortcut__badge {
    margin-left: 2px;
    color: #ff8f72;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.kingdom-shortcut:hover,
.kingdom-shortcut:focus {
    text-decoration: none;
    color: #fff2d2;
    border-color: rgba(237, 196, 112, 0.46);
}

.kingdom-shortcut.is-active {
    border-color: rgba(237, 196, 112, 0.58);
    box-shadow: inset 0 0 0 1px rgba(237, 196, 112, 0.16);
}

.dashboard-grid {
    align-items: start;
}

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

.dashboard-nav__item {
    min-height: 118px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(185, 154, 96, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(8, 8, 8, 0.98));
    color: #eee1c4;
    text-align: center;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dashboard-nav__item:hover {
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(226, 188, 115, 0.36);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(10, 10, 10, 0.98));
}

.dashboard-nav__item.is-active {
    border-color: rgba(237, 196, 112, 0.44);
    box-shadow: inset 0 0 0 1px rgba(237, 196, 112, 0.12);
}

.dashboard-nav__item.is-action {
    border-color: rgba(178, 83, 83, 0.26);
}

.dashboard-nav__item.is-action:hover {
    border-color: rgba(224, 112, 112, 0.4);
}

.dashboard-nav__item.is-action .dashboard-nav__icon {
    background: rgba(178, 83, 83, 0.1);
    color: #e5a3a3;
}

.dashboard-nav__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(237, 196, 112, 0.08);
    color: #efc470;
    font-size: 1.2rem;
}

.dashboard-nav__label {
    font-size: 0.95rem;
    line-height: 1.2;
}

.dashboard-content.panel {
    min-height: 560px;
    padding: 34px;
    border: 1px solid rgba(197, 166, 109, 0.16);
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.98), rgba(6, 6, 6, 0.98));
}

.dashboard-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.tooltip {
    --bs-tooltip-bg: rgba(14, 11, 9, 0.96);
    --bs-tooltip-color: #f4ead7;
    --bs-tooltip-opacity: 1;
}

.tooltip .tooltip-inner {
    border: 1px solid rgba(197, 166, 109, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

.dashboard-section__eyebrow {
    margin: 0 0 8px;
    color: #b99860;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.dashboard-section h2 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #f4e6c7;
    text-shadow: 1px 1px 3px black;
}

.dashboard-section__intro {
    margin: 0 0 24px;
    color: rgba(225, 214, 191, 0.84);
    max-width: 54rem;
}

.overview-parchment {
    width: 90%;
    min-height: 620px;
    display: flex;
    justify-content: center;
    padding: 28px 18px;
    margin: 0 auto;
    border-radius: 22px;
    background-color: #050505;
    background-image: url("/themes/default/assets/img/pergament.png");
    background-position: top center;
    background-size: 90%;
    background-repeat: no-repeat;
}

.overview-parchment__inner {
    width: min(100%, 760px);
    padding: 78px 80px 86px;
    text-align: center;
    color: #422c18;
}

.overview-parchment__title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #3c2613;
    line-height: 1.2;
}

.overview-parchment__id {
    font-size: 0.62em;
    color: #5b4127;
}

.overview-parchment__details {
    margin-top: 2.5rem;
    padding-left: 1.5rem;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    text-align: left;
}

.overview-parchment__details p {
    margin: 0;
}

.overview-parchment__details strong {
    font-weight: 700;
}

.overview-parchment__row {
    display: grid;
    grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
    align-items: baseline;
    column-gap: 18px;
}

.overview-parchment__label {
    text-align: right;
}

.overview-parchment__value {
    text-align: left;
}

.overview-magic {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.overview-magic__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.overview-magic__delta {
    font-size: 0.8em;
    line-height: 1;
}

.overview-glory__details {
    font-size: 0.8em;
    white-space: nowrap;
}

.overview-magic__icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.overview-currency__delta.is-negative {
    color: #a62222;
}

.overview-currency__delta.is-neutral {
    color: inherit;
}

.overview-currency__delta.is-positive {
    color: #2f8a39;
}

.panel {
    background: rgba(21, 15, 13, 0.82);
    border: 1px solid rgba(248, 204, 117, 0.18);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.panel-narrow {
    max-width: 480px;
}

.login-stage {
    width: 100%;
}

.login-panel {
    position: relative;
    overflow: hidden;
    min-height: 0;
    width: min(100%, 1080px);
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid rgba(222, 188, 124, 0.2);
    border-radius: 28px;
    background: rgba(12, 13, 18, 0.66);
    backdrop-filter: blur(8px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.login-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 185, 102, 0.08), transparent 38%, rgba(62, 74, 110, 0.08));
    pointer-events: none;
}

.login-panel__crest {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 203, 134, 0.34);
    color: #f1d8a1;
    font-size: 1.7rem;
    box-shadow: 0 0 30px rgba(234, 185, 80, 0.15);
}

.login-panel__content {
    position: relative;
    z-index: 1;
    padding: 54px 56px 48px;
}

.login-title {
    margin: 0 0 12px;
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    letter-spacing: 0.04em;
    color: #f7ead2;
}

.login-subtitle {
    max-width: 34rem;
    margin: 0 0 30px;
    color: rgba(240, 228, 205, 0.82);
    font-size: 1.02rem;
}

.login-form .form-label {
    color: #e7d5b3;
    margin-bottom: 0.45rem;
}

.login-input-group {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(179, 147, 96, 0.28);
    background: rgba(22, 23, 31, 0.84);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-input-group.is-focused {
    border-color: rgba(232, 190, 106, 0.58);
    box-shadow: 0 0 0 0.22rem rgba(212, 164, 68, 0.16);
    transform: translateY(-1px);
}

.login-input-group .input-group-text,
.login-input-group .form-control,
.login-input-group .btn {
    border: 0;
    background: transparent;
    color: #f7ead2;
}

.login-input-group .input-group-text {
    color: rgba(231, 213, 179, 0.78);
    min-width: 56px;
    justify-content: center;
}

.login-input-group .form-control {
    padding: 0.95rem 0.95rem;
}

.login-input-group .form-control:focus {
    box-shadow: none;
}

.login-password-toggle {
    min-width: 56px;
    border-radius: 0;
    cursor: pointer;
    color: rgba(231, 213, 179, 0.78);
}

.login-password-toggle:hover,
.login-password-toggle:focus,
.login-password-toggle:active {
    color: #f7ead2;
    box-shadow: none;
}

.login-submit {
    border: 1px solid rgba(237, 196, 112, 0.38);
    border-radius: 16px;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(135deg, #a97832, #edc470);
    color: #17130f;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-submit:hover,
.login-submit:focus {
    background: linear-gradient(135deg, #bd8840, #f3cd7c);
    color: #17130f;
}

.login-alert {
    margin-bottom: 1rem;
    border-radius: 14px;
}

.muted {
    color: #d8c8b1;
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.form-grid input {
    border: 1px solid #634d3d;
    background: #2a1f1a;
    color: #fff7ec;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
}

.form-grid button {
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #bf8b39, #f0c979);
    color: #241915;
    font-weight: 700;
    cursor: pointer;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 18px;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(140, 30, 30, 0.25);
    border: 1px solid rgba(219, 89, 89, 0.45);
}

.alert-success {
    background: rgba(31, 122, 76, 0.2);
    border: 1px solid rgba(87, 190, 139, 0.45);
    color: rgb(181, 181, 105);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.stat-card {
    background: rgba(255, 247, 236, 0.03);
    border: 1px solid rgba(248, 204, 117, 0.1);
    border-radius: 14px;
    padding: 18px;
}

.settings-nav-tabs {
    border-bottom-color: rgba(248, 204, 117, 0.18);
    gap: 8px;
}

.settings-nav-tabs .nav-link {
    border: 1px solid rgba(185, 154, 96, 0.28);
    border-bottom: 0;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: linear-gradient(180deg, rgba(22, 18, 16, 0.96), rgba(10, 10, 10, 0.98));
    color: #d9c8a8;
    font-weight: 600;
    padding: 0.8rem 1.15rem;
}

.settings-nav-tabs .nav-link:hover,
.settings-nav-tabs .nav-link:focus {
    border-color: rgba(226, 188, 115, 0.42);
    background: linear-gradient(180deg, rgba(30, 24, 21, 0.98), rgba(12, 12, 12, 0.98));
    color: #f5e8cb;
    text-decoration: none;
}

.settings-nav-tabs .nav-link.active {
    border-color: rgba(237, 196, 112, 0.52);
    background: linear-gradient(180deg, rgba(62, 45, 22, 0.96), rgba(18, 14, 12, 0.99));
    color: #f8edd7;
}

.settings-stack {
    display: grid;
    gap: 22px;
}

.settings-card {
    padding: 24px;
    border: 1px solid rgba(248, 204, 117, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(24, 18, 16, 0.94), rgba(12, 12, 12, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-card__eyebrow {
    margin: 0 0 8px;
    color: #b99860;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.settings-card__title {
    margin: 0 0 10px;
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    color: #f4e6c7;
}

.settings-card__text {
    margin: 0;
    color: rgba(225, 214, 191, 0.84);
}

.settings-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(248, 204, 117, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.settings-placeholder__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(237, 196, 112, 0.08);
    color: #efc470;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.settings-placeholder__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #f3e7cd;
}

.settings-placeholder__text {
    margin: 0;
    color: rgba(225, 214, 191, 0.78);
}

.settings-account-meta {
    display: grid;
    gap: 16px;
    margin: 26px 0 0;
}

.settings-account-meta div {
    padding: 16px 18px;
    border: 1px solid rgba(248, 204, 117, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.settings-account-meta dt {
    margin: 0 0 6px;
    color: #b99860;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.settings-account-meta dd {
    margin: 0;
    color: #f5ead2;
    font-size: 1.02rem;
}

.settings-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.settings-form__field {
    display: grid;
    gap: 8px;
}

.settings-form__field span {
    color: #e7d5b3;
}

.settings-form__field input {
    border: 1px solid rgba(179, 147, 96, 0.28);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(22, 23, 31, 0.84);
    color: #f7ead2;
}

.settings-form__field input:focus {
    outline: none;
    border-color: rgba(232, 190, 106, 0.58);
    box-shadow: 0 0 0 0.22rem rgba(212, 164, 68, 0.12);
}

.settings-form__submit {
    justify-self: start;
    margin-top: 6px;
}

.settings-cooldown {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(248, 204, 117, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(225, 214, 191, 0.84);
}

.settings-cooldown.is-ready {
    border-color: rgba(87, 190, 139, 0.35);
    color: #cde9d7;
}

.settings-cooldown.is-locked {
    border-color: rgba(226, 188, 115, 0.28);
    color: #f0d9ac;
}

.settings-form__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.buildings-table-wrap {
    margin-top: 24px;
    overflow-x: auto;
}

.buildings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

.buildings-table th,
.buildings-table td {
    padding: 14px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(248, 204, 117, 0.12);
}

.buildings-table th {
    color: #cfae7b;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.buildings-table td {
    color: #f2e7cf;
}

.buildings-price-cell {
    min-width: 190px;
    color: rgba(225, 214, 191, 0.86);
    font-size: 0.96rem;
}

.buildings-quantity-input {
    width: 110px;
    border: 1px solid rgba(179, 147, 96, 0.28);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: rgba(22, 23, 31, 0.84);
    color: #f7ead2;
}

.buildings-quantity-input:focus {
    outline: none;
    border-color: rgba(232, 190, 106, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(212, 164, 68, 0.12);
}

.buildings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buildings-actions--footer {
    margin-top: 18px;
}

.buildings-action-btn {
    padding: 0.72rem 0.95rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.buildings-action-btn.is-danger {
    background: linear-gradient(135deg, #8a4330, #d27f6b);
    border-color: rgba(210, 127, 107, 0.42);
    color: #fff5f0;
}

.buildings-action-btn.is-danger:hover,
.buildings-action-btn.is-danger:focus {
    background: linear-gradient(135deg, #9f4f3a, #e0907d);
    color: #fff8f3;
}

.forum-card {
    padding: 22px 24px;
}

.settings-forum-list {
    display: grid;
    gap: 16px;
}

.settings-forum-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(179, 147, 96, 0.22);
    background: rgba(36, 28, 22, 0.34);
    border-radius: 14px;
}

.settings-forum-actions {
    flex-shrink: 0;
}

.forum-form {
    display: grid;
    gap: 16px;
}

.forum-toolbar {
    display: grid;
    gap: 10px;
}

.forum-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-toolbar__button {
    border: 1px solid rgba(185, 154, 96, 0.28);
    background: linear-gradient(180deg, rgba(22, 18, 16, 0.96), rgba(10, 10, 10, 0.98));
    color: #e8d6b6;
    border-radius: 10px;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1;
}

.forum-toolbar__button:hover,
.forum-toolbar__button:focus {
    border-color: rgba(237, 196, 112, 0.52);
    color: #fff1d5;
}

.forum-toolbar__button--smiley {
    min-width: 2.4rem;
    font-size: 1rem;
}

.forum-toolbar__hint {
    margin: -6px 0 0;
    color: rgba(225, 214, 191, 0.72);
    font-size: 0.85rem;
}

.forum-form textarea {
    border: 1px solid rgba(179, 147, 96, 0.28);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(22, 23, 31, 0.84);
    color: #f7ead2;
    resize: vertical;
    min-height: 150px;
}

.forum-form textarea:focus {
    outline: none;
    border-color: rgba(232, 190, 106, 0.58);
    box-shadow: 0 0 0 0.22rem rgba(212, 164, 68, 0.12);
}

.forum-posts {
    display: grid;
    gap: 16px;
}

.forum-post {
    border-radius: 0;
}

.forum-post__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: stretch;
    margin: -22px -24px 16px;
    padding: 0 18px 0 0;
    min-height: 50px;
    border-bottom: 1px solid rgba(248, 204, 117, 0.12);
    background: linear-gradient(180deg, rgba(60, 44, 25, 0.3), rgba(24, 18, 16, 0.12));
    overflow: hidden;
}

.forum-post__identity {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.forum-post__identity > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 8px 12px;
}

.forum-post__avatar {
    width: 50px;
    height: 50px;
    border-radius: 0;
    object-fit: cover;
    flex: 0 0 50px;
    border: 0;
    background: rgba(16, 12, 11, 0.7);
    display: block;
}

.forum-post__meta {
    margin: 0;
    color: rgba(239, 226, 198, 0.92);
}

.forum-post__meta--secondary {
    margin-top: 4px;
    color: rgba(225, 214, 191, 0.82);
}

.forum-post__time {
    color: #caa96f;
    font-size: 0.92rem;
    white-space: nowrap;
    text-align: right;
    align-self: center;
    padding: 8px 0;
}

.forum-post__body {
    color: #f2e7cf;
    line-height: 1.7;
}

.forum-post__body a {
    color: #ffd790;
}

.forum-post__body strong,
.forum-post__body em {
    color: #fff4de;
}

.forum-u {
    text-decoration: underline;
}

.forum-s {
    text-decoration: line-through;
}

.forum-quote {
    margin: 0.8rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(237, 196, 112, 0.55);
    background: rgba(255, 244, 214, 0.06);
    color: #eadbbb;
}

.forum-code {
    margin: 0.9rem 0;
    padding: 0.9rem 1rem;
    background: rgba(12, 11, 14, 0.92);
    border: 1px solid rgba(185, 154, 96, 0.18);
    border-radius: 12px;
    color: #f5e8c7;
    overflow-x: auto;
}

.forum-code code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    white-space: pre-wrap;
}

.forum-list {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.forum-smiley {
    display: inline-block;
    vertical-align: -0.1em;
    font-size: 1.1em;
}

.forum-post--unread {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.forum-post--unread .forum-post__header {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(94, 78, 52, 0.38), rgba(34, 27, 22, 0.18));
}

.forum-post--unread .forum-post__meta,
.forum-post--unread .forum-post__meta--secondary,
.forum-post--unread .forum-post__time,
.forum-post--unread .forum-post__body {
    color: #ffffff;
}

.forum-pagination {
    margin: 6px 0 0;
    gap: 6px;
    flex-wrap: wrap;
}

.forum-pagination .page-link {
    border-color: rgba(185, 154, 96, 0.28);
    background: linear-gradient(180deg, rgba(22, 18, 16, 0.96), rgba(10, 10, 10, 0.98));
    color: #e8d6b6;
}

.forum-pagination .page-item.active .page-link {
    border-color: rgba(237, 196, 112, 0.52);
    background: linear-gradient(180deg, rgba(62, 45, 22, 0.96), rgba(18, 14, 12, 0.99));
    color: #fff1d5;
}

.forum-pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(225, 214, 191, 0.4);
}

.settings-avatar-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px dashed rgba(205, 171, 106, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 16, 14, 0.82);
    color: rgba(225, 214, 191, 0.75);
    text-align: center;
    padding: 6px;
    overflow: hidden;
    font-size: 0.75rem;
}

.settings-avatar-preview.has-image {
    border-style: solid;
}

.settings-avatar-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.settings-form--compact {
    flex: 1 1 280px;
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
    }

    .topbar h1 {
        font-size: 2.1rem;
    }

    .login-page .page-shell {
        padding: 16px;
    }

    .login-panel {
        min-height: auto;
    }

    .login-panel__crest {
        margin-bottom: 1.25rem;
    }

    .login-panel__content {
        padding: 32px 22px 28px;
    }

    .dashboard-page .page-shell {
        padding: 16px 12px 28px;
    }

    .kingdom-header {
        padding: 16px 16px 14px;
        border-radius: 18px;
    }

    .kingdom-header__countdown {
        display: inline-flex;
        margin-top: 0.35rem;
    }

    .dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-nav__item {
        min-height: 94px;
    }

    .dashboard-content.panel {
        min-height: 0;
        padding: 24px 18px;
    }

    .overview-parchment {
        width: 100%;
        min-height: 480px;
        padding: 6px 0;
        background-size: 100%;
        border-radius: 18px;
    }

    .overview-parchment__inner {
        width: min(100%, 100%);
        padding: 42px 28px 48px;
    }

    .overview-parchment__details {
        margin-top: 1.8rem;
        padding-left: 0;
        text-align: center;
        line-height: 1.75;
    }

    .overview-magic {
        justify-content: center;
    }

    .settings-form__submit {
        width: 100%;
        justify-self: stretch;
    }

    .buildings-table {
        min-width: 760px;
    }

    .forum-post__header {
        flex-direction: column;
        min-height: 0;
        padding: 0;
    }

    .forum-post__identity > div,
    .forum-post__time {
        padding-left: 14px;
        padding-right: 14px;
    }

    .settings-avatar-panel {
        align-items: flex-start;
    }

    .settings-forum-item {
        flex-direction: column;
    }

    .settings-forum-actions {
        width: 100%;
    }

    .settings-forum-actions .settings-form__submit {
        width: 100%;
    }
}
