#body_container{
    min-height: 100vh;
}
th {
    background-color: #9AD4D3 !important;
}
table tr:nth-of-type(odd){
    border: 1px dashed #B6D4CE;
    background-color: rgba(187, 226, 217, 0.54);

}
table tr:nth-of-type(even){
    border: 1px dashed #CEE9E3;
    background-color: rgba(212, 255, 245, 0.48);
}
/* Overwrite old set width */
#container {
    width: 100%;
    max-width: 1000px;
}

.createdBy a, .latestReply a{
    color: #4FB56D;
}
.boardTitle {
    background-color: rgb(211, 234, 229);
    padding: .15em 1em;
    font-weight: bold;
    color: #355A5A;
    font-size: 1.1em;
}
.createdBy, .latestReply {
    font-size: .75em;
}
.forumBodyPreview {
    font-size: .8em;
}
.threadList td{
    vertical-align: top;
}
.forumTopic div {
    margin-bottom: .75em;
}
#postTopic label{
    font-weight: bold;
}
.post {
    border-top: 1px solid #D8DBD2;
    padding-top: 1.5em;
    padding-bottom: 1em;
}
.postUser > span {
    float: left;
    clear: left;
}
.postContent {
    padding-bottom: 1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.postContent small {
    font-size: 80%;
}
.postEnd {
    border-top: 1px dotted #44613D;
    color: #999;
    font-size: .75rem;
}
ul.pagination li.current a, ul.pagination li.current button {
    background: #9AD4D3;
    background: rgba(69, 191, 114, 0.8);
}
ul.pagination li.current a:hover, ul.pagination li.current a:focus, ul.pagination li.current button:hover, ul.pagination li.current button:focus {
    background: #77A7A6;
}

/* Overwrite some foundation defaults for tabs */
.tabs dd.active a, .tabs .tab-title.active a {
    text-decoration: none;
}
.tabs dd > a, .tabs .tab-title > a {
    background-color: #cad9e2;
    text-decoration: none;
}
.panel.link{
    text-decoration: none;
}
a .panel.link:hover {
    background: #c0d8c9;
    border: 1px solid rgb(181, 204, 176);
    background: #e1ffdf;
}

#enterShowLink {
    text-decoration: none;
    font-size: 1.75em;
}
#enterShowLink .panel {
    background: #cefdcb;
    border-color: #add7b2;
    border-radius: 5px;
    border-width: 2px;
}
#enterShowLink .panel.link:hover {
    border-color:rgb(181, 204, 176);
    background: #e1ffdf;
}

h1, h2, h3, h4, h5, h5 a{
    text-align: center;
    margin-top: .5em;
    margin-bottom: 0.25em;
    background: none;
    border: none;
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;

}
h1 {
    color: #3364A5;
    font-size: 2.5em;
    text-shadow: 0px 1px rgba(12, 12, 12, 0.7);
}
h2{
    color: #136F52;
    color: #43ac6a;
    color: #4171b1;
    font-size: 1.5em;
}
h3{
    color: #445D4B;
    color: #43ac6a;
    font-size: 1.35em;
}
h4 {
    color: #29A07B;
    font-size: 1.25em;
}
h5, h5 a {
    color: #007D61;
    font-size: 1.15em;
}
.button, .button:hover, .button:active, .button:focus, button, button:hover, button:active, button:focus, input[type="submit"]{
    border-radius: .5em !important;
}
.button, button, input[type="submit"] {
    padding: 1rem 3rem;
    max-width: 100%;
    cursor: pointer;
    transition: background-color 300ms ease-out;
    font-size: 1rem;
}
.button, button {
    background: #3364A5;
    color: #fff;
    border: 2px solid #215395;
}
.button:hover, .button:focus, button:hover, button:focus {
    background: #1B4985;
}
.narrow-btn,
button.narrow-btn,
input[type="submit"].narrow-btn {
    padding: 0.25rem 1rem;
}
.js_confirm h2{
    color: #4C4C4C;
}
.js_confirm_ok{
    background: #DA8552;
    border-color: #a1623f;
    color: #000;
}
.js_confirm_ok:hover, .js_confirm_ok:focus{
    background: #9f5d30;
    border-color: #7b5328;
    color: #333333;
}
.js_confirm_cancel {
    background: #D6D6D6;
    border-color: #BBBBBB;
    color: #333333;
}
.js_confirm_cancel:hover, .js_confirm_cancel:focus{
    background: #848484;
    border-color: #656565;
    color: #333333;
}
.forumReplies {
    max-width: 300px;
    width: 30%;
}

