/* The site draws its own dark design with fixed colours. "only light" tells a browser's forced dark
   mode (Chrome's "darken websites", Samsung Internet, Mi Browser) to leave those colours alone; it had
   turned the light rows of the castle cards black. Browsers that do not recolour pages are unaffected. */
:root { color-scheme: only light; }
.site-language {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-inline-start: auto;
    padding: 4px;
    color: #e5e7eb;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-language select {
    min-width: 108px;
    max-width: 148px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 10px;
    background: #172033;
    color: #f8fafc;
    font: inherit;
    cursor: pointer;
    color-scheme: dark;
}
.site-language select:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 3px !important;
}
.login-language {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 1001;
}
.settings-language-row {
    display: flex;
    justify-content: flex-end;
    width: min(100%, 420px);
    margin-block-end: 16px;
}
.nickname-popup.warning {
    background: linear-gradient(135deg, #b45309, #92400e);
    text-align: start;
}
[data-i18n-date], [data-i18n-number], [data-i18n-duration], [data-locale-select],
[dir="ltr"], input[type="email"], input[type="password"], input[inputmode="numeric"] {
    unicode-bidi: isolate;
}
[data-i18n-date], [data-i18n-number], [data-i18n-duration], input[type="email"],
input[type="password"], input[inputmode="numeric"] { direction: ltr; }
html[lang] .bi.bi-floppy-fill::after { content: attr(data-save-label); }
html[lang] .savebar .castle-save-action i::after,
html[lang] .savebar2 .castle-save-action i::after { content: none; }
html[lang] .castlename[id^="castleinfodiv"] .bi-chevron-double-down::after,
html[lang] .farm-detail-toggle .bi-chevron-double-down::after { content: attr(data-detail-show-label); }
html[lang] .castlename[id^="castleinfodiv"] .bi-chevron-double-up::after,
html[lang] .farm-detail-toggle .bi-chevron-double-up::after { content: attr(data-detail-hide-label); }
html[lang] .castlemain[data-status="online"]::before { content: attr(data-status-online-label); }
html[lang] .castlemain[data-status="unapproved"]::before { content: attr(data-status-unapproved-label); }
html[dir="rtl"] { --font-body: Tahoma, Arial, sans-serif; --font-display: Tahoma, Arial, sans-serif; }
html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
html[lang="en"] .tasks1 > div:last-child,
html[lang="ar"] .tasks1 > div:last-child { min-width: 0; white-space: normal; overflow-wrap: break-word; }
html[dir="rtl"] .tasks1,
html[dir="rtl"] .info-content p { line-height: 1.6; }
html[dir="rtl"] .maincontainer,
html[dir="rtl"] .login-card { text-align: start; }
html[dir="rtl"] .upbar { direction: rtl; }
html[dir="rtl"] .theme-switch { margin-right: 0; margin-left: 5px; transform: scaleX(-1); }
html[dir="rtl"] .kd-search-icon { left: auto; right: 12px; }
html[dir="rtl"] .kd-search-clear { right: auto; left: 8px; }
html[dir="rtl"] .kd-search-input { padding: 9px 34px 9px 38px; text-align: start; }
html[dir="rtl"] .kd-alert-tooltip { right: auto; left: 0; text-align: start; }
html[dir="rtl"] .kd-title-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nickname-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .kd-card-title,
html[dir="rtl"] .task-name-text,
html[dir="rtl"] .task-vip-permission,
html[dir="rtl"] .info-content,
html[dir="rtl"] .chat-bubble,
html[dir="rtl"] .messageup,
html[dir="rtl"] .user-feedback { text-align: start; }
html[dir="rtl"] .chat-bubble,
html[dir="rtl"] .info-content,
html[dir="rtl"] .task-name-text { overflow-wrap: anywhere; }
html[dir="rtl"] .settings-password-field i { left: auto; right: 16px; }
html[dir="rtl"] .settings-password-field input { padding-inline-start: 42px; padding-inline-end: 16px; }
html[dir="rtl"] .neu-input .input-icon { left: auto; right: .9rem; }
html[dir="rtl"] .neu-toggle { right: auto; left: 5px; }
html[dir="rtl"] .neu-input input { padding-left: 45px; padding-right: 2.8rem; }
html[dir="rtl"] .neu-input input::placeholder { text-align: right; letter-spacing: normal; }
html[dir="rtl"] .login-header h2,
html[dir="rtl"] .neu-button,
html[dir="rtl"] .task-name-text { letter-spacing: normal; }
html[dir="rtl"] .signup-btn { margin-left: 0; margin-right: 5px; }
html[dir="rtl"] .social-floats { right: auto; left: 20px; }
html[dir="rtl"] .task-filter-group,
html[dir="rtl"] .farm-task-options { flex-wrap: wrap; }
@media (max-width: 640px) {
    .login-language ~ .login-container { padding-block-start: 76px; }
    .site-language select { min-height: 36px; }
    html[dir="rtl"] .social-floats { left: 10px; right: auto; }
}
