/*
 * «Ваши коты» (/cats.php). Всё внутри .account-cats, общие блоки игры (шапка, меню, формы) не трогаются.
 * Палитра игровая: кремовые панели #f7f3e1 / #ede2b8, оранжевая основная кнопка .button.yellow.
 */
.account-cats {
    box-sizing: border-box;
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
}
.account-cats-header h1 {
    margin: 0 0 4px;
}
.account-cats-header p {
    margin: 0 0 16px;
    color: #646464;
}
.account-cats-message {
    margin: 0 0 16px;
    padding: 10px 16px;
    background: #fffbed;
    border: 1px solid #ffeca9;
    border-radius: 4px;
}
.account-cats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.account-cats .account-cat {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    background: #f7f3e1;
    border: 1px solid #ede2b8;
    border-radius: 5px;
}
.account-cats .account-cat.is-current {
    border-color: #ffab13;
    box-shadow: 0 0 0 2px #ffcb0d inset;
}
.account-cats .account-cat.is-muted {
    opacity: .8;
}
.account-cat-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 10px;
}
.account-cat-head img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ede2b8;
    border-radius: 4px;
}
.account-cats .account-cat h2 {
    margin: 0;
    font-size: 18px;
    line-height: 22px;
    word-break: break-word;
}
.account-cat-kind {
    display: block;
    color: #646464;
    font-size: 12px;
    line-height: 16px;
}
.account-cat-state {
    display: block;
    margin: 0 0 6px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 16px;
    background: #f5ecc9;
    border-radius: 3px;
}
.account-cat-state.is-attention {
    background: #fffbed;
    border: 1px solid #ffeca9;
}
.account-cat-state.is-warning {
    background: #fff4f0;
    border: 1px solid #f5c6b8;
}
.account-cats ul.account-cat-facts {
    margin: 6px 0 12px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 19px;
}
.account-cats .muted {
    color: #8a8a8a;
}
.account-cat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.account-cat-actions form {
    margin: 0;
}
.account-cat-actions .button {
    margin: 0;
}
.account-cats-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 24px 0 0;
}
.account-cats-form {
    margin: 0;
    padding: 16px 20px;
    background: #f7f3e1;
    border-radius: 5px;
}
.account-cats-form h2 {
    margin: 0 0 10px;
}
.account-cats-form label {
    display: block;
    margin: 0 0 4px;
}
.account-cats-form .itext {
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
}
.account-cats-form p > .muted {
    display: block;
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 18px;
}
.account-cats-form fieldset {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}
.account-cats-form legend {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 20px;
}
.account-cats-form fieldset label {
    display: inline-block;
    margin: 0 14px 4px 0;
}
.account-cats-form fieldset input {
    margin: 0 4px 0 0;
}
@media (max-width: 767px) {
    .account-cats {
        margin: 12px auto;
        padding: 0 16px;
    }
}

.account-cats #new-cat legend {
    float: none;
    width: auto;
    font-weight: bold;
}

.account-cats #new-cat .account-cat-types .account-cat-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.account-cats #new-cat .account-cat-sex .account-cat-options {
    display: flex;
    gap: 6px;
}

.account-cats #new-cat label.account-cat-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 4px;
    min-height: 42px;
    border: 1px solid #bcaf86;
    padding: 4px 9px;
    border-radius: 7px;
    background: #fffdf5;
    cursor: pointer;
}

.account-cats #new-cat .account-cat-types label {
    flex-direction: column;
    text-align: center;
}

.account-cat-choice input {
    position: absolute;
    opacity: 0;
}

.account-cats #new-cat .account-cat-choice:has(:checked) {
    background: #fff0ba;
    border-color: #946b00;
    box-shadow: 0 0 0 1px #946b00 inset;
    font-weight: bold;
}

.account-cats #new-cat .account-cat-types .account-cat-choice:has(:checked)::after {
    content: "✓" / "";
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #765400;
    color: #fff;
    font-size: 12px;
}

.account-cat-choice:has(:focus-visible) {
    outline: 2px solid #006b9d;
    outline-offset: 2px;
}

.account-cat-choice img {
    width: 66px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.info-public-owner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 8px 0 16px;
}

.account-login .ch_form .ch_hint {
    margin: 10px 0;
}

.account-login .ch_error {
    align-content: center;
}

.account-login .ch_error p {
    margin: 0;
}

.owner-choice-list {
    max-width: 420px;
    margin: 12px 0;
}

.owner-choice-list label {
    display: block;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid #ded4b3;
    border-radius: 4px;
    cursor: pointer;
}

.owner-choice-list label:has(:checked) {
    border-color: #ad841c;
    background: #fff4c6;
}

.owner-choice-list label input {
    margin: 0 7px 0 0;
}

.settings-account-avatar {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #ded4b3;
}