/* -- News -- */
#newsList > li {
    margin: 3em 2em;
}
.newsItem{
    border-bottom: 2px solid rgba(51, 118, 165, 0.86);
}
span.newsAuthor a, span.newsDate, .newsComment a,.newsEdit , .newsEdit a, .deleteComment a, .editComment a, .contentInfo a{
    color: #656565;
}
span.newsDate, .newsComment, .deleteComment {
    float: right;
}
.newsEdit{
    float: left;
}
#newsDetail{
    margin-bottom: 2em;
}
#commentsList{
    margin-top: 2em;
}
#commentsList > li {
    border: 1px dashed #A7C1D6;
    padding: .25em .5em;
    background: #E6E7E8;
}
#commentsList > li:nth-of-type(even) {
    background: #EFEFEF;
}
.contentInfo span {
    padding: .25em;
}

#tombstone{
    background: #c1c1c1;
    padding: 2em;
    border-radius: .5em;
}
span.editComment {
    color: #E6E7E8;
}
nav#topNav {
    background: #94CC6A;
    /* background: #ACD264; */
}
#nav li img {
    vertical-align: initial;
}
aside.right-off-canvas-menu {
    background: #94CC6A;
}
ul.list-connected, ol.list-connected {
    list-style-position: inside;
}
ul.off-canvas-list li label {
    background: #B3E28F;
    color: #444;
}
ul.off-canvas-list li a {
    color: #2D2D2D;
    text-decoration: none;
    border-bottom: 1px solid rgba(103, 160, 152, 0.58);
}
ul.off-canvas-list li a:hover, ul.off-canvas-list li a:focus {
    background: #739E53;
    background: rgba(63, 125, 69, 0.64);
    background: rgba(69, 125, 63, 0.41);
}
.off-canvas-list ul.sub-navigation {
    list-style: none;
}
.off-canvas-list .sub-navigation li a {
    font-weight: normal;
}
span.navigation_sub_header:hover {
    cursor: pointer;
    background: rgba(103, 165, 109, 0.64);
    background: rgba(69, 125, 63, 0.31);
}
span.navigation_sub_header {
    border-bottom: 1px solid #5DAB64;
    display: block;
    padding: 0.66667rem;
    transition: background 300ms ease;
}
textarea{
    height: 125px;
}
.historyEnding {
    padding-top: .5em;
}
.blockLevel{
    display: block;
    white-space: pre-wrap;
}

.listWrap{
    text-align: center;
    padding: .5em;
    border: 1px solid rgba(255, 255, 255, 0);
}
.listWrap > a{
    text-decoration: none;
    color: #2D2D2D;
}
.listWrap:hover{
    cursor: pointer;
    border: 1px solid rgb(206, 206, 206);
    background: #EEEEEE;
    border-radius: .15em;
}
.listWrap > a:hover{
    text-decoration: none;
    /*  color: #56BB7A;*/
}

.goal_category:hover, .goal_overview:hover {
    cursor: pointer;
    background: #696969;
}
.goal_category, .goal_overview{
    margin: .35em 0;
    border-radius: .25em;
    padding: .75em;
    text-align: center;
    font-size: 1em;
    color: #fbfbfb;
    font-weight: bold;
}
.goal_category {
    background: rgba(72, 106, 150, 0.67);
    background: rgba(72, 106, 150, 0.87);
}
.goal_overview {
    background: #7096c3;
    background: rgba(72, 106, 150, 0.87);
    background: rgba(72, 106, 150, 0.67);
}
.favorite_badges {
    clear: both;
    text-align: center;
}
.favorite_badges img {
    max-width: 50px;
}

.disabled, .disabled a, .disabled h5, .active_0, .active_0 a{
    color: #AAA
}
.itemList li {
    padding: .25em;
}
.home_block{
    text-align: center;
}
.home_block img{
    vertical-align: bottom;
}
.signUpBlock.button:hover, .signUpBlock.button:focus {
    background: #FFEC8E;
    border-color: #E8D676;
    color: #756C3F !important;
}
.signUpBlock, .signUpBlock.button {
    background: #EFDA71;
    border-color: #E8D676;
    color: #443F26 !important;
    font-weight: bold;
}
#user_info .signUpBlock {
    padding: .25em;
    min-width: 150px;
    margin-top: .5em;
}

.studFeeDisplay{
    max-width: 300px;
    margin:auto;
    padding-top: 1em;
}

dl.inline dd {
    display: inline;
    margin: 0;
}
dl.inline dd:after{
    display: block;
    content: '';
}
dl.inline dt{
    display: inline-block;
    min-width: 10px;
    padding-right: 1em;
}
div#lineageBox {
    background: rgb(184, 201, 224);
    background: #486a96;
    padding: 1em;
    text-align: center;
    border-radius: .5em;
    border: #c7c7c7 solid 2px;
    font-weight: bold;
    color: #040505;
}
div#lineageBox a:hover {
    color: #bfc1c3;
}
div#lineageBox a {
    color: #e4e9ee;
    text-decoration: none;
}
#lineageWrapper{
    display: inline-block;
}
.equippedItem.panel {
    max-width: 125px;
    float: left;
    margin-left: 5px;
    background: none;
    padding: .25rem;
}
.profile-large-item {
    font-size: 1.25em;
}
.panel{
    border-color: rgba(197, 204, 213, 0.66);
    background: rgba(237, 238, 240, 0.59);
}
.itemWrap{
    text-align: center;
}
.itemWrap:hover{
    border: 1px solid rgb(206, 206, 206);
    background: #EEEEEE;
    border: 1px solid rgb(181, 204, 176);
    background: #e1ffdf;
    border-radius: .15em;
}
.itemWrap a{
    text-decoration: none;
}

@media all and (min-width: 640px) {
    .headLink{
        padding-top: 3em;
    }
 }

.status-rejected {
    background: #df5f6533;
}
.status-cancelled {
    background: #77777733;
}

.credits-amount {
    font-size: 1.2rem;
}

.credits-cost {
    font-size: 1.5rem;
    padding-bottom: 5px;
    font-weight: bold;
}

.credits-purchase {
    font-size: 1.2em;
}

.credits-shell {
    margin-bottom: 1.5rem;
}

.credits-nav {
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.credits-hero {
    background: linear-gradient(180deg, rgba(248, 250, 244, 0.96) 0%, rgba(239, 244, 233, 0.96) 100%);
    border: 1px solid #d6dfcc;
    box-shadow: 0 8px 20px rgba(74, 96, 61, 0.08);
}

.credits-summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.credits-summary-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d4ddcb;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.95rem;
}

.credits-card {
    border: 1px solid #d6dfcc;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 242, 0.98) 100%);
    box-shadow: 0 10px 24px rgba(74, 96, 61, 0.07);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.credits-card:hover {
    border-color: #bfd0b4;
    box-shadow: 0 16px 30px rgba(74, 96, 61, 0.12);
    transform: translateY(-2px);
}

.credits-launcher {
    min-height: 16rem;
}

.credits-purchase-card {
    min-height: 15.5rem;
    position: relative;
    overflow: hidden;
}

.credits-purchase-grid {
    clear: both;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.credits-purchase-grid .columns {
    margin-bottom: 1rem;
}

.credits-purchase-confirm {
    max-width: 34rem;
    margin: 0 auto;
}

.credits-upgrade-card {
    min-height: 17.5rem;
}

.credits-card-price {
    color: #4d7b56;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.credits-card-title {
    margin-bottom: 0.65rem;
}

.credits-card-copy {
    color: #4c4c4c;
    line-height: 1.45;
    min-height: 3.6rem;
}

.credits-card-note {
    color: #666;
    min-height: 2.8rem;
}

.credits-disabled-note {
    color: #777;
    margin-top: 0.5rem;
}

.credits-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.credits-benefits-list {
    display: inline-block;
    text-align: left;
    margin: 0.5rem auto 0;
}

.credits-bonus-banner {
    display: inline-block;
    background: #dcefd7;
    color: #3f6f48;
    border: 1px solid #bfd9b9;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.credits-purchase-btn {
    min-width: 10rem;
}

.credits-info-note {
    display: inline-block;
    background: #f1f6ec;
    border: 1px solid #d6dfcc;
    color: #546250;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
}

@media all and (max-width: 640px) {
    .credits-card-copy,
    .credits-card-note,
    .credits-launcher,
    .credits-purchase-card,
    .credits-upgrade-card {
        min-height: 0;
    }

    .credits-summary-pill {
        width: 100%;
    }
}

button.jodit-toolbar-button__button {
    margin-bottom: 0;
}
.jodit-wysiwyg p, .postContent p {
    margin-bottom: .5em;
}

.fabrication-filter-input {
    margin-bottom: 0.75rem;
}

.fabrication-list-box {
    max-height: 26rem;
    overflow-y: auto;
    border: 1px solid rgba(197, 204, 213, 0.66);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
}

.fabrication-choice {
    display: block;
    border: 1px solid rgba(197, 204, 213, 0.66);
    background: rgba(237, 238, 240, 0.59);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.fabrication-choice input {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.fabrication-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.fabrication-selected-count {
    white-space: nowrap;
}

.fabrication-table-wrap {
    max-height: 26rem;
    overflow-y: auto;
}

.fabrication-material-table {
    margin-bottom: 0;
}

.fabrication-material-table input[type="number"] {
    width: 5.5rem;
    margin: 0 auto;
}

.message-recipient-list,
.message-recipient-results {
    display: block;
}

.message-recipient-search-wrap {
    position: relative;
}

.message-recipient-search-input {
    padding-right: 2.5rem;
}

.message-recipient-search-clear-inline {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    font-weight: bold;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    z-index: 25;
}

.message-recipient-search-clear-inline.is-hidden,
.message-recipient-search-clear-wrap.is-hidden {
    display: none;
}

.message-recipient-results {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 16rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d7d7d7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.message-recipient-results:empty {
    display: none;
}

.message-recipient-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #d7d7d7;
    background: #fafafa;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.message-recipient-results .message-recipient-row {
    margin-bottom: 0;
    border-width: 0 0 1px 0;
    background: #fff;
}

.message-recipient-results .message-recipient-row:last-child {
    border-bottom-width: 0;
}

.message-recipient-results-clear {
    padding: 0.65rem 0.75rem;
    text-align: center;
    border-top: 1px solid #d7d7d7;
    background: #fcfcfc;
}

.message-recipient-row.is-selected {
    background: #eef7ea;
    border-color: #9fc18d;
}

.message-recipient-name {
    font-weight: bold;
    line-height: 1.2;
}

.message-recipient-actions {
    flex: 0 0 auto;
}

.message-recipient-empty {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: #fcfcfc;
}

.message-section-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.message-section-link {
    display: inline-block;
    min-width: 10rem;
    padding: 0.55rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #4d5f3d;
    background: #f5f7f2;
    border: 1px solid #d8dfd0;
    border-radius: 999px;
    font-weight: bold;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.message-section-link:hover {
    text-decoration: none;
    background: #edf4e7;
    color: #2f4f24;
    border-color: #bdd0af;
}

.message-section-link.is-active {
    background: #e6f0dd;
    color: #2f4f24;
    border-color: #9fc18d;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.conversation-list-item {
    border: 1px solid #dcdcdc;
    background: #fcfcfc;
    padding: 0.9rem 1rem;
}

.conversation-list-item.is-unread {
    border-color: #b7d5a8;
    background: #f7fbf4;
}

.conversation-list-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.conversation-list-title {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.25;
}

.conversation-list-date {
    color: #666;
    font-size: 0.82rem;
    white-space: nowrap;
}

.conversation-list-participants {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 0.45rem;
}

.conversation-list-preview {
    border-top: 1px solid #ececec;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    line-height: 1.45;
}

.conversation-list-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 0.2rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.conversation-list-preview-link:hover {
    background: #f2f6ef;
    color: #2f4f24;
    text-decoration: none;
}

.conversation-list-badge {
    color: #53763f;
    font-size: 0.82rem;
    font-weight: bold;
    margin-left: 0.4rem;
}

.conversation-message-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.conversation-message-row.is-own {
    justify-content: flex-end;
}

.conversation-message-row.is-other {
    justify-content: flex-start;
}

.conversation-message-card {
    width: 100%;
    max-width: 70rem;
    border: 1px solid #d7d7d7;
    background: #fafafa;
    padding: 0.75rem 1rem;
}

.conversation-message-row.is-own .conversation-message-card {
    background: #eef7ea;
    border-color: #9fc18d;
}

.conversation-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.conversation-message-row.is-own .conversation-message-meta {
    flex-direction: row-reverse;
}

.conversation-message-row.is-own .conversation-message-body,
.conversation-message-row.is-own .conversation-message-meta {
    text-align: right;
}

.legacy-message-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.legacy-message-list-item {
    border: 1px solid #dcdcdc;
    background: #fcfcfc;
    padding: 0.9rem 1rem;
}

.legacy-message-list-item.is-unread {
    border-color: #b7d5a8;
    background: #f7fbf4;
}

.legacy-message-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.legacy-message-title {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.25;
}

.legacy-message-date {
    color: #666;
    font-size: 0.82rem;
    white-space: nowrap;
}

.legacy-message-meta {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.4;
}

.legacy-message-badge {
    color: #53763f;
    font-size: 0.82rem;
    font-weight: bold;
    margin-left: 0.4rem;
}

.system-message-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.system-message-list-item {
    border: 1px solid #dcdcdc;
    background: #fcfcfc;
    padding: 0.9rem 1rem;
}

.system-message-list-item.is-unread {
    border-color: #b7d5a8;
    background: #f7fbf4;
}

.system-message-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.system-message-title {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.25;
}

.system-message-date {
    color: #666;
    font-size: 0.82rem;
    white-space: nowrap;
}

.system-message-preview {
    border-top: 1px solid #ececec;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    line-height: 1.45;
}

.system-message-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 0.2rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.system-message-preview-link:hover {
    background: #f2f6ef;
    color: #2f4f24;
    text-decoration: none;
}

.system-message-badge {
    color: #53763f;
    font-size: 0.82rem;
    font-weight: bold;
    margin-left: 0.4rem;
}

.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.profile-hero {
    margin-bottom: 0;
}

.profile-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
    gap: 1rem;
    min-width: 0;
    align-items: start;
}

.profile-main-column,
.profile-side-column {
    min-width: 0;
}

.profile-hero-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.profile-name {
    text-align: left;
    margin: 0 0 0.25rem;
}

.profile-subtitle {
    color: #5f6c61;
}

.profile-action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.profile-meta-strip {
    display: flex;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    color: #4d5f4e;
    font-size: 0.95rem;
}

.profile-meta-strip span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.profile-meta-card,
.profile-stat-card {
    background: #f8fbf6;
    border: 1px solid #dbe6d4;
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
}

.profile-stat-card-link {
    display: block;
    text-decoration: none;
}

.profile-stat-card-link:hover,
.profile-stat-card-link:focus {
    background: #eef6e8;
    border-color: #c9dcbf;
    text-decoration: none;
}

.profile-meta-label,
.profile-stat-label {
    color: #5f6c61;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-meta-value,
.profile-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2f4f24;
}

.profile-finance-strip {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e3ebdf;
}

.profile-link-strip {
    display: flex;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf2ea;
    color: #5f6c61;
    font-size: 0.9rem;
}

.profile-link-strip a {
    color: #4c6a3d;
}

.profile-link-strip a:hover,
.profile-link-strip a:focus {
    color: #2f4f24;
}

.profile-action-form {
    display: inline-flex;
    margin: 0;
}

.profile-action-note {
    color: #4c5e41;
    font-size: 0.9rem;
    font-weight: bold;
    align-self: center;
}

.profile-badge-strip {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2ea;
}

.profile-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-badge-image {
    display: block;
    width: 48px;
    height: 48px;
}

.profile-acknowledgement-strip {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2ea;
}

.profile-acknowledgement-label {
    flex: 0 0 100%;
    color: #5f6c61;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.profile-acknowledgement-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-acknowledgement-image {
    display: block;
    max-height: 100px;
    width: auto;
}

.profile-section {
    height: 100%;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.profile-section-header h3 {
    margin: 0;
}

.profile-description {
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-stat-grid-hero {
    margin-top: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-stat-grid-hero .profile-stat-card {
    text-align: center;
    padding: 1rem 1rem 0.9rem;
}

.profile-facility-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.profile-facility-list > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.profile-linked-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-linked-row small {
    color: #5f6c61;
}

.profile-cemetery-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e4ebdf;
}

.profile-cemetery-row:last-child {
    border-bottom: 0;
}

.profile-cemetery-primary,
.profile-cemetery-meta {
    min-width: 0;
}

.profile-cemetery-meta {
    color: #5f6c61;
    text-align: right;
}

.profile-admin-links {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.profile-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem 1rem;
}

.profile-cemetery-panel {
    background: linear-gradient(180deg, #fbfcfa 0%, #f3f6ef 100%);
    border-color: #d4ddcc;
}

.profile-cemetery-header {
    align-items: flex-start;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dde5d7;
}

.profile-cemetery-subtitle {
    color: #667160;
    font-size: 0.92rem;
}

.profile-cemetery-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-cemetery-list .profile-cemetery-row {
    padding: 0.85rem 1rem;
    border: 1px solid #dbe2d4;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.72);
}

.profile-cemetery-list .profile-cemetery-row:first-child {
    border-radius: 0.4rem 0.4rem 0 0;
}

.profile-cemetery-list .profile-cemetery-row:last-child {
    border-bottom: 1px solid #dbe2d4;
    border-radius: 0 0 0.4rem 0.4rem;
}

.profile-admin-item {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.profile-connections-panel {
    max-width: 60rem;
    margin: 0 auto;
}

.linked-accounts-ip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: flex-start;
}

.linked-accounts-ip-list-hidden {
    display: contents;
}

.linked-accounts-ip-list.compact {
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.linked-accounts-ip-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border: 1px solid #d7dbd1;
    border-radius: 999px;
    background: #f7f8f4;
    color: #465040;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
}

button.linked-accounts-ip-chip {
    cursor: pointer;
}

.linked-accounts-ip-chip.is-match {
    border-color: #b9d2b6;
    background: #edf8ea;
    color: #2f5a30;
}

.linked-accounts-ip-chip.is-count {
    border-style: dashed;
    color: #6a7264;
}

.linked-accounts-ip-chip.is-active-filter {
    border-color: #5e9656;
    background: #cfe9ca;
    color: #173b18;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #5e9656, 0 0 0 2px rgba(94, 150, 86, 0.16);
}

.linked-accounts-ip-chip.is-active-filter::before {
    content: "Filtered:";
    font-size: 0.72rem;
    margin-right: 0.35rem;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.linked-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.linked-accounts-row {
    display: grid;
    grid-template-columns: minmax(14rem, 1.3fr) minmax(12rem, 1fr) minmax(12rem, 1fr) auto;
    gap: 0.9rem 1rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border: 1px solid #dbe2d4;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.8);
}

.linked-accounts-row-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.linked-accounts-row-meta {
    font-size: 0.92rem;
    color: #525f4d;
}

.linked-accounts-row-meta div + div {
    margin-top: 0.2rem;
}

.linked-accounts-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.linked-accounts-match-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ea;
    border: 1px solid #d4ddd0;
    color: #41503e;
    font-size: 0.78rem;
    line-height: 1.2;
}

.linked-accounts-match-badge.is-current {
    background: #e4f3df;
    border-color: #bfd7b7;
    color: #2f5f2c;
}

.linked-accounts-match-badge.is-historical {
    background: #f8f2e5;
    border-color: #e1d5b8;
    color: #6b5630;
}

.linked-accounts-row-block {
    min-width: 0;
}

.linked-accounts-row-block strong {
    display: block;
    margin-bottom: 0.2rem;
}

.linked-accounts-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.linked-accounts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.linked-accounts-pagination-label {
    font-size: 0.92rem;
    color: #566253;
}

.linked-accounts-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.linked-accounts-section-header h4 {
    margin-bottom: 0;
}

.linked-accounts-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dbe2d4;
    border-radius: 0.45rem;
    background: #f8fbf6;
}

@media (max-width: 900px) {
    .linked-accounts-row {
        grid-template-columns: 1fr;
    }

    .linked-accounts-row-actions {
        justify-content: flex-start;
    }
}

.profile-connection-page-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-connection-page-row {
    border: 1px solid #dbe6d4;
    background: #f8fbf6;
    border-radius: 0.4rem;
    padding: 0.85rem 1rem;
    text-align: center;
}

.profile-connection-page-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.profile-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.profile-event-list-compact {
    gap: 0.6rem;
}

.profile-event-row {
    padding: 0.45rem 0;
    border-bottom: 1px solid #dbe6d4;
}

.profile-event-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-event-date {
    font-size: 0.85rem;
    color: #5f6c61;
    margin-bottom: 0.15rem;
    font-weight: bold;
}

.profile-event-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.profile-show-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.profile-show-list-compact {
    gap: 0.5rem;
}

.profile-show-row {
    padding: 0.45rem 0;
    border-bottom: 1px solid #dbe6d4;
}

.profile-show-row-compact {
    padding: 0.4rem 0;
}

.profile-show-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-show-title {
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.profile-show-meta {
    font-size: 0.9rem;
    color: #5f6c61;
}

.profile-show-meta-sep {
    margin: 0 0.35rem;
}

.profile-edit-panel,
.profile-password-panel {
    max-width: 70rem;
    margin: 0 auto;
}

.profile-edit-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.profile-animals-panel {
    max-width: 72rem;
    margin: 0 auto;
}

.profile-animals-filters {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dde5d7;
}

.profile-animal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-animal-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dbe6d4;
    background: #f8fbf6;
    border-radius: 0.4rem;
    padding: 0.9rem 1rem;
}

.profile-animal-main,
.profile-animal-stat {
    min-width: 0;
}

.profile-animal-name {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.profile-animal-meta {
    color: #5f6c61;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.profile-animal-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.profile-animal-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    font-weight: bold;
    line-height: 1.2;
}

.profile-animal-badge.is-sale {
    background: #e4f3de;
    color: #2c6a22;
}

.profile-animal-badge.is-stud {
    background: #e0ecfb;
    color: #275a9b;
}

.profile-animal-badge.is-harvest {
    background: #fde7dc;
    color: #a04c1d;
}

.font-lg {
    font-size: 1.25rem;
}

.profile-animal-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
}

.profile-animal-stat strong {
    color: #5f6c61;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media only screen and (max-width: 900px) {
    .profile-animal-row {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .profile-animal-row {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .profile-animal-stat {
        text-align: left;
    }
}

.profile-help-text {
    display: block;
    margin-bottom: 0.75rem;
    color: #65755c;
}

.profile-checkbox-row {
    display: block;
    margin-bottom: 0.75rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chat-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-page__hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #d8e1d3;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f9fcf2 0%, #edf6e8 100%);
}

.chat-page__title {
    margin: 0 0 0.35rem;
    font-size: 2rem;
}

.chat-page__intro {
    margin: 0;
    color: #586553;
}

.chat-page__meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.chat-page__badge,
.chat-page__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    color: #3e5441;
    border: 1px solid #d7e5d3;
    font-weight: 700;
}

.chat-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.chat-page__main,
.chat-sidebar-card {
    border: 1px solid #d8e1d3;
    border-radius: 1rem;
    background: #fffef8;
    box-shadow: 0 12px 28px rgba(95, 124, 82, 0.08);
}

.chat-page__main {
    padding: 1rem;
}

.chat-sidebar-card {
    padding: 1rem;
}

.chat-sidebar-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
}

.chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.chat-toolbar__label {
    display: block;
    margin-bottom: 0.35rem;
    color: #5d6d59;
    font-size: 0.9rem;
    font-weight: 700;
}

.chat-feed {
    min-height: 16rem;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid #e3ebde;
    border-radius: 0.85rem;
    background: #fcfdf8;
}

.chat-feed--page {
    min-height: 32rem;
    max-height: 60vh;
}

.chat-loading,
.chat-empty,
.chat-presence-empty {
    color: #667662;
    text-align: center;
}

.chat-locked-banner {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ecd8a5;
    border-radius: 0.8rem;
    background: #fff7dc;
    color: #7a6121;
}

.chat-locked-banner a {
    margin-left: 0.35rem;
    font-weight: 700;
}

.chat-line {
    padding: 0.75rem 0 0.9rem;
    border-bottom: 1px solid #edf2e8;
}

.chat-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.chat-line.is-highlighted {
    background: #fff8cf;
    border-radius: 0.6rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.chat-line__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    color: #73826f;
    font-size: 0.82rem;
}

.chat-line__report {
    color: #9c5d2a;
    font-weight: 700;
}

.chat-line__body {
    line-height: 1.25;
    word-break: break-word;
}

.chat-line__body a {
    font-weight: 700;
}

.chat-line-whisper {
    color: #2f73a8;
}

.chat-line-action {
    color: #7d45a9;
}

.chat-line-dice {
    color: #245f9d;
}

.chat-compose {
    margin-top: 0.85rem;
}

.chat-compose textarea {
    min-height: 5.5rem;
    margin-bottom: 0.5rem;
    resize: vertical;
}

.chat-compose__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.chat-compose__hint {
    color: #6d7b69;
    font-size: 70%;
}

.chat-presence-group + .chat-presence-group {
    margin-top: 1rem;
}

.chat-presence-group strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #556452;
}

.chat-presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #eef5ea;
    color: #456249;
    font-size: 0.88rem;
}

.chat-presence-pill small {
    color: #70806c;
}

.chat-rules-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #5e6c59;
}

.chat-widget {
    position: fixed;
    right: .5rem;
    bottom: .25rem;
    width: min(24rem, calc(100vw - 1.5rem));
    z-index: 900;
    border: 1px solid #d5e0d0;
    border-radius: 1rem;
    background: #fffef8;
    box-shadow: 0 20px 40px rgba(49, 68, 53, 0.18);
    overflow: hidden;
}

.chat-widget.is-minimized .js-chat-widget-body {
    display: none;
}

.chat-widget-prefers-minimized .chat-widget .js-chat-widget-body {
    display: none;
}

.chat-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(135deg, #486e47 0%, #648e61 100%);
    color: #fff;
}

.chat-widget__header strong {
    font-size: 0.95rem;
    line-height: 1.1;
}

.chat-widget__count {
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.74rem;
}

.chat-widget__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-widget__link,
.chat-widget__icon {
    color: #fff;
    background: transparent;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.chat-widget__link {
    font-size: 0.78rem;
}

.chat-widget__icon {
    margin-left: 2rem;
    margin-bottom: 0;
    padding: 0.12rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    line-height: 1;
    font-size: 1rem;
}

.chat-widget__body {
    padding: 0.65rem;
}

.chat-widget .chat-feed {
    min-height: 12rem;
    max-height: 16rem;
}

.chat-widget .chat-compose textarea {
    min-height: 4rem;
}

@media only screen and (max-width: 640px) {
    .profile-main-grid {
        grid-template-columns: 1fr;
    }

    .profile-activity-grid {
        grid-template-columns: 1fr;
    }

    .profile-name {
        text-align: center;
    }

    .profile-action-group {
        justify-content: center;
    }

    .profile-stat-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta-strip {
        justify-content: flex-start;
    }

    .chat-page__hero,
    .chat-compose__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-page__layout {
        grid-template-columns: 1fr;
    }

    .chat-widget {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.5rem;
        width: auto;
    }

}
