:root {
    --bg-brown: #4a2f1c;
    --bg-brown-deep: #3b2416;
    --card: rgba(255, 252, 246, 0.98);
    --paper: #fbf7ef;
    --paper-line: rgba(214, 189, 132, 0.36);
    --dash-line: rgba(154, 199, 235, 0.9);
    --text-dark: #4b2e20;
    --text-muted: #9f755a;
    --accent-brown: #a66832;
    --accent-brown-deep: #855222;
    --accent-green: #92ab2c;
    --accent-purple: #7672b8;
    --accent-gold: #dbb74a;
    --accent-red: #c9665d;
    --accent-blue: #9ec1df;
    --border-soft: rgba(199, 155, 120, 0.46);
    --panel: rgba(255, 255, 255, 0.72);
    --shadow-soft: 0 24px 55px rgba(48, 22, 8, 0.24);
    --shadow-card: 0 16px 28px rgba(98, 61, 35, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.sidekick-admin {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background:
        linear-gradient(180deg, rgba(20, 12, 7, 0.18), rgba(20, 12, 7, 0.18)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 32%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 42px,
            rgba(33, 20, 11, 0.06) 42px,
            rgba(33, 20, 11, 0.06) 84px
        ),
        var(--bg-brown);
}

body.sidekick-admin[data-page='login'],
body.sidekick-admin[data-page='forgot-password'],
body.sidekick-admin[data-page='reset-password'] {
    background: linear-gradient(180deg, #3a3028, #2f251f);
}

a {
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.storybook-shell {
    min-height: 100vh;
    padding: 14px;
}

.storybook-card {
    position: relative;
    min-height: calc(100vh - 28px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--paper);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 18px 60px rgba(39, 22, 13, 0.18);
}

.storybook-scene {
    position: absolute;
    inset: 0;
    background: url('/sidekick-paper-background.svg') center center / cover no-repeat;
    opacity: 0.98;
}

.storybook-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 26px, var(--paper-line) 26px, var(--paper-line) 28px),
        repeating-linear-gradient(90deg, transparent 0, transparent 26px, var(--paper-line) 26px, var(--paper-line) 28px);
    opacity: 0.68;
}

.storybook-border {
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 5px dashed rgba(161, 204, 239, 0.75);
    opacity: 0.85;
    pointer-events: none;
}

.paper-corner {
    position: absolute;
    width: 132px;
    height: 132px;
    background:
        radial-gradient(circle at 30% 70%, #cca28d 0 17%, transparent 18%),
        radial-gradient(circle at 53% 53%, #cca28d 0 17%, transparent 18%),
        radial-gradient(circle at 76% 30%, #cca28d 0 17%, transparent 18%),
        radial-gradient(circle at 30% 30%, #cca28d 0 17%, transparent 18%);
    filter: drop-shadow(0 8px 14px rgba(101, 63, 38, 0.13));
    opacity: 0.95;
}

.paper-corner::before,
.paper-corner::after {
    position: absolute;
    content: '';
    border-radius: 999px;
    background: #cca28d;
}

.paper-corner::before {
    width: 88px;
    height: 26px;
}

.paper-corner::after {
    width: 26px;
    height: 88px;
}

.paper-corner.top-left {
    top: -12px;
    left: -10px;
    transform: rotate(12deg);
}

.paper-corner.top-left::before {
    top: 18px;
    left: -8px;
    transform: rotate(-38deg);
}

.paper-corner.top-left::after {
    top: -6px;
    left: 16px;
    transform: rotate(30deg);
}

.paper-corner.bottom-right {
    right: -18px;
    bottom: -10px;
    transform: rotate(186deg);
}

.paper-corner.bottom-right::before {
    top: 18px;
    left: -8px;
    transform: rotate(-38deg);
}

.paper-corner.bottom-right::after {
    top: -6px;
    left: 16px;
    transform: rotate(30deg);
}

.decor-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decor-cloud,
.decor-star {
    position: absolute;
}

.decor-cloud {
    width: 58px;
    height: 22px;
    border-radius: 999px;
    background: rgba(162, 194, 223, 0.78);
    filter: blur(0.2px);
}

.decor-cloud::before,
.decor-cloud::after {
    position: absolute;
    content: '';
    border-radius: 999px;
    background: rgba(162, 194, 223, 0.9);
}

.decor-cloud::before {
    width: 24px;
    height: 24px;
    left: 8px;
    top: -9px;
}

.decor-cloud::after {
    width: 28px;
    height: 28px;
    right: 7px;
    top: -12px;
}

.decor-cloud.sm {
    transform: scale(0.76);
}

.decor-cloud.lg {
    transform: scale(1.12);
}

.decor-star {
    width: 22px;
    height: 22px;
    opacity: 0.65;
}

.decor-star::before,
.decor-star::after {
    position: absolute;
    inset: 0;
    content: '';
    border: 3px solid rgba(216, 182, 92, 0.75);
    clip-path: polygon(50% 0%, 62% 34%, 100% 50%, 62% 66%, 50% 100%, 38% 66%, 0% 50%, 38% 34%);
    border-radius: 3px;
}

.decor-star::after {
    transform: rotate(35deg);
}

.auth-stage {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.auth-panel {
    width: min(100%, 410px);
    text-align: center;
}

.brand-mark {
    margin: 0 auto 20px;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(53, 24, 11, 0.18);
}

.brand-mark img,
.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-title {
    margin: 0;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: clamp(2rem, 4vw, 2.45rem);
    letter-spacing: 0.01em;
    color: #4a2d20;
    margin-bottom: 3rem;
}

.auth-subtitle {
    margin: 10px 0 28px;
    color: #b17b54;
    font-size: 0.96rem;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.field-group {
    text-align: left;
}

.field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: #6d4d37;
    font-weight: 700;
}

.storybook-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.6px solid rgba(207, 151, 112, 0.8);
    background: rgba(255, 253, 249, 0.68);
    color: #523022;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 2rem;
}

.storybook-input::placeholder {
    color: rgba(161, 134, 116, 0.78);
    opacity: 1;
    font-size: 0.98rem;
}

.storybook-input[type='password']::placeholder,
.storybook-input[inputmode='numeric']::placeholder {
    font-size: 1.08rem;
    letter-spacing: 0.08em;
}

.storybook-input:focus {
    border-color: #a86a33;
    box-shadow: 0 0 0 4px rgba(166, 104, 50, 0.12);
    transform: translateY(-1px);
}

.storybook-input.is-invalid {
    border-color: #c9665d;
    box-shadow: 0 0 0 4px rgba(201, 102, 93, 0.14);
    background: rgba(255, 245, 243, 0.96);
}

.storybook-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%),
        linear-gradient(180deg, #9b6a3c, #7b4a24);
    color: #fff7ec;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 18px rgba(121, 74, 36, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.storybook-button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 10px 22px rgba(121, 74, 36, 0.24);
}

.storybook-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.auth-links {
    margin-top: 12px;
    color: #bc7f56;
    font-size: 0.92rem;
}

.auth-link {
    color: #bc7f56;
    font-weight: 700;
}

.form-feedback {
    min-height: 22px;
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-line;
    color: #aa563f;
}

.form-feedback.success {
    color: #6b8a1a;
}

.login-shell {
    min-height: 100vh;
    min-height: 100svh;
    /* padding: 10px; */
}

.login-card {
    min-height: calc(100vh - 20px);
    min-height: calc(100svh - 20px);
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    overflow: hidden;
    background: #f8eee3;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 22px 60px rgba(39, 22, 13, 0.22);
}

.login-visual {
    position: relative;
    min-height: 100%;
    background: #b9dbf2;
}

.login-visual::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(47, 28, 12, 0.1));
}

.login-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 38px) clamp(24px, 5vw, 72px);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 252, 248, 0.72) 28%, transparent 46%),
        linear-gradient(180deg, #fffaf4, #f7ecdf);
}

.login-content-inner {
    width: min(100%, 360px);
}

.login-logo-badge {
    width: clamp(60px, 7vh, 68px);
    height: clamp(60px, 7vh, 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(18px, 2.6vh, 24px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 0 0 1px rgba(222, 205, 189, 0.8),
        0 10px 24px rgba(104, 67, 39, 0.08);
}

.login-logo-badge img {
    width: clamp(42px, 5.3vh, 48px);
    height: auto;
    display: block;
}

.login-title {
    margin: 0;
    text-align: center;
    font-family: 'Manrope', 'Nunito', 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: 0.01em;
    color: #4d2f1f;
}

.login-subtitle {
    margin: 10px 0 22px;
    text-align: center;
    color: #b17144;
    font-family: 'Manrope', 'Nunito', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    /* line-height: 19.2px; */
    letter-spacing: 0.04em;
}

.auth-page-subtitle strong {
    color: #6d4328;
}

.login-form {
    gap: 12px;
}

.login-form .field-group label {
    margin-bottom: 6px;
    color: #943c00;
    font-family: 'Manrope', 'Nunito', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.04em;
}

.input-shell {
    position: relative;
}

.login-input {
    height: 44px;
    margin-bottom: 0;
    border-radius: 14px;
    border: 1.4px solid rgba(210, 187, 169, 0.9);
    background: rgba(255, 255, 255, 0.78);
    padding: 0 16px;
}

.input-shell.has-action .login-input {
    padding-right: 48px;
}

.login-input::placeholder,
.login-input[type='password']::placeholder,
.login-input[inputmode='numeric']::placeholder {
    color: rgba(179, 138, 107, 0.85);
    font-size: 0.88rem;
    letter-spacing: 0;
}

.login-input:focus {
    transform: none;
    border-color: #b87943;
    box-shadow: 0 0 0 4px rgba(184, 121, 67, 0.14);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: #cf8c5c;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.password-toggle:hover,
.password-toggle.is-active {
    color: #9b5f32;
}

.login-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 0;
    font-size: 0.76rem;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a36d45;
    font-weight: 700;
    cursor: pointer;
}

.remember-option input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #8a552a;
}

.login-link {
    color: #b0703d;
    font-weight: 800;
}

.verification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    font-size: 0.76rem;
}

.verification-note {
    color: #9d7c62;
    line-height: 1.4;
}

.resend-button {
    padding: 0;
    border: 0;
    background: none;
    color: #b0703d;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.resend-button:hover:not(:disabled) {
    color: #8b5226;
}

.resend-button:disabled {
    color: #ceb7a2;
    cursor: not-allowed;
}

.login-form .storybook-button {
    height: 46px;
    margin-top: 2px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%),
        linear-gradient(180deg, #8c5627, #5d320f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 24px rgba(93, 50, 15, 0.2);
}

.login-form .storybook-button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 14px 28px rgba(93, 50, 15, 0.24);
}

body.sidekick-admin[data-page='login'] .form-feedback,
body.sidekick-admin[data-page='forgot-password'] .form-feedback,
body.sidekick-admin[data-page='reset-password'] .form-feedback {
    min-height: 18px;
    margin-top: 0;
    text-align: center;
}

body.sidekick-admin[data-page='forgot-password'] .dev-otp-panel {
    margin: 4px 0 0;
}

@media (min-width: 1081px) {
    body.sidekick-admin[data-page='login'],
    body.sidekick-admin[data-page='forgot-password'],
    body.sidekick-admin[data-page='reset-password'] {
        overflow: hidden;
    }

    .login-shell {
        height: 100vh;
        height: 100svh;
    }

    .login-card {
        height: 100%;
        min-height: 0;
    }
}

.dev-otp-panel {
    margin: -4px 0 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.84);
    border: 1px solid rgba(207, 151, 112, 0.35);
    box-shadow: 0 12px 24px rgba(98, 61, 35, 0.08);
}

.dev-otp-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9f755a;
}

.dev-otp-code {
    margin-top: 8px;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.24em;
    color: #4a2d20;
}

.dev-otp-hint {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #8d6f5a;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    background: #533420;
    transition: grid-template-columns 0.22s ease;
}

.dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
        linear-gradient(180deg, #52331e, #452a18);
    color: rgba(255, 246, 236, 0.95);
    padding: 0 12px 18px 14px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
    transition: padding 0.22s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 10px 0 0;
    transition: margin 0.22s ease, font-size 0.22s ease;
}

.sidebar-brand-logo {
    width: 118px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(24, 10, 3, 0.2));
    transition: width 0.22s ease;
}

.sidebar-nav {
    margin-top: 22px;
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 248, 240, 0.86);
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item span {
    white-space: nowrap;
    transition: opacity 0.16s ease, width 0.16s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 252, 248, 0.98);
    transform: translateX(1px);
}

.nav-item.active {
    background: #fff7f0;
    color: #b26d36;
    box-shadow:
        inset 0 0 0 1px rgba(178, 109, 54, 0.08),
        0 8px 16px rgba(39, 22, 13, 0.16);
}

.nav-item-icon {
    width: 15px;
    height: 15px;
    opacity: 0.9;
    flex: 0 0 auto;
}

.sidebar-spacer {
    flex: 1;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 248, 240, 0.92);
    background: none;
    border: 0;
    padding: 8px 10px;
    cursor: pointer;
}

.logout-button span:last-child {
    white-space: nowrap;
    transition: opacity 0.16s ease, width 0.16s ease;
}

.logout-dot {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #b16b34;
    box-shadow: 0 8px 16px rgba(30, 13, 8, 0.2);
}

.dashboard-main {
    background: #f5efe7;
    padding: 0 12px 0 0;
}

.dashboard-frame {
    min-height: 100vh;
    border-radius: 0 4px 4px 0;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
        #faf7f2;
    box-shadow: inset 0 0 0 1px rgba(144, 102, 72, 0.11);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px 18px 14px 18px;
    border-bottom: 1px solid rgba(224, 208, 194, 0.7);
    overflow: visible;
}

.page-title-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-pill {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -30px;
    border-radius: 999px;
    background: #fffdf9;
    border: 1px solid rgba(221, 204, 188, 0.9);
    box-shadow: 0 4px 10px rgba(79, 46, 26, 0.08);
    color: #8e5f3f;
    font-weight: 700;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    appearance: none;
    outline: none;
}

.back-pill:hover {
    background: #fff6ef;
}

.back-pill-icon {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.dashboard-shell.is-sidebar-collapsed .back-pill-icon {
    transform: rotate(180deg);
}

.page-title {
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 1.18rem;
    line-height: 1;
    color: #b16a35;
}

.profile-menu {
    position: relative;
}

.profile-chip,
.range-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px 10px 6px 8px;
    box-shadow: 0 8px 18px rgba(91, 62, 40, 0.08);
    cursor: pointer;
    appearance: none;
    outline: none;
}

.range-chip {
    font-size: 0.82rem;
    color: #7f6653;
    padding: 8px 12px;
    box-shadow: 0 10px 18px rgba(91, 62, 40, 0.05);
}

.avatar {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #b16d36, #8a5426);
    color: white;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.avatar.lg {
    width: 36px;
    height: 36px;
}

.profile-meta {
    display: grid;
    line-height: 1.1;
    text-align: left;
}

.profile-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #4c2f20;
}

.profile-role {
    font-size: 0.7rem;
    color: #a48a75;
}

.profile-arrow {
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.profile-menu.is-open .profile-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 214px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(61, 35, 18, 0.12);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 15;
}

.profile-menu.is-open .profile-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(222, 209, 196, 0.8);
}

.profile-dropdown-copy {
    min-width: 0;
}

.profile-dropdown-action {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: #f7f1ea;
    color: #6f4b33;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.profile-dropdown-action:hover {
    background: #efe2d5;
}

.dashboard-content {
    padding: 18px 18px 18px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.section-title {
    margin: 0;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    color: #4f2f21;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card,
.panel-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(98, 61, 35, 0.045);
}

.metric-card {
    min-height: 122px;
    padding: 16px 16px 14px;
}

.metric-card .metric-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 24px;
}

.metric-label {
    font-size: 0.79rem;
    color: #8f7561;
}

.metric-value {
    margin-top: 8px;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 1.62rem;
    line-height: 1;
    color: #482d20;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    font-size: 0.66rem;
    color: #7d6855;
}

.metric-trend::before {
    font-size: 0.88rem;
    font-weight: 800;
}

.metric-trend.positive::before {
    content: '↗';
    color: #92ab2c;
}

.metric-trend.negative::before {
    content: '↘';
    color: #cf7265;
}

.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 14px;
    margin-bottom: 14px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(210px, 0.56fr) minmax(240px, 0.72fr);
    gap: 14px;
}

.panel-card {
    padding: 15px 16px 14px;
}

.chart-title {
    margin: 0 0 10px;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 0.93rem;
    color: #4f2f21;
}

.line-chart {
    width: 100%;
    height: 222px;
}

.line-chart text {
    fill: #8d7663;
    font-size: 11px;
    font-family: 'Nunito', sans-serif;
}

.bar-chart-shell {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    min-height: 208px;
}

.bar-axis {
    display: grid;
    grid-template-rows: repeat(4, 1fr) 18px;
    height: 100%;
    padding: 8px 0 18px;
    font-size: 0.68rem;
    color: #9d866f;
}

.bar-axis span {
    align-self: end;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 20px;
    min-height: 186px;
    padding: 8px 8px 0;
    position: relative;
}

.bar-item {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.bar-column {
    width: 40px;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.bar-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6f5644;
}

.breakdown-wrap {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 224px;
}

.donut-chart {
    width: 146px;
    height: 146px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(198, 173, 149, 0.12);
}

.donut-chart::after {
    position: absolute;
    inset: 38px;
    content: '';
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(194, 161, 132, 0.12);
}

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

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: #604636;
}

.legend-item strong {
    min-width: 44px;
    text-align: right;
}

.legend-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.conversion-card .metric-value {
    font-size: 3rem;
    color: var(--accent-green);
}

.conversion-secondary {
    margin-top: 30px;
    font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
    font-size: 2.1rem;
    color: var(--accent-red);
}

.conversion-label {
    margin-top: 6px;
    color: #8e7662;
    font-size: 0.84rem;
}

.action-list {
    display: grid;
    gap: 18px;
    padding-top: 28px;
}

.action-button {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    appearance: none;
}

.action-button:hover {
    transform: translateY(-1px);
}

.action-button.green {
    background: #95ab2d;
}

.action-button.brown {
    background: #a76128;
}

.action-button.purple {
    background: #7571ba;
}

.dashboard-message {
    min-height: 0;
    margin-top: 10px;
    color: #9f7c64;
    font-size: 0.84rem;
}

.dashboard-message:empty {
    display: none;
}

.dashboard-shell.is-sidebar-collapsed .sidebar {
    padding-left: 10px;
    padding-right: 10px;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-brand {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-brand-logo {
    width: 46px;
}

.dashboard-shell.is-sidebar-collapsed .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.dashboard-shell.is-sidebar-collapsed .nav-item span,
.dashboard-shell.is-sidebar-collapsed .logout-button span:last-child {
    width: 0;
    opacity: 0;
    overflow: hidden;
}

.dashboard-shell.is-sidebar-collapsed .logout-button {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 320px;
    }

    .login-content {
        padding: 28px 24px 32px;
    }

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

    .charts-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-top: 0;
        border-radius: 0 0 26px 26px;
    }

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

    .dashboard-main {
        padding: 0;
    }

    .dashboard-frame {
        border-radius: 0;
    }

    .back-pill {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .login-shell {
        /* padding: 8px; */
    }

    .login-card {
        min-height: calc(100vh - 16px);
        min-height: calc(100svh - 16px);
    }

    .login-visual {
        min-height: 220px;
    }

    .login-content {
        padding: 24px 18px 28px;
    }

    .login-content-inner {
        width: 100%;
    }

    .login-logo-badge {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .login-logo-badge img {
        width: 42px;
    }

    .login-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-link {
        align-self: flex-end;
    }

    .verification-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .resend-button {
        align-self: flex-end;
    }

    .storybook-shell {
        padding: 8px;
    }

    .storybook-card {
        min-height: calc(100vh - 16px);
        border-radius: 22px;
    }

    .storybook-border {
        inset: 12px;
        border-width: 4px;
    }

    .auth-stage {
        padding: 26px 16px;
    }

    .brand-mark {
        width: 82px;
        height: 82px;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-dropdown {
        right: auto;
        left: 0;
        width: min(92vw, 214px);
    }

    .profile-chip,
    .range-chip {
        max-width: 100%;
    }

    .breakdown-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .bar-chart-shell {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
    }

    .bar-chart {
        gap: 12px;
    }
}

body.sidekick-admin[data-page='dashboard'] {
    background: #ffffff;
    color: #252525;
}

body.sidekick-admin[data-page='profile'] {
    background: #ffffff;
    color: #242424;
}

body.sidekick-admin[data-page='game-management'] {
    background: #ffffff;
    color: #242424;
}

.dashboard-shell-modern {
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #ffffff;
    overflow: hidden;
}

.dashboard-shell-modern .sidebar-modern {
    width: 280px;
    min-width: 280px;
    padding: 8px 12px 18px;
    background: linear-gradient(180deg, #fff6e8 0%, #fffaf3 100%);
    color: #5d4936;
    box-shadow: inset -1px 0 0 rgba(233, 214, 188, 0.72);
}

.dashboard-shell-modern .sidebar-brand {
    min-height: 74px;
    padding: 6px 6px 14px;
    justify-content: flex-start;
}

.dashboard-shell-modern .sidebar-brand-logo {
    width: 86px;
    filter: none;
}

.dashboard-shell-modern .sidebar-nav-modern {
    margin-top: 2px;
    gap: 6px;
    padding: 0;
}

.dashboard-shell-modern .nav-item {
    min-height: 38px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #604b37;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.28;
    transform: none;
}

.dashboard-shell-modern .nav-item span {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.dashboard-shell-modern .nav-item:hover {
    background: rgba(255, 191, 103, 0.14);
    color: #3f2f21;
    transform: none;
}

.dashboard-shell-modern .nav-item.active {
    background: #ffe0ad;
    color: #8b5a22;
    box-shadow: inset 0 0 0 1px rgba(248, 204, 144, 0.9);
}

.dashboard-shell-modern .nav-item-icon-modern {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
    opacity: 0.96;
}

.dashboard-shell-modern .dashboard-main-modern {
    min-width: 0;
    background: #ffffff;
    padding: 0;
}

.dashboard-shell-modern .dashboard-frame-modern {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.dashboard-shell-modern .dashboard-topbar {
    min-height: 76px;
    padding: 10px 14px 8px 16px;
    border-bottom: 0;
}

.dashboard-heading-title {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1e1f22;
}

.dashboard-topbar-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.dashboard-subpage-heading {
    display: none;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-subpage-heading.is-active {
    display: block;
}

.dashboard-heading-title.is-hidden {
    display: none;
}

.dashboard-shell-modern .dashboard-topbar.is-subpage {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 8px;
}

.dashboard-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-chip {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #4e4e4e;
    box-shadow: 0 10px 26px rgba(25, 25, 25, 0.08);
    cursor: pointer;
}

.notification-chip svg {
    width: 20px;
    height: 20px;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5a128;
    box-shadow: 0 0 0 2px #fff;
}

.profile-menu-modern {
    position: relative;
}

.profile-chip-modern {
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(23, 23, 23, 0.08);
}

.profile-chip-modern.is-loading {
    cursor: wait;
}

.profile-chip-modern.is-loading .profile-name,
.profile-chip-modern.is-loading .profile-email {
    display: block;
    border-radius: 999px;
    color: transparent;
    background: linear-gradient(90deg, #ece7df 0%, #f8f4ee 45%, #ece7df 100%);
    background-size: 180% 100%;
    animation: profileLineLoading 1.1s ease-in-out infinite;
}

.profile-chip-modern.is-loading .profile-name {
    width: 104px;
    height: 13px;
}

.profile-chip-modern.is-loading .profile-email {
    width: 138px;
    height: 10px;
}

.profile-chip-modern.is-loading .profile-arrow {
    opacity: 0.35;
}

.avatar-modern {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    background:
        radial-gradient(circle at 50% 72%, #d9b595 0 22%, transparent 23%),
        radial-gradient(circle at 50% 43%, #f0c9a8 0 23%, transparent 24%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.34) 0 9%, transparent 10%),
        linear-gradient(180deg, #594131 0 22%, #765844 22% 34%, #f0c9a8 34% 68%, #5b879a 68% 100%);
    box-shadow: 0 6px 14px rgba(55, 36, 20, 0.18);
    color: transparent;
    font-size: 0;
}

.avatar-modern.is-loading {
    position: relative;
    background: #f8f4ee;
    color: transparent;
}

.avatar-modern.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d9c9b8;
    border-top-color: #9b5e2f;
    animation: profileAvatarLoading 0.8s linear infinite;
}

.profile-meta-modern {
    min-width: 0;
    gap: 1px;
}

.dashboard-shell-modern .profile-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #2d2d2d;
}

.profile-email {
    font-size: 0.72rem;
    color: #818181;
}

@keyframes profileLineLoading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

@keyframes profileAvatarLoading {
    to {
        transform: rotate(360deg);
    }
}

.dashboard-shell-modern .profile-arrow {
    color: #9c9c9c;
}

.profile-dropdown-modern {
    top: calc(100% + 10px);
    width: 138px;
    padding: 4px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 32px rgba(20, 20, 20, 0.12);
}

.profile-dropdown-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.profile-dropdown-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.profile-dropdown-link + .profile-dropdown-link {
    border-top: 1px solid #efefef;
}

.profile-dropdown-link:hover {
    background: #faf7f1;
}

.dashboard-content-modern {
    flex: 1 1 auto;
    min-height: 0;
    padding: 2px 14px 22px 16px;
    display: flex;
    flex-direction: column;
}

.overview-grid-modern {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.metric-card-modern {
    position: relative;
    min-height: 136px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(32, 32, 32, 0.04);
    box-shadow: none;
}

.metric-card-modern .metric-card-head {
    min-height: 58px;
    padding: 12px 14px 10px;
    display: flex;
    align-items: flex-start;
    background: var(--metric-band, rgba(0, 0, 0, 0.04));
}

.metric-card-modern .metric-card-top {
    display: grid;
    gap: 8px;
}

.metric-icon-modern {
    width: 24px;
    height: 24px;
    color: #181818;
}

.metric-card-modern .metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(54, 54, 54, 0.82);
}

.metric-card-modern .metric-value {
    position: relative;
    z-index: 1;
    margin-top: 0;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-size: 2.05rem;
    font-weight: 800;
    color: #202020;
}

.metric-card-modern .metric-card-body {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: flex-end;
    padding: 16px 14px 14px;
}

.metric-watermark-icon {
    position: absolute;
    right: 10px;
    bottom: 7px;
    width: 58px;
    height: 58px;
    color: var(--metric-watermark, rgba(0, 0, 0, 0.1));
    opacity: 0.34;
    pointer-events: none;
}

.metric-card-modern.tone-green {
    background: #f5fbf5;
    --metric-band: #dff5e3;
    --metric-watermark: #caecd3;
}

.metric-card-modern.tone-amber {
    background: #fcf8ef;
    --metric-band: #f9eed5;
    --metric-watermark: #eddcba;
}

.metric-card-modern.tone-blue {
    background: #f4f7ff;
    --metric-band: #dde4fb;
    --metric-watermark: #d5dff8;
}

.metric-card-modern.tone-rose {
    background: #fff5f5;
    --metric-band: #fbe1e1;
    --metric-watermark: #f0cdcd;
}

.metric-card-modern.tone-pink {
    background: #fff5fb;
    --metric-band: #fbe2f5;
    --metric-watermark: #f3d1ec;
}

.metric-card-modern.tone-sky {
    background: #f3f8ff;
    --metric-band: #ddebfa;
    --metric-watermark: #cfe1f3;
}

.dashboard-canvas {
    flex: 1 1 auto;
    min-height: 140px;
    border-radius: 12px;
    background: transparent;
}

.dashboard-shell-modern .dashboard-message {
    margin-top: 12px;
    padding: 0 2px;
    color: #8a735f;
    font-size: 0.78rem;
}

.sidebar-logout-modern {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 12px 6px;
    border: 0;
    background: transparent;
    color: rgba(125, 99, 76, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-logout-modern svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.sidebar-logout-modern:hover {
    color: #7c5c3e;
}

@media (max-width: 1240px) {
    .dashboard-shell-modern {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .dashboard-shell-modern .sidebar-modern {
        width: 260px;
        min-width: 260px;
    }

    .overview-grid-modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dashboard-shell-modern {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .dashboard-shell-modern .sidebar-modern {
        width: 100%;
        min-width: 0;
        border-radius: 0;
        padding-bottom: 12px;
    }

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

    .dashboard-shell-modern .dashboard-topbar {
        padding: 16px;
    }

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

    .dashboard-canvas {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .dashboard-shell-modern .sidebar-nav-modern {
        grid-template-columns: 1fr;
    }

    .dashboard-shell-modern .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 14px 10px;
    }

    .dashboard-heading-title {
        font-size: 1.5rem;
    }

    .dashboard-top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-chip-modern {
        max-width: calc(100vw - 88px);
    }

    .overview-grid-modern {
        grid-template-columns: 1fr;
    }

    .metric-card-modern .metric-value {
        font-size: 1.6rem;
    }

    .dashboard-canvas {
        min-height: 120px;
    }
}

body.sidekick-admin[data-page='user-role-management'] {
    background: #ffffff;
    color: #242424;
}

body.sidekick-admin[data-page='book-management'],
body.sidekick-admin[data-page='home-screen-management'],
body.sidekick-admin[data-page='avatar-assets-management'],
body.sidekick-admin[data-page='faqs-management'],
body.sidekick-admin[data-page='cms-management'],
body.sidekick-admin[data-page='game-management'] {
    background: #ffffff;
    color: #242424;
}

.user-role-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 16px 28px;
    overflow: auto;
}

.user-role-app {
    display: grid;
    gap: 14px;
    align-content: start;
}

.management-tabs {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 10px;
}

.module-placeholder-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 16px 28px;
    overflow: auto;
}

.module-placeholder-card {
    padding: 24px;
    display: grid;
    gap: 16px;
    align-content: start;
}

.module-placeholder-badge {
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(217, 130, 0, 0.12);
    color: #9b5518;
    font-size: 0.76rem;
    font-weight: 800;
}

.module-placeholder-copy {
    max-width: 680px;
    display: grid;
    gap: 10px;
}

.module-placeholder-copy p {
    margin: 0;
    color: #6f665b;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.module-placeholder-actions a {
    text-decoration: none;
}

.management-tab {
    min-width: 114px;
    height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(217, 136, 14, 0.8);
    border-radius: 12px;
    background: #ffffff;
    color: #6a573f;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.management-tab.is-active {
    background: linear-gradient(180deg, #ea9200, #d98200);
    border-color: #d98200;
    color: #ffffff;
}

.management-card,
.management-form-card,
.management-detail-card {
    border-radius: 14px;
    background: #f7f8fd;
    border: 1px solid rgba(223, 226, 236, 0.92);
}

.management-card-list {
    padding: 12px;
}

.management-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.management-card-title,
.management-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #20242d;
}

.management-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.management-search {
    position: relative;
    width: min(100%, 208px);
}

.management-search input,
.management-field input,
.management-field textarea,
.management-field select {
    width: 100%;
    border: 1.4px solid rgba(229, 214, 204, 0.96);
    border-radius: 16px;
    background: #ffffff;
    color: #6f4a23;
    outline: none;
}

.management-search input,
.management-field input,
.management-field select {
    height: 40px;
    padding: 0 14px;
}

.management-search input {
    padding-left: 40px;
    padding-right: 40px;
    color: #66594d;
}

.management-search input[type='search']::-webkit-search-cancel-button,
.management-search input[type='search']::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.management-search input::-ms-clear,
.management-search input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.management-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #8d8375;
    transform: translateY(-50%);
}

.management-search-icon svg,
.management-filter-icon svg {
    display: block;
}

.management-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8d8375;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    z-index: 2;
}

.management-search-clear:hover {
    background: rgba(141, 131, 117, 0.09);
    color: #9b5518;
}

.management-search input:not(:placeholder-shown) ~ .management-search-clear {
    opacity: 1;
    pointer-events: auto;
}

.management-search[data-has-value='true'] .management-search-clear {
    opacity: 1;
    pointer-events: auto;
}

.management-filter {
    position: relative;
}

.management-filter-button,
.management-secondary-button,
.management-page-button {
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1.3px solid rgba(223, 210, 201, 0.92);
    background: #ffffff;
    color: #574539;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.management-primary-button {
    height: 36px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(180deg, #8f5a24, #5b320f);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(91, 50, 15, 0.14);
}

.management-primary-button.is-danger {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(180deg, #dd684f, #b3412a);
}

.management-primary-button:disabled,
.management-secondary-button:disabled,
.management-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.management-filter-menu,
.management-row-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 136px;
    padding: 6px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 238, 0.94);
    box-shadow: 0 18px 34px rgba(30, 30, 30, 0.1);
    z-index: 12;
}

.management-filter-option,
.management-row-menu-item {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #383838;
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
}

.management-filter-option:hover,
.management-filter-option.is-selected,
.management-row-menu-item:hover {
    background: #fbf4ec;
}

.management-row-menu-item.is-danger {
    color: #bf4a36;
}

.management-filter-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d98200;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.management-filter-menu-form {
    width: min(328px, calc(100vw - 24px));
    padding: 14px;
    display: grid;
    gap: 12px;
}

.management-filter-title {
    text-align: center;
    color: #3c2e24;
    font-size: 0.98rem;
    font-weight: 800;
}

.management-filter-field {
    display: grid;
    gap: 6px;
}

.management-filter-field label {
    color: #9b5518;
    font-size: 0.74rem;
    font-weight: 800;
}

.management-filter-select-wrap,
.management-filter-date-wrap {
    position: relative;
}

.management-filter-menu-form select,
.management-filter-menu-form input[type='date'] {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 14px;
    border: 1.4px solid rgba(229, 214, 204, 0.96);
    border-radius: 16px;
    background: #ffffff;
    color: #6f4a23;
    outline: none;
    font: inherit;
    font-size: 0.82rem;
    appearance: none;
}

.management-filter-menu-form input[type='date']::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.management-filter-select-icon,
.management-filter-date-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #b06a2a;
    transform: translateY(-50%);
    pointer-events: none;
}

.management-filter-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding-top: 2px;
}

.management-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c6258;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.management-filter-check input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #b06a2a;
}

.management-filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.management-filter-actions .management-secondary-button,
.management-filter-actions .management-primary-button {
    flex: 1 1 0;
    height: 40px;
    border-radius: 14px;
    font-size: 0.82rem;
}

.management-table-wrap {
    overflow: auto;
}

.management-table {
    width: 100%;
    min-width: 880px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.management-table th {
    height: 32px;
    padding: 0 16px;
    background: #e08a00;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: left;
}

.management-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.management-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.management-table td {
    padding: 12px 16px;
    background: #ffffff;
    color: #222222;
    font-size: 0.84rem;
    border-top: 1px solid rgba(234, 237, 243, 0.88);
    border-bottom: 1px solid rgba(234, 237, 243, 0.88);
}

.management-table td:first-child {
    border-left: 1px solid rgba(234, 237, 243, 0.88);
    border-radius: 8px 0 0 8px;
    width: 70px;
}

.management-table td:last-child {
    border-right: 1px solid rgba(234, 237, 243, 0.88);
    border-radius: 0 8px 8px 0;
}

.management-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.management-sort-glyph {
    opacity: 0.75;
}

.management-sort-glyph.is-active {
    opacity: 1;
}

.actions-col {
    width: 76px;
    text-align: center;
}

.management-row-actions {
    position: relative;
    display: inline-flex;
}

.management-row-toggle {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #58453c;
    cursor: pointer;
}

.management-row-toggle:hover {
    background: #f8f2eb;
}

.management-status-pill {
    min-width: 74px;
    height: 22px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.management-status-pill.status-active {
    background: rgba(53, 191, 77, 0.12);
    border: 1px solid #35bf4d;
    color: #1f9a39;
}

.management-status-pill.status-inactive,
.management-status-pill.status-suspended {
    background: rgba(255, 92, 92, 0.1);
    border: 1px solid #ff5c5c;
    color: #df3f3f;
}

.management-status-pill.status-deleted {
    background: rgba(120, 120, 120, 0.12);
    border: 1px solid #8f8f8f;
    color: #666666;
}

.management-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4px 2px;
    color: #75675b;
    font-size: 0.8rem;
}

.management-pagination-size {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.management-pagination-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.management-pagination-select {
    width: 54px;
    height: 34px;
    padding: 0 24px 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(223, 210, 201, 0.92);
    background: #ffffff;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
    appearance: none;
    cursor: pointer;
}

.management-pagination-select-icon {
    position: absolute;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b6657;
    pointer-events: none;
}

.management-pagination-select-icon svg {
    width: 12px;
    height: 12px;
}

.management-pagination-label {
    color: #574539;
    font-size: 0.78rem;
    font-weight: 500;
}

.management-pagination-actions,
.management-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.management-pagination-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.management-page-button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
}

.management-page-button.is-icon {
    width: 36px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.management-page-button.is-active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.management-page-button:hover:not(:disabled):not(.is-active) {
    background: #f6efe8;
}

.management-page-ellipsis {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(223, 210, 201, 0.92);
    background: #ffffff;
    color: #8f8376;
    font-size: 0.86rem;
    font-weight: 700;
}

.management-empty-state,
.management-table-loading,
.management-view-loading {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f7267;
    font-size: 0.92rem;
    font-weight: 700;
}

.management-alert,
.management-inline-alert {
    min-height: 42px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.management-alert.is-success {
    background: rgba(53, 191, 77, 0.1);
    color: #1f8a38;
}

.management-alert.is-error,
.management-inline-alert.is-error {
    background: rgba(229, 95, 95, 0.1);
    color: #c14c4c;
}

.management-alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.15rem;
    cursor: pointer;
}

.management-subpage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.management-topbar-subpage,
.management-subpage-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.management-topbar-subpage {
    min-width: 0;
}

.management-topbar-copy {
    min-width: 0;
}

.management-back-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f4f5fb;
    color: #2b2f37;
    cursor: pointer;
}

.management-subpage-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #24262d;
}

.management-breadcrumb {
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #908679;
    font-size: 0.72rem;
    font-weight: 700;
}

.management-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.management-form-section,
.management-detail-section {
    display: grid;
    gap: 10px;
}

.management-form-card,
.management-detail-card {
    padding: 14px;
}

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

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

.management-field,
.management-detail-item {
    min-width: 0;
}

.management-field-full,
.management-detail-item.is-wide {
    grid-column: 1 / -1;
}

.management-field label,
.management-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #a55412;
    font-size: 0.82rem;
    font-weight: 800;
}

.management-field textarea {
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
}

.management-multi-select {
    min-height: 196px;
    height: auto;
    padding: 10px 14px;
}

.management-multi-select option {
    padding: 8px 0;
}

.management-assignee-dropdown {
    position: relative;
}

.management-assignee-trigger {
    width: 100%;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1.4px solid rgba(229, 214, 204, 0.96);
    border-radius: 16px;
    background: #ffffff;
    color: #6f4a23;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.management-assignee-trigger > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.management-assignee-trigger:disabled {
    cursor: wait;
    opacity: 0.68;
}

.management-assignee-menu {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(320px, 46vh);
    padding: 8px;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(229, 231, 238, 0.94);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(30, 30, 30, 0.12);
}

.management-assignee-option {
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: #574539;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.management-assignee-option:hover,
.management-assignee-option.is-selected {
    background: #fbf4ec;
}

.management-assignee-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.management-assignee-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1.4px solid rgba(191, 174, 157, 0.96);
    background: #ffffff;
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
}

.management-assignee-option.is-selected .management-assignee-check {
    border-color: #8f5a24;
    background: #8f5a24;
}

.management-assignee-empty {
    padding: 12px;
    color: #8b7c6d;
    font-size: 0.82rem;
    font-weight: 700;
}

.management-inline-reset {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9b5518;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.management-select-wrap {
    position: relative;
}

.management-select-wrap select {
    appearance: none;
    padding-right: 42px;
}

.management-select-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #bf6d27;
    transform: translateY(-50%);
    pointer-events: none;
}

.management-field-error {
    margin-top: 6px;
    color: #d04f4f;
    font-size: 0.74rem;
    font-weight: 700;
}

.management-form-note {
    margin-top: 12px;
    color: #8a7c70;
    font-size: 0.76rem;
    font-weight: 700;
}

.management-empty-note {
    padding: 14px;
    border: 1px dashed rgba(214, 193, 176, 0.92);
    border-radius: 16px;
    background: #ffffff;
    color: #8a7c70;
    font-size: 0.8rem;
    font-weight: 700;
}

.management-inline-check-field {
    margin-top: 14px;
}

.management-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5f4c3d;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.management-inline-check input {
    width: 16px;
    height: 16px;
    accent-color: #9b8577;
}

.management-detail-value {
    display: block;
    color: #2b2219;
    font-size: 0.92rem;
    font-weight: 800;
}

.management-assigned-users-card {
    padding: 14px;
}

.management-assigned-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.management-assigned-users-title {
    margin: 0;
    color: #20242d;
    font-size: 0.92rem;
    font-weight: 800;
}

.management-assigned-users-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(234, 146, 0, 0.12);
    color: #a55412;
    font-size: 0.76rem;
    font-weight: 800;
}

.management-assigned-users-list {
    display: grid;
    gap: 10px;
}

.management-assigned-user {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-radius: 16px;
    border: 1px solid rgba(229, 214, 204, 0.96);
    background: #ffffff;
}

.management-assigned-user-copy,
.management-assigned-user-side {
    min-width: 0;
}

.management-assigned-user-name {
    color: #2b2219;
    font-size: 0.9rem;
    font-weight: 800;
}

.management-assigned-user-meta {
    margin-top: 4px;
    color: #7d6f62;
    font-size: 0.8rem;
    font-weight: 700;
    word-break: break-word;
}

.management-assigned-user-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.management-assigned-user-role {
    color: #a55412;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: right;
}

.permissions-card {
    padding: 12px;
}

.permissions-table {
    min-width: 920px;
}

.permissions-table th,
.permissions-table td {
    text-align: center;
}

.permissions-table th:nth-child(2),
.permissions-table td:nth-child(2) {
    text-align: left;
    min-width: 220px;
}

.management-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.management-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.management-check span {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.4px solid rgba(180, 170, 162, 0.94);
    background: #ffffff;
}

.management-check input:checked + span {
    background: #9b8577;
    border-color: #9b8577;
}

.management-modal-root,
.user-role-modal-root {
    position: relative;
    z-index: 30;
}

.management-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(24, 18, 13, 0.52);
}

.management-modal-card {
    width: min(100%, 360px);
    padding: 22px 18px 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 46px rgba(19, 14, 10, 0.18);
    text-align: center;
}

.management-modal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(228, 210, 197, 0.96);
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f2 100%);
}

.management-modal-icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.management-modal-title {
    margin: 0;
    color: #242424;
    font-size: 1.05rem;
    font-weight: 900;
}

.management-modal-copy {
    margin: 10px 0 18px;
    color: #756c63;
    font-size: 0.81rem;
    line-height: 1.5;
}

.management-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.management-modal-actions .management-secondary-button,
.management-modal-actions .management-primary-button {
    flex: 1 1 0;
}

.management-modal-card.is-delete {
    width: min(100%, 352px);
    padding: 28px 22px 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, #fffefe 0%, #fffaf6 100%);
}

.management-modal-card.is-delete .management-modal-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    border-color: rgba(232, 220, 212, 0.96);
    box-shadow: 0 14px 28px rgba(74, 51, 31, 0.08);
}

.management-modal-card.is-delete .management-modal-icon.is-danger {
    background: radial-gradient(circle at top, #fffaf6 0%, #fff0e8 58%, #fff8f3 100%);
}

.management-modal-card.is-delete .book-page-delete-icon {
    width: 26px;
    height: 26px;
}

.management-modal-card.is-delete .management-modal-title {
    color: #2a2118;
    font-size: 1.22rem;
}

.management-modal-card.is-delete .management-modal-copy {
    max-width: 228px;
    margin: 10px auto 20px;
    font-size: 0.83rem;
}

.management-modal-card.is-delete .management-modal-actions {
    gap: 12px;
}

.management-modal-card.is-delete .management-secondary-button,
.management-modal-card.is-delete .management-primary-button {
    height: 40px;
    border-radius: 14px;
}

.management-modal-card.is-preview {
    width: min(100%, 940px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    text-align: left;
}

.management-modal-card.is-preview.is-voice {
    width: min(100%, 780px);
}

.logout-modal-root {
    position: relative;
    z-index: 80;
}

.logout-modal-root[aria-hidden='true'] {
    display: none;
}

.logout-modal-root.is-open {
    display: block;
}

.logout-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18, 18, 18, 0.68);
}

.logout-modal-card {
    width: min(100%, 314px);
    padding: 22px 20px 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.logout-modal-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(232, 220, 212, 0.96);
    background: #ffffff;
    color: #e08a00;
}

.logout-modal-icon svg {
    width: 34px;
    height: 34px;
}

.logout-modal-title {
    margin: 0;
    color: #242424;
    font-size: 1.35rem;
    font-weight: 900;
}

.logout-modal-copy {
    max-width: 254px;
    margin: 10px auto 20px;
    color: #67605a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

.logout-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.logout-modal-cancel,
.logout-modal-confirm {
    height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.logout-modal-cancel {
    border: 1px solid rgba(229, 214, 204, 0.96);
    background: #ffffff;
    color: #5a3520;
}

.logout-modal-confirm {
    border: 0;
    background: linear-gradient(180deg, #8f5a24, #5b320f);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(91, 50, 15, 0.14);
}

.logout-modal-cancel:disabled,
.logout-modal-confirm:disabled {
    cursor: wait;
    opacity: 0.62;
}

.book-page-preview-modal {
    display: grid;
    gap: 16px;
}

.book-page-preview-media {
    height: min(70vh, 640px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fff7ef;
}

.book-page-preview-media-image,
.book-page-preview-media-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.book-page-preview-media-image {
    object-fit: contain;
    background: #fff;
}

.book-page-preview-empty {
    width: 100%;
    min-height: 320px;
    padding: 32px 24px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    color: #7e7164;
}

.book-page-preview-empty strong {
    color: #4c3527;
    font-size: 0.98rem;
    font-weight: 800;
}

.book-page-preview-empty span {
    max-width: 320px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.book-page-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.book-page-preview-actions .management-secondary-button,
.book-page-preview-actions .management-primary-button {
    flex: 0 0 auto;
    min-width: 160px;
}

.book-page-preview-voice {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fffdf8;
}

.book-page-preview-voice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.book-page-preview-voice-head strong {
    color: #4c3527;
    font-size: 0.88rem;
    font-weight: 900;
}

.book-page-preview-voice-head span {
    color: #8e7762;
    font-size: 0.76rem;
}

.book-page-preview-voice-text {
    margin: 0;
    color: #6f6258;
    font-size: 0.82rem;
    line-height: 1.5;
}

.book-page-voice-audio {
    width: 100%;
}

@media (max-width: 900px) {
    .management-card-head,
    .management-subpage-head,
    .management-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-toolbar {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .management-search {
        width: 100%;
    }

    .management-form-grid,
    .management-detail-grid {
        grid-template-columns: 1fr;
    }

    .management-assigned-users-head,
    .management-assigned-user {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-assigned-user-side {
        justify-items: flex-start;
    }

    .module-placeholder-card {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .user-role-content {
        padding: 14px;
    }

    .dashboard-topbar-main,
    .dashboard-subpage-heading,
    .management-topbar-subpage,
    .management-topbar-copy {
        width: 100%;
    }

    .management-tabs {
        width: 100%;
    }

    .management-tab {
        flex: 1 1 0;
        min-width: 0;
    }

    .management-modal-actions,
    .management-head-actions {
        width: 100%;
        flex-direction: column;
    }

    .management-modal-actions .management-secondary-button,
    .management-modal-actions .management-primary-button,
    .management-head-actions .management-secondary-button,
    .management-head-actions .management-primary-button {
        width: 100%;
    }

    .book-page-voice-tools .management-secondary-button {
        width: 100%;
        min-width: 0;
    }

    .management-filter-menu-form {
        width: calc(100vw - 24px);
        max-width: 328px;
    }
}

body.sidekick-admin[data-page='parent-management'] {
    background: #ffffff;
    color: #242424;
}

.parent-management-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 16px 28px;
    overflow: auto;
}

.parent-management-app {
    display: grid;
    gap: 14px;
    align-content: start;
}

.parent-list-card {
    padding: 12px;
}

.parent-list-table td:nth-child(5),
.parent-list-table th:nth-child(5),
.parent-list-table td:last-child,
.parent-list-table th:last-child {
    text-align: center;
}

.parent-row-view-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #574539;
    cursor: pointer;
}

.parent-row-view-button:hover {
    background: #f6efe8;
}

.parent-filter-menu {
    width: min(348px, calc(100vw - 20px));
    border-radius: 18px;
}

.parent-filter-card {
    padding: 14px 12px 12px;
    gap: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(34, 26, 20, 0.14);
}

.parent-filter-title {
    color: #4b3120;
    font-size: 1rem;
    font-weight: 800;
}

.parent-filter-field {
    gap: 8px;
}

.parent-filter-label {
    color: #b55c1c;
    font-size: 0.78rem;
    font-weight: 800;
}

.parent-filter-section-label {
    color: #3a312a;
    font-size: 0.84rem;
    font-weight: 800;
}

.parent-filter-select-wrap select {
    height: 40px;
    border-radius: 16px;
    border-color: rgba(231, 216, 206, 0.96);
    color: #b15b1d;
    font-size: 0.82rem;
    font-weight: 700;
}

.parent-filter-select-wrap .management-filter-select-icon {
    right: 13px;
    color: #c17535;
}

.parent-filter-check-grid {
    gap: 12px 20px;
    padding-top: 0;
}

.parent-filter-toggle {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5e534a;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.parent-filter-toggle:hover {
    background: rgba(139, 83, 29, 0.06);
}

.parent-filter-toggle:focus-visible {
    outline: 2px solid rgba(139, 83, 29, 0.22);
    outline-offset: 2px;
}

.parent-filter-toggle-box {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.4px solid #ddd3cb;
    border-radius: 3px;
    background: #ffffff;
    color: transparent;
    font-size: 0.6rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.parent-filter-toggle.is-selected .parent-filter-toggle-box {
    border-color: #8b531d;
    background: linear-gradient(180deg, #9f6429, #6a3d14);
    color: #ffffff;
}

.parent-filter-actions {
    gap: 8px;
    padding-top: 2px;
}

.parent-filter-actions .management-secondary-button,
.parent-filter-actions .management-primary-button {
    height: 36px;
    border-radius: 14px;
    font-size: 0.82rem;
}

.parent-filter-reset {
    border-color: rgba(226, 214, 205, 0.96);
    color: #68493d;
}

.parent-info-card,
.kid-basic-card,
.kid-history-card,
.kid-edit-card {
    padding: 14px;
}

.parent-summary-grid,
.kid-basic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
}

.kid-profile-stack,
.kid-edit-stack {
    display: grid;
    gap: 14px;
}

.kid-profile-card,
.kid-edit-card {
    border-radius: 14px;
    background: #f7f8fd;
    border: 1px solid rgba(223, 226, 236, 0.92);
    overflow: hidden;
}

.kid-profile-header {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    background: #f4f5fb;
    cursor: pointer;
    text-align: left;
}

.kid-profile-card.is-open .kid-profile-header {
    border-bottom: 1px solid rgba(230, 232, 240, 0.92);
}

.kid-profile-intro {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kid-profile-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffd79d;
    color: #7b4d1b;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.kid-profile-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.kid-profile-name {
    color: #302722;
    font-size: 0.94rem;
    font-weight: 800;
}

.kid-profile-meta {
    color: #7d7267;
    font-size: 0.76rem;
    font-weight: 700;
}

.kid-profile-chevron {
    color: #75675d;
    transition: transform 0.2s ease;
}

.kid-profile-card.is-open .kid-profile-chevron {
    transform: rotate(180deg);
}

.kid-profile-body {
    padding: 14px;
    display: grid;
    gap: 14px;
}

.parent-subsection-title {
    margin: 0 0 12px;
    color: #1f2330;
    font-size: 0.92rem;
    font-weight: 800;
}

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

.kid-metric-card {
    padding: 18px 22px 20px;
    display: grid;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid rgba(232, 225, 217, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.kid-metric-card.is-soft-rose {
    background: linear-gradient(135deg, #fcf2ef 0%, #fff9f7 100%);
}

.kid-metric-card.is-soft-gold {
    background: linear-gradient(135deg, #fff8e8 0%, #fffdf4 100%);
}

.kid-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kid-metric-title {
    color: #2c2620;
    font-size: 0.94rem;
    font-weight: 800;
}

.kid-metric-art {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(225, 211, 199, 0.72);
    flex-shrink: 0;
}

.kid-metric-art-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.kid-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #7a6d63;
    font-size: 0.84rem;
    font-weight: 700;
}

.kid-metric-row + .kid-metric-row {
    padding-top: 10px;
    border-top: 1px solid rgba(216, 199, 186, 0.36);
}

.kid-metric-label {
    color: #7a6d63;
}

.kid-metric-label.is-highlight {
    color: #e38d06;
}

.kid-metric-row strong {
    color: #55372a;
    font-size: 1rem;
    font-weight: 900;
}

.kid-metric-row .is-positive {
    color: #1f9a39;
}

.kid-metric-row .is-highlight {
    color: #e08a00;
}

.kid-history-table {
    min-width: 860px;
    border-spacing: 0;
    table-layout: fixed;
}

.kid-history-table-wrap {
    border-radius: 8px;
    overflow-x: auto;
}

.kid-history-table th {
    height: 54px;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: 800;
    vertical-align: middle;
}

.kid-history-table th:first-child {
    width: 25%;
}

.kid-history-table th:nth-child(2) {
    width: 25%;
}

.kid-history-table th:nth-child(3) {
    width: 25%;
}

.kid-history-table th:nth-child(4) {
    width: 25%;
}

.kid-history-table th > span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.kid-history-sort-mark {
    margin-left: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.98;
}

.kid-history-table td {
    height: 68px;
    padding: 0 18px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 500;
    border-top: 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    vertical-align: middle;
}

.kid-history-table td:first-child {
    width: auto;
    border-left: 0;
    border-radius: 0;
}

.kid-history-table td:last-child {
    border-right: 0;
    border-radius: 0;
}

.kid-history-table tbody tr:last-child td {
    border-bottom-color: rgba(229, 231, 235, 0.7);
}

.kid-history-empty {
    min-height: 92px;
}

.parent-score-pill {
    min-width: 66px;
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(53, 191, 77, 0.12);
    border: 1px solid #35bf4d;
    color: #1f9a39;
    font-size: 0.94rem;
    font-weight: 800;
}

.parent-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kid-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kid-edit-card-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.parent-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 12px;
    background: rgba(254, 242, 242, 0.92);
    color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.parent-delete-icon {
    width: 19px;
    height: 19px;
    pointer-events: none;
}

.parent-icon-button:hover,
.parent-icon-button:focus-visible {
    border-color: rgba(220, 38, 38, 0.36);
    background: #fee2e2;
    color: #b91c1c;
    transform: translateY(-1px);
}

.parent-icon-button:focus-visible {
    outline: 2px solid rgba(206, 115, 80, 0.55);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .parent-summary-grid,
    .kid-basic-grid,
    .parent-form-grid,
    .kid-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .parent-management-content {
        padding: 14px;
    }

    .parent-summary-grid,
    .kid-basic-grid,
    .kid-metric-grid,
    .parent-form-grid,
    .kid-form-grid {
        grid-template-columns: 1fr;
    }

    .management-pagination,
    .kid-edit-card-head,
    .kid-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-pagination-size {
        width: 100%;
    }

    .management-pagination-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.book-management-content {
    gap: 16px;
}

.book-management-app,
.book-management-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.book-form-card,
.book-view-card {
    overflow: hidden;
}

.book-list-card {
    overflow: visible;
}

.book-list-card .management-card-head {
    position: relative;
    z-index: 20;
}

.book-list-head-copy,
.book-card-copy {
    min-width: 0;
}

.book-list-head-copy {
    display: grid;
    gap: 4px;
}

.book-card-copy {
    margin: 0;
    color: #6f665b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.book-detail-screen-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.book-detail-screen-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.book-detail-screen-title {
    margin: 0;
    color: #241d16;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.12;
}

.book-detail-tabs {
    margin-bottom: 14px;
}

.book-detail-view {
    display: grid;
    gap: 14px;
}

.book-detail-overview-card,
.book-detail-metrics-card,
.book-pages-card.is-readonly,
.book-quiz-panel.is-readonly {
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: linear-gradient(180deg, #fffefd 0%, #fffaf5 100%);
}

.book-detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.65fr);
    gap: 18px;
    align-items: start;
}

.book-detail-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.book-detail-preview {
    min-height: 168px;
    padding: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ef 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-detail-preview.is-secondary {
    margin-top: 18px;
}

.book-detail-preview.has-image {
    border-color: rgba(176, 106, 42, 0.24);
    box-shadow: inset 0 -70px 100px rgba(24, 18, 13, 0.08);
}

.book-detail-preview.has-image .book-detail-preview-copy {
    opacity: 0;
}

.book-detail-preview-copy {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #7e7164;
}

.book-detail-preview-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(234, 146, 0, 0.12);
    color: #a95d12;
}

.book-detail-preview-copy strong {
    color: #34281d;
    font-size: 0.9rem;
    font-weight: 900;
}

.book-detail-preview-copy span:last-child {
    font-size: 0.76rem;
    line-height: 1.5;
}

.book-detail-copy-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.book-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.book-detail-heading-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.book-detail-heading-copy h3 {
    margin: 0;
    color: #201812;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.16;
}

.book-detail-heading-copy p {
    margin: 0;
    color: #8c735c;
    font-size: 0.9rem;
    font-weight: 700;
}

.book-detail-description {
    margin: 0;
    color: #685d52;
    font-size: 0.88rem;
    line-height: 1.75;
}

.book-detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.book-detail-stat {
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: #ffffff;
    display: grid;
    gap: 6px;
}

.book-detail-stat span {
    color: #8b7c6d;
    font-size: 0.72rem;
    font-weight: 800;
}

.book-detail-stat strong {
    color: #241d16;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.4;
}

.book-filter-menu .management-filter-menu-form {
    width: min(366px, calc(100vw - 24px));
}

.book-filter-menu {
    max-height: min(420px, calc(100vh - 140px));
    overflow: auto;
}

.book-filter-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-list-table {
    min-width: 1080px;
}

.book-list-table td {
    vertical-align: middle;
}

.book-row-thumb {
    width: 64px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background-color: #fffaf4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-row-thumb.has-image {
    border-color: rgba(176, 106, 42, 0.24);
}

.book-row-thumb.has-image .book-row-thumb-placeholder {
    opacity: 0;
}

.book-row-thumb-placeholder {
    position: relative;
    z-index: 1;
    color: #a95d12;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.book-access-pill.status-free,
.book-access-pill.status-premium {
    min-width: 68px;
}

.management-status-pill.status-published {
    background: rgba(53, 191, 77, 0.12);
    border: 1px solid #35bf4d;
    color: #1f9a39;
}

.management-status-pill.status-draft {
    background: rgba(234, 146, 0, 0.12);
    border: 1px solid #e08a00;
    color: #bf7200;
}

.management-status-pill.status-archived {
    background: rgba(255, 92, 92, 0.1);
    border: 1px solid #ff5c5c;
    color: #df3f3f;
}

.management-status-pill.status-free {
    background: rgba(53, 191, 77, 0.12);
    border: 1px solid #35bf4d;
    color: #1f9a39;
}

.management-status-pill.status-premium {
    background: rgba(94, 132, 255, 0.12);
    border: 1px solid #5e84ff;
    color: #3d5fd1;
}

.book-open-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2c241c;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.book-open-link:hover {
    color: #9b5518;
}

.book-open-link svg {
    flex-shrink: 0;
}

.book-form-layout,
.book-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 14px;
    margin-bottom: 10px;
}

.book-form-main,
.book-detail-main,
.book-detail-side,
.book-form-side {
    min-width: 0;
}

.book-form-side,
.book-detail-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.book-cover-preview {
    min-height: 204px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px dashed rgba(229, 214, 204, 0.92);
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.book-cover-preview.has-image {
    border-style: solid;
    border-color: rgba(176, 106, 42, 0.22);
}

.book-cover-preview.has-image .book-cover-placeholder {
    display: none;
}

.book-cover-placeholder,
.book-pages-dropzone-copy {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    color: #7e7164;
}

.book-cover-placeholder strong,
.book-pages-dropzone-copy strong {
    color: #4c3527;
    font-size: 0.92rem;
    font-weight: 800;
}

.book-cover-placeholder span,
.book-pages-dropzone-copy span {
    max-width: 260px;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.5;
}

.book-cover-placeholder-icon,
.book-pages-dropzone-icon,
.book-empty-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(234, 146, 0, 0.12);
    color: #a95d12;
}

.book-cover-url-field {
    margin-top: 12px;
}

.book-upload-control {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.book-upload-label {
    color: #a95d12;
    font-size: 0.88rem;
    font-weight: 800;
}

.book-upload-shell,
.book-page-upload-card {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    font: inherit;
    color: inherit;
}

.book-upload-shell {
    min-height: 88px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(229, 214, 204, 0.92);
    background: #fff;
    cursor: pointer;
}

.book-hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.book-upload-shell .book-upload-copy,
.book-page-upload-card > *:not(input) {
    pointer-events: none;
}

.book-upload-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.book-upload-copy strong {
    color: #4c3527;
    font-size: 0.9rem;
    font-weight: 800;
}

.book-upload-copy span {
    color: #7e7164;
    font-size: 0.78rem;
    line-height: 1.5;
}

.book-upload-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fbf7f2;
}

.book-upload-chip span {
    min-width: 0;
    color: #4c3527;
    font-size: 0.8rem;
    font-weight: 800;
    word-break: break-word;
}

.book-upload-chip-clear {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8b5a35;
    cursor: pointer;
}

.book-upload-chip-clear:hover,
.book-upload-chip-clear:focus-visible {
    background: rgba(139, 90, 53, 0.08);
}

.book-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 12px;
}

.book-page-card {
    position: relative;
    display: grid;
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fff;
    cursor: grab;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.book-page-card.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.book-page-card.is-drag-over {
    border-color: rgba(182, 112, 33, 0.62);
    box-shadow: 0 0 0 3px rgba(182, 112, 33, 0.12), 0 12px 24px rgba(61, 43, 28, 0.08);
    transform: translateY(-2px);
}

.book-page-drag-handle {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #8b5a35;
    box-shadow: 0 6px 16px rgba(27, 19, 12, 0.1);
    cursor: grab;
}

.book-page-card.is-pending {
    border-style: dashed;
}

.book-page-card.is-readonly {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    box-shadow: 0 10px 24px rgba(61, 43, 28, 0.04);
}

.book-page-card.is-readonly .book-page-preview-shell {
    min-height: 156px;
    border-radius: 14px;
}

.book-page-preview-shell {
    position: relative;
    width: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fff7ef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.book-page-preview-shell.has-image {
    border-color: rgba(176, 106, 42, 0.22);
}

.book-page-preview-shell.is-file {
    background: linear-gradient(180deg, #fffdf8 0%, #fff6eb 100%);
}

.book-page-preview-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(234, 146, 0, 0.12);
    color: #a95d12;
}

.book-page-preview-open {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.88);
    color: #8b5a35;
    box-shadow: 0 6px 16px rgba(27, 19, 12, 0.12);
}

.book-page-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.book-page-copy-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.book-page-copy-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.book-page-copy-head strong {
    flex: 1 1 auto;
    color: #2c241c;
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-page-copy small {
    color: #7e7164;
    font-size: 0.71rem;
    line-height: 1.35;
}

.book-page-copy span {
    color: #b07a54;
    font-size: 0.72rem;
    line-height: 1.4;
}

.book-page-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.book-page-file-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(233, 61, 48, 0.08);
    color: #df3f3f;
}

.book-page-file-icon svg {
    width: 18px;
    height: 18px;
}

.book-page-file-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.book-page-file-copy strong {
    color: #281f17;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-page-file-copy small {
    color: #8b7c6d;
    font-size: 0.7rem;
    line-height: 1.35;
}

.book-page-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(229, 214, 204, 0.92);
    background: #fff;
    color: #8b5a35;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.book-page-action:hover,
.book-page-action:focus-visible {
    transform: translateY(-1px);
}

.book-page-action.is-danger {
    color: #e90606;
    border-color: rgba(233, 6, 6, 0.22);
    background: #fff;
}

.book-page-action.is-danger.is-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(233, 6, 6, 0.08);
}

.book-page-action.is-danger.is-icon:hover,
.book-page-action.is-danger.is-icon:focus-visible {
    background: rgba(233, 6, 6, 0.04);
}

.book-page-action.is-voice {
    color: #9b5f17;
    border-color: rgba(182, 112, 33, 0.22);
    background: #fffaf2;
    box-shadow: 0 1px 2px rgba(182, 112, 33, 0.08);
}

.book-page-action.is-voice.is-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.book-page-action.is-voice:hover,
.book-page-action.is-voice:focus-visible {
    background: rgba(182, 112, 33, 0.06);
}

.book-page-action.is-download {
    color: #6e4a2f;
    border-color: rgba(191, 169, 150, 0.75);
    background: #fffdf9;
    box-shadow: 0 8px 18px rgba(91, 50, 15, 0.08);
}

.book-page-action.is-download:hover,
.book-page-action.is-download:focus-visible {
    background: #fff7ef;
}

.book-page-delete-icon {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
}

.book-page-voice-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.book-page-voice-status {
    color: #1d8c4c;
    font-weight: 800;
}

.book-page-voice-modal {
    display: grid;
    gap: 14px;
}

.book-page-voice-field textarea {
    min-height: 140px;
    resize: vertical;
}

.book-page-voice-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.book-page-voice-tools .management-secondary-button {
    flex: 0 0 auto;
    min-width: 190px;
}

.book-page-voice-note {
    color: #7e7164;
    font-size: 0.84rem;
    line-height: 1.5;
}

.book-page-voice-empty {
    min-height: 190px;
    padding: 28px 20px;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(229, 214, 204, 0.92);
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ef 100%);
}

.book-page-voice-empty strong {
    color: #4c3527;
    font-size: 0.98rem;
    font-weight: 900;
}

.book-page-voice-empty span {
    max-width: 360px;
    color: #7e7164;
    font-size: 0.84rem;
    line-height: 1.5;
}

.book-page-voice-empty-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(234, 146, 0, 0.12);
    color: #a95d12;
}

.book-page-upload-card {
    min-height: 184px;
    padding: 16px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(229, 214, 204, 0.92);
    background: #fff;
    color: #7e7164;
    cursor: pointer;
}

.book-page-upload-card > *:not(input) {
    position: relative;
    z-index: 1;
}

.book-page-upload-card strong {
    color: #4c3527;
    font-size: 0.92rem;
    font-weight: 800;
}

.book-page-upload-card span {
    max-width: 220px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.book-page-upload-action {
    margin-top: 2px;
    color: #a95d12;
    font-size: 0.8rem;
    font-weight: 800;
}

.book-pages-card.is-readonly .book-pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.book-pages-dropzone.is-readonly {
    min-height: 160px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff7ef 100%);
}

.book-pages-help {
    margin: 0;
    color: #7e7164;
    font-size: 0.78rem;
    line-height: 1.5;
}

.book-pages-dropzone {
    min-height: 204px;
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed rgba(229, 214, 204, 0.92);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-pages-dropzone-copy {
    gap: 10px;
}

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

.book-quiz-note {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.book-quiz-panel {
    display: grid;
    gap: 18px;
}

.book-quiz-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.book-quiz-download-button,
.book-quiz-import-button {
    height: 34px;
    padding-inline: 14px;
    font-size: 0.78rem;
}

.book-quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.book-quiz-question-list {
    min-height: 420px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: linear-gradient(180deg, #fffefc 0%, #fffdfa 100%);
    display: grid;
    gap: 12px;
    align-content: start;
}

.book-quiz-panel.is-readonly .book-quiz-question-list {
    min-height: 0;
}

.book-quiz-panel.is-readonly .book-quiz-empty-state {
    min-height: 220px;
}

.book-quiz-empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    color: #7e7164;
}

.book-quiz-empty-state strong {
    color: #2b2219;
    font-size: 1rem;
    font-weight: 900;
}

.book-quiz-empty-state span:last-child {
    max-width: 320px;
    font-size: 0.84rem;
    line-height: 1.6;
}

.book-quiz-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-quiz-question-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: #ffffff;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(61, 43, 28, 0.04);
    cursor: pointer;
}

.book-quiz-question-card.is-active {
    border-color: rgba(227, 143, 30, 0.7);
    background: linear-gradient(180deg, #fffaf1 0%, #fffefb 100%);
    box-shadow: 0 16px 30px rgba(188, 112, 20, 0.1);
}

.book-quiz-question-card.is-readonly {
    cursor: default;
}

.book-quiz-question-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.book-quiz-question-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-quiz-question-meta strong {
    color: #2b2219;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.4;
}

.book-quiz-question-grip {
    color: #bfae9d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-quiz-question-index {
    min-width: 28px;
    height: 28px;
    padding-inline: 8px;
    border-radius: 10px;
    background: #fde2bf;
    color: #8d5300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.book-quiz-question-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-quiz-question-action {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    border-radius: 10px;
    background: #fff;
    color: #6f6256;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.book-quiz-question-action.is-danger {
    color: #dd684f;
}

.book-quiz-question-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.book-quiz-question-option {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: #ffffff;
    color: #a95d12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.book-quiz-question-option.is-correct {
    border-color: rgba(125, 214, 153, 0.9);
    background: linear-gradient(180deg, #edfdf0 0%, #e2f9e7 100%);
    color: #287742;
}

.book-quiz-question-option-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-quiz-composer {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: linear-gradient(180deg, #fffdfa 0%, #fffaf4 100%);
    display: grid;
    gap: 14px;
}

.book-quiz-composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.book-quiz-composer-head h3 {
    margin: 0;
    color: #2b2219;
    font-size: 1.02rem;
    font-weight: 900;
}

.book-quiz-reset-button {
    height: 34px;
    padding-inline: 14px;
    font-size: 0.78rem;
}

.book-quiz-image-dropzone {
    min-height: 132px;
    width: 100%;
    padding: 16px;
    border: 1px dashed rgba(227, 143, 30, 0.48);
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    color: #7e7164;
    cursor: pointer;
    overflow: hidden;
}

.book-quiz-image-dropzone:hover {
    border-color: rgba(227, 143, 30, 0.7);
    background: linear-gradient(180deg, #fffdfa 0%, #fff8ef 100%);
}

.book-quiz-image-dropzone strong {
    color: #4c3527;
    font-size: 0.9rem;
    font-weight: 800;
}

.book-quiz-image-dropzone > span:not(.book-quiz-image-icon):not(.book-quiz-image-action) {
    font-size: 0.78rem;
    line-height: 1.5;
}

.book-quiz-image-dropzone.has-image {
    padding: 0;
    border-style: solid;
    border-color: rgba(232, 225, 217, 0.96);
}

.book-quiz-image-preview {
    width: 100%;
    max-height: 220px;
    display: block;
    object-fit: cover;
}

.book-quiz-image-icon {
    color: #d7830e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-quiz-image-action {
    min-width: 102px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(229, 214, 204, 0.96);
    border-radius: 999px;
    background: #ffffff;
    color: #5e3b12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(73, 44, 19, 0.06);
}

.book-quiz-composer textarea[data-quiz-question-input] {
    min-height: 104px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.55;
}

.book-quiz-answer-head {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.book-quiz-answer-head span {
    color: #2d9b49;
    font-size: 0.72rem;
    font-weight: 800;
}

.book-quiz-answer-list {
    display: grid;
    gap: 10px;
}

.management-field .book-quiz-answer-row {
    margin-bottom: 0;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(232, 225, 217, 0.96);
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 400;
    cursor: pointer;
}

.management-field .book-quiz-answer-row:hover {
    border-color: rgba(227, 143, 30, 0.42);
    box-shadow: 0 10px 22px rgba(120, 84, 50, 0.05);
}

.management-field .book-quiz-answer-row.is-correct {
    border-color: rgba(125, 214, 153, 0.9);
    background: linear-gradient(180deg, #edfdf0 0%, #e2f9e7 100%);
}

.book-quiz-answer-radio {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.book-quiz-answer-radio input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.book-quiz-answer-radio span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1.6px solid rgba(191, 174, 157, 0.96);
    background: #ffffff;
    display: block;
    position: relative;
}

.management-field .book-quiz-answer-row.is-correct .book-quiz-answer-radio span {
    border-color: #2d9b49;
}

.management-field .book-quiz-answer-row.is-correct .book-quiz-answer-radio span::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: #2d9b49;
}

.management-field .book-quiz-answer-row input[type='text'] {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7a5a38;
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
}

.management-field .book-quiz-answer-row input[type='text']::placeholder {
    color: #9a7d5d;
}

.management-field .book-quiz-answer-row.is-correct input[type='text'] {
    color: #287742;
}

.book-quiz-answer-check {
    margin-left: auto;
    color: #2d9b49;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-quiz-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

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

.book-detail-copy {
    color: #2b2219;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
}

@media (max-width: 1100px) {
    .book-form-layout,
    .book-detail-layout {
        grid-template-columns: 1fr;
    }

    .book-detail-hero {
        grid-template-columns: 1fr;
    }

    .book-detail-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-quiz-layout {
        grid-template-columns: 1fr;
    }

    .book-list-table {
        min-width: 980px;
    }
}

@media (max-width: 720px) {
    .book-management-content {
        padding: 14px 14px 20px;
    }

    .book-filter-menu .management-filter-menu-form {
        width: min(100vw - 24px, 360px);
    }

    .book-filter-status-grid,
    .book-quick-grid,
    .book-detail-grid {
        grid-template-columns: 1fr;
    }

    .book-detail-media-grid,
    .book-detail-stat-grid {
        grid-template-columns: 1fr;
    }

    .book-quiz-question-options {
        grid-template-columns: 1fr;
    }

    .book-cover-preview,
    .book-pages-dropzone {
        min-height: 180px;
    }

    .management-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-detail-screen-head,
    .book-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-detail-screen-title {
        font-size: 1.35rem;
    }

    .book-detail-tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .book-detail-tabs .management-tab {
        flex: 1 1 0;
        min-width: 0;
    }

    .book-detail-preview.is-secondary {
        margin-top: 0;
    }

    .book-pages-card.is-readonly .book-pages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-page-card.is-readonly .book-page-preview-shell {
        min-height: 120px;
    }

    .management-toolbar {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .book-quiz-composer-actions .management-secondary-button,
    .book-quiz-composer-actions .management-primary-button {
        width: 100%;
    }

    .book-quiz-composer-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-search {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .book-pages-card.is-readonly .book-pages-grid {
        grid-template-columns: 1fr;
    }
}

body.sidekick-admin[data-page='home-sections-management'] {
    background: #ffffff;
    color: #242424;
}

.home-sections-management-content {
    gap: 16px;
}

.home-sections-app,
.home-sections-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.home-section-list-card,
.home-section-form-card,
.home-section-view-card {
    overflow: visible;
}

.home-section-list-head-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.home-section-card-copy {
    margin: 0;
    color: #6f665b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.home-section-list-table {
    min-width: 980px;
}

.home-section-list-table th:nth-child(5),
.home-section-list-table td:nth-child(5),
.home-section-list-table th:nth-child(6),
.home-section-list-table td:nth-child(6),
.home-section-list-table th:last-child,
.home-section-list-table td:last-child {
    text-align: center;
}

.home-section-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #20242d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.home-section-link:hover {
    color: #9b5518;
}

.home-section-home-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-section-home-check input,
.home-section-show-row input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #4b2a1f;
}

.home-section-form-shell,
.home-section-detail-shell {
    display: grid;
    gap: 16px;
    background: #ffffff;
}

.home-section-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

.home-section-show-row {
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 14px;
    background: #f0f0f5;
    color: #a55412;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.home-section-show-row.is-readonly {
    cursor: default;
}

.home-section-panel-title {
    margin: 0 0 8px;
    color: #20242d;
    font-size: 0.92rem;
    font-weight: 800;
}

.home-section-books-panel {
    min-width: 0;
}

.home-section-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.home-section-books-grid.is-view {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.home-section-add-book-card,
.home-section-book-card {
    min-height: 188px;
    border-radius: 14px;
    background: #f8f9fd;
    border: 1px solid rgba(231, 234, 241, 0.95);
}

.home-section-add-book-card {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border-style: dashed;
    border-color: rgba(205, 167, 134, 0.95);
    color: #2a2018;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.home-section-add-book-card span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff2dc;
    color: #e08a00;
    border: 1px solid rgba(224, 138, 0, 0.28);
}

.home-section-add-book-card:hover {
    background: #fffaf4;
    border-color: #e08a00;
}

.home-section-book-card {
    position: relative;
    padding: 18px 12px 12px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
}

.home-section-book-card.is-draggable {
    cursor: grab;
}

.home-section-book-card.is-draggable:active {
    cursor: grabbing;
}

.home-section-book-card.is-dragging {
    opacity: 0.46;
    transform: scale(0.98);
}

.home-section-book-card.is-drop-target {
    border-color: #e08a00;
    background: #fffaf4;
    box-shadow: inset 0 0 0 2px rgba(224, 138, 0, 0.16);
}

.home-section-book-card.is-drop-before::before,
.home-section-book-card.is-drop-after::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: #e08a00;
    box-shadow: 0 0 0 4px rgba(224, 138, 0, 0.12);
}

.home-section-book-card.is-drop-before::before {
    left: -7px;
}

.home-section-book-card.is-drop-after::after {
    right: -7px;
}

.home-section-book-card.is-readonly {
    min-height: 186px;
}

.home-section-book-grip {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #8a837b;
}

.home-section-book-cover {
    width: 90px;
    height: 124px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background-color: #fff5e8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(224, 138, 0, 0.16);
    color: #b06a2a;
}

.home-section-book-cover.has-image .home-section-book-placeholder {
    opacity: 0;
}

.home-section-book-placeholder {
    display: inline-flex;
}

.home-section-book-meta {
    width: 100%;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.home-section-book-meta strong {
    max-width: 100%;
    color: #2b2219;
    font-size: 0.78rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section-book-meta span {
    max-width: 100%;
    color: #85776a;
    font-size: 0.7rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section-book-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    gap: 4px;
}

.home-section-book-actions button {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 8px;
    background: #ffffff;
    color: #574539;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.home-section-book-actions button:hover:not(:disabled) {
    background: #fbf4ec;
    color: #9b5518;
}

.home-section-book-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.home-section-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-section-books-panel.is-view {
    display: grid;
    gap: 4px;
}

.home-books-picker-modal {
    width: min(720px, calc(100vw - 32px));
}

.home-books-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-book-picker-search {
    width: 100%;
    margin-bottom: 12px;
}

.home-book-picker-list {
    max-height: min(440px, 54vh);
    overflow: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.home-book-picker-item {
    width: 100%;
    min-height: 82px;
    padding: 10px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(231, 234, 241, 0.95);
    border-radius: 14px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}

.home-book-picker-item:hover,
.home-book-picker-item.is-selected {
    border-color: rgba(224, 138, 0, 0.45);
    background: #fffaf4;
}

.home-book-picker-item .home-section-book-cover {
    width: 48px;
    height: 62px;
}

.home-book-picker-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.home-book-picker-copy strong {
    color: #2b2219;
    font-size: 0.86rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-book-picker-copy span {
    color: #85776a;
    font-size: 0.76rem;
    font-weight: 700;
}

.home-book-picker-state {
    min-width: 64px;
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f7f8fd;
    color: #6a573f;
    font-size: 0.76rem;
    font-weight: 900;
}

.home-book-picker-item.is-selected .home-book-picker-state {
    background: rgba(53, 191, 77, 0.12);
    color: #1f9a39;
}

@media (max-width: 900px) {
    .home-section-form-grid,
    .home-section-detail-grid {
        grid-template-columns: 1fr;
    }

    .home-books-picker-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-sections-management-content {
        padding: 14px 14px 20px;
    }

    .home-section-books-grid,
    .home-section-books-grid.is-view {
        grid-template-columns: 1fr;
    }

    .home-book-picker-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .home-book-picker-state {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}

body.sidekick-admin[data-page='cms-management'] {
    background: #ffffff;
    color: #242424;
}

.cms-management-content {
    gap: 16px;
}

.cms-management-app,
.cms-management-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.cms-list-card,
.cms-view-card,
.cms-edit-card {
    overflow: visible;
}

.cms-list-head-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.cms-card-copy {
    margin: 0;
    color: #6f665b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.cms-list-table {
    min-width: 760px;
}

.cms-list-table th:nth-child(3),
.cms-list-table td:nth-child(3),
.cms-list-table th:last-child,
.cms-list-table td:last-child {
    text-align: center;
}

.cms-page-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #20242d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cms-page-link:hover {
    color: #9b5518;
}

.cms-view-shell {
    padding: 16px;
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 16px;
    background: #ffffff;
}

.cms-rich-content {
    color: #55504c;
    font-size: 0.88rem;
    line-height: 1.65;
}

.cms-rich-content p {
    margin: 0 0 14px;
}

.cms-rich-content p:last-child {
    margin-bottom: 0;
}

.cms-rich-content strong {
    color: #2c241f;
    font-weight: 900;
}

.cms-rich-content ul,
.cms-rich-content ol {
    margin: 0 0 14px 22px;
    padding: 0;
}

.cms-contact-list {
    display: grid;
    gap: 12px;
}

.cms-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cms-contact-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #fffaf4;
    border: 1px solid rgba(224, 138, 0, 0.22);
    color: #e08a00;
}

.cms-contact-copy {
    display: grid;
    gap: 2px;
    color: #6e6258;
    font-size: 0.84rem;
    font-weight: 700;
}

.cms-contact-copy strong {
    color: #2a211b;
    font-size: 0.86rem;
    font-weight: 900;
}

.cms-edit-shell {
    display: grid;
    gap: 18px;
    background: #f7f8fd;
    border: 0;
}

.cms-editor-field {
    gap: 8px;
}

.cms-editor-field textarea {
    min-height: 320px;
    resize: vertical;
}

.cms-editor-fallback {
    margin: 0;
    color: #8a7460;
    font-size: 0.78rem;
    font-weight: 700;
}

.cms-edit-shell .tox.tox-tinymce {
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 16px;
    overflow: hidden;
}

.cms-edit-shell .tox .tox-toolbar,
.cms-edit-shell .tox .tox-toolbar__primary,
.cms-edit-shell .tox .tox-toolbar-overlord {
    background: #ffffff;
}

.cms-edit-shell .tox .tox-tbtn {
    border-radius: 8px;
    color: #8f4b14;
}

.cms-edit-shell .tox .tox-edit-area::before {
    border: 0;
}

.cms-contact-editor {
    display: grid;
    gap: 18px;
}

.cms-contact-edit-block {
    display: grid;
    gap: 10px;
}

.cms-contact-edit-block h3 {
    margin: 0;
    color: #1f252d;
    font-size: 0.93rem;
    font-weight: 900;
}

.cms-contact-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
    .cms-contact-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cms-management-content {
        padding: 14px 14px 20px;
    }

    .cms-view-shell,
    .cms-edit-shell {
        padding: 14px;
    }
}

body.sidekick-admin[data-page='faqs-management'] {
    background: #ffffff;
    color: #242424;
}

.faqs-management-page .dashboard-topbar {
    min-height: 70px;
    padding: 14px 14px 8px;
}

.faqs-management-page .dashboard-heading-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
}

.faqs-management-content {
    gap: 14px;
    padding: 0 12px 22px;
}

.faqs-management-app,
.faqs-management-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.faq-list-card,
.faq-form-card,
.faq-view-card {
    overflow: visible;
}

.faq-list-card {
    padding: 10px;
    border-color: rgba(223, 226, 236, 0.96);
    border-radius: 13px;
}

.faq-list-card .management-card-head {
    min-height: 46px;
    margin-bottom: 8px;
    align-items: center;
}

.faq-list-card .management-toolbar {
    gap: 8px;
}

.faq-list-card .management-search {
    width: 224px;
}

.faq-list-card .management-search input {
    height: 34px;
    border-radius: 15px;
    font-size: 0.78rem;
}

.faq-list-card .management-primary-button {
    height: 36px;
    min-width: 112px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.8rem;
}

.faq-list-head-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.faq-card-copy {
    margin: 0;
    color: #6f665b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.faq-list-table {
    min-width: 980px;
    border-spacing: 0 6px;
}

.faq-list-table th {
    height: 30px;
    padding: 0 14px;
    font-size: 0.66rem;
    letter-spacing: -0.01em;
}

.faq-list-table td {
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.38;
}

.faq-list-table th:first-child,
.faq-list-table td:first-child {
    width: 58px;
    text-align: center;
}

.faq-list-table th:nth-child(2),
.faq-list-table td:nth-child(2) {
    width: 24%;
}

.faq-list-table th:nth-child(3),
.faq-list-table td:nth-child(3) {
    width: 47%;
}

.faq-list-table th:nth-child(4),
.faq-list-table td:nth-child(4),
.faq-list-table th:last-child,
.faq-list-table td:last-child {
    text-align: center;
}

.faq-list-table td:nth-child(3) {
    max-width: 520px;
    color: #1f252d;
    font-weight: 700;
    line-height: 1.4;
}

.faq-question-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #20242d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    line-height: 1.35;
}

.faq-question-link:hover {
    color: #9b5518;
}

.faq-form-shell {
    display: grid;
    gap: 18px;
    background: #f7f8fd;
    border: 0;
}

.faq-editor-field {
    gap: 8px;
}

.faq-question-field textarea {
    min-height: 88px;
}

.faq-editor-field textarea {
    min-height: 330px;
    resize: vertical;
}

.faq-editor-fallback {
    margin: 0;
    color: #8a7460;
    font-size: 0.78rem;
    font-weight: 700;
}

.faq-form-shell .tox.tox-tinymce {
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 16px;
    overflow: hidden;
}

.faq-form-shell .tox .tox-toolbar,
.faq-form-shell .tox .tox-toolbar__primary,
.faq-form-shell .tox .tox-toolbar-overlord {
    background: #ffffff;
}

.faq-form-shell .tox .tox-tbtn {
    border-radius: 8px;
    color: #8f4b14;
}

.faq-form-shell .tox .tox-edit-area::before {
    border: 0;
}

.faq-view-shell {
    display: grid;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 16px;
    background: #ffffff;
}

.faq-detail-block {
    display: grid;
    gap: 7px;
}

.faq-detail-block > span {
    color: #7d756e;
    font-size: 0.8rem;
    font-weight: 700;
}

.faq-detail-block > strong {
    color: #1f252d;
    font-size: 0.88rem;
    font-weight: 900;
}

.faq-answer-content {
    color: #1f252d;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.55;
}

.faq-answer-content p {
    margin: 0 0 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: #1f252d;
    font-weight: 900;
}

.faq-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 14px;
    background: #ffffff;
    color: #8f4b14;
    cursor: pointer;
}

.faq-icon-button:hover {
    background: #fff7ef;
}

.faq-icon-button.is-danger {
    color: #ed4b3a;
}

.faq-modal-card .faq-success-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fffefe 0%, #fffaf6 100%);
    box-shadow: 0 14px 28px rgba(74, 51, 31, 0.08);
}

.faq-modal-card .management-modal-title {
    font-size: 1.28rem;
}

.faq-modal-card .management-modal-copy {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list-card .management-pagination {
    padding: 6px 2px 0;
}

.faq-list-card .management-pagination-select {
    height: 34px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.faq-list-card .management-pagination-label {
    font-size: 0.78rem;
}

.faq-list-card .management-page-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.76rem;
}

@media (max-width: 640px) {
    .faqs-management-content {
        padding: 14px 14px 20px;
    }

    .faq-form-shell,
    .faq-view-shell {
        padding: 14px;
    }
}

.profile-content {
    padding: 0 14px 22px 16px;
    background: #f7f8fd;
}

.profile-settings-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-settings-tabs {
    min-height: 116px;
    padding: 12px;
    display: grid;
    gap: 8px;
    border-radius: 12px;
    background: #ffffff;
}

.profile-settings-tab {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(229, 214, 204, 0.96);
    border-radius: 7px;
    background: #ffffff;
    color: #332b25;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-settings-tab.is-active {
    border-color: #ffdfaa;
    background: #ffdfaa;
}

.profile-settings-tab-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 7px;
    background: #f4f5fa;
    color: #5f5b57;
}

.profile-settings-tab.is-active .profile-settings-tab-icon {
    background: #ffffff;
    color: #e08a00;
}

.profile-settings-tab-icon svg {
    width: 16px;
    height: 16px;
}

.profile-settings-panel {
    min-height: 368px;
    padding: 0 12px 14px;
    border-radius: 12px;
    background: #ffffff;
}

.profile-settings-panel-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 218, 209, 0.9);
}

.profile-settings-panel-head h2 {
    margin: 0;
    color: #15171d;
    font-size: 1.02rem;
    font-weight: 900;
}

.profile-settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-cancel-button,
.profile-save-button,
.profile-mini-save {
    height: 42px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.profile-cancel-button {
    border: 1px solid rgba(229, 214, 204, 0.96);
    background: #ffffff;
    color: #5a3520;
}

.profile-save-button,
.profile-mini-save {
    border: 0;
    background: linear-gradient(180deg, #8f5a24, #5b320f);
    color: #ffffff;
}

.profile-save-button:disabled,
.profile-mini-save:disabled,
.profile-delete-photo:disabled {
    cursor: wait;
    opacity: 0.62;
}

.profile-feedback {
    min-height: 0;
    margin-top: 10px;
    color: #6f6257;
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-feedback:not(:empty) {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 10px;
}

.profile-feedback.is-success {
    background: rgba(53, 191, 77, 0.1);
    color: #1f8a38;
}

.profile-feedback.is-error {
    background: rgba(229, 95, 95, 0.1);
    color: #c14c4c;
}

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

.profile-summary {
    min-height: 96px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding-top: 14px;
}

.profile-photo-picker {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #edf3f6;
    cursor: pointer;
}

.profile-photo-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.profile-photo {
    width: 100%;
    height: 100%;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 73%, #d9b595 0 18%, transparent 19%),
        radial-gradient(circle at 50% 41%, #f0c9a8 0 20%, transparent 21%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.34) 0 9%, transparent 10%),
        linear-gradient(180deg, #594131 0 18%, #765844 18% 30%, #f0c9a8 30% 68%, #5b879a 68% 100%);
    color: transparent;
    overflow: hidden;
}

.profile-summary-body {
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
    padding-top: 8px;
}

.profile-summary-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.profile-summary-copy strong {
    color: #252525;
    font-size: 0.92rem;
    font-weight: 900;
}

.profile-summary-copy span {
    color: #787878;
    font-size: 0.74rem;
    font-weight: 700;
}

.profile-summary-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-mini-save {
    height: 28px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.68rem;
}

.profile-delete-photo {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(238, 79, 69, 0.18);
    border-radius: 10px;
    background: #fffafa;
    color: #ed4b3a;
    cursor: pointer;
}

.profile-delete-photo img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.avatar-modern.has-image,
.profile-photo.has-image {
    color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.avatar-modern.has-image {
    border-color: #ffffff;
}

.profile-photo.has-image {
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(30, 30, 30, 0.06);
}

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

.profile-field {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 7px;
}

.profile-field span {
    color: #a55412;
    font-size: 0.78rem;
    font-weight: 900;
}

.profile-field input,
.profile-field select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.4px solid rgba(229, 214, 204, 0.96);
    border-radius: 16px;
    background: #ffffff;
    color: #964a13;
    font-size: 0.82rem;
    font-weight: 800;
    outline: none;
}

.profile-field select {
    padding-right: 42px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #b36a24 50%),
        linear-gradient(135deg, #b36a24 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.profile-field input::placeholder {
    color: #b55d21;
    opacity: 1;
}

.profile-field input:focus,
.profile-field select:focus {
    border-color: #de8b27;
    box-shadow: 0 0 0 4px rgba(224, 138, 0, 0.12);
}

.profile-password-grid {
    padding-top: 12px;
}

.profile-password-field input {
    padding-right: 44px;
}

.profile-password-toggle {
    position: absolute;
    right: 12px;
    bottom: 11px;
    width: 20px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #d06b2b;
    cursor: pointer;
}

.profile-password-toggle svg {
    width: 18px;
    height: 18px;
}

.profile-password-toggle.is-active {
    color: #7a3d14;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .profile-settings-shell {
        grid-template-columns: 290px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .profile-settings-shell,
    .profile-field-grid {
        grid-template-columns: 1fr;
    }

    .profile-settings-panel-head {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 0;
    }

    .profile-settings-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .profile-content {
        padding: 12px 12px 20px;
    }

    .profile-summary {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-photo-picker {
        width: 64px;
        height: 64px;
    }

    .profile-cancel-button,
    .profile-save-button {
        flex: 1 1 0;
        padding: 0 12px;
    }
}

/* Game Management */
.game-management-content {
    padding: 8px 18px 24px;
}

.game-management-app {
    display: grid;
    gap: 18px;
    align-content: start;
}

.game-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.game-tab {
    width: 212px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.4px solid #e08a00;
    border-radius: 14px;
    background: #ffffff;
    color: #5c4a3e;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.game-tab.is-active {
    background: #e08a00;
    color: #ffffff;
}

.game-panel {
    display: grid;
    gap: 16px;
}

.game-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.game-section-head h2 {
    margin: 0;
    color: #181b21;
    font-size: 1.18rem;
    font-weight: 900;
}

.game-save-button {
    min-width: 160px;
    height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #8f5a24, #5b320f);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(91, 50, 15, 0.14);
}

.game-worlds-card,
.game-levels-card,
.game-points-shell {
    padding: 12px;
    border-radius: 12px;
    background: #f4f5fa;
}

.game-worlds-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.game-world-card {
    position: relative;
    min-width: 0;
    min-height: 166px;
    padding: 0;
    display: grid;
    grid-template-rows: 108px 1fr;
    border: 1.4px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #30241e;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(28, 24, 20, 0.06);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.game-world-card.is-selected {
    border-color: #8f5a24;
    box-shadow: 0 14px 26px rgba(91, 50, 15, 0.14);
    transform: translateY(-1px);
}

.game-world-card:hover {
    border-color: rgba(143, 90, 36, 0.42);
    box-shadow: 0 16px 28px rgba(28, 24, 20, 0.1);
    transform: translateY(-1px);
}

.game-world-image-wrap {
    position: relative;
    width: 100%;
    height: 108px;
    display: block;
    overflow: hidden;
    background: #edf3f6;
}

.game-world-image-wrap::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.game-world-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.game-world-card:hover img,
.game-world-card.is-selected img {
    transform: scale(1.04);
}

.game-world-image-button {
    position: absolute;
    top: 14px;
    right: 14px;
    height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
    color: #7a3f12;
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(25, 17, 10, 0.16);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.game-world-image-button-portrait {
    top: 48px;
}

.game-world-preview-modal {
    width: min(100%, 920px);
    padding: 22px;
}

.game-world-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.game-world-preview-head h3 {
    margin: 0;
    color: #2a2118;
    font-size: 1.25rem;
    font-weight: 900;
}

.game-world-preview-head p {
    margin: 4px 0 0;
    color: #756c63;
    font-size: 0.86rem;
    font-weight: 800;
}

.game-world-preview-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(224, 207, 195, 0.9);
    border-radius: 12px;
    background: #fffaf6;
    color: #5d4430;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.game-world-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 16px;
}

.game-world-preview-panel {
    min-width: 0;
}

.game-world-preview-panel > span {
    display: block;
    margin-bottom: 8px;
    color: #7a5238;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.game-world-preview-panel img,
.game-world-preview-empty {
    width: 100%;
    border: 1px solid rgba(224, 207, 195, 0.9);
    border-radius: 16px;
    background: #fff8f1;
    box-shadow: 0 16px 30px rgba(65, 43, 28, 0.12);
}

.game-world-preview-panel img {
    display: block;
    object-fit: cover;
}

.game-world-preview-panel.is-landscape img,
.game-world-preview-panel.is-landscape .game-world-preview-empty {
    aspect-ratio: 16 / 9;
}

.game-world-preview-panel.is-portrait img,
.game-world-preview-panel.is-portrait .game-world-preview-empty {
    aspect-ratio: 3 / 4;
}

.game-world-preview-empty {
    display: grid;
    place-items: center;
    color: #8c7462;
    font-weight: 900;
    text-align: center;
    padding: 18px;
}

@media (max-width: 760px) {
    .game-world-preview-grid {
        grid-template-columns: 1fr;
    }
}

.game-world-card:hover .game-world-image-button,
.game-world-card:focus-within .game-world-image-button {
    opacity: 1;
    transform: translateY(0);
}

.game-world-image-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.game-world-copy {
    min-width: 0;
    padding: 10px 10px 12px;
    display: grid;
    align-content: center;
    gap: 3px;
}

.game-world-copy strong {
    min-width: 0;
    overflow: hidden;
    color: #2b1f19;
    font-size: 0.82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-world-copy span {
    color: #7b7169;
    font-size: 0.76rem;
    font-weight: 700;
}

.game-level-management {
    display: grid;
    gap: 16px;
}

.game-level-head {
    margin-top: 18px;
}

.game-level-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.game-generate-levels-button {
    min-width: 190px;
    height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.2px solid rgba(224, 138, 0, 0.38);
    border-radius: 14px;
    background: #fff7ea;
    color: #8f4a0d;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.game-generate-levels-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.game-level-head p {
    margin: 5px 0 0;
    color: #7b7169;
    font-size: 0.82rem;
    font-weight: 800;
}

.game-levels-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.game-level-item {
    min-width: 0;
    min-height: 72px;
    padding: 10px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    background: #ffffff;
}

.game-level-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(229, 214, 204, 0.96);
    border-radius: 8px;
    color: #e08a00;
}

.game-level-badge strong {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.game-level-badge small {
    font-size: 0.66rem;
    font-weight: 800;
}

.game-level-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.game-level-field span,
.game-points-field span {
    color: #181818;
    font-size: 0.72rem;
    font-weight: 800;
}

.game-level-field input,
.game-points-field input,
.game-star-rule input {
    width: 100%;
    height: 34px;
    border: 1.2px solid rgba(229, 214, 204, 0.96);
    border-radius: 8px;
    background: #ffffff;
    color: #a14d12;
    font-size: 0.78rem;
    font-weight: 900;
    outline: none;
}

.game-level-field input,
.game-points-field input {
    padding: 0 10px;
}

.game-level-field input:focus,
.game-points-field input:focus,
.game-star-rule input:focus {
    border-color: #e08a00;
    box-shadow: 0 0 0 3px rgba(224, 138, 0, 0.12);
}

.game-points-head {
    align-items: flex-start;
}

.game-points-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.game-points-card {
    min-width: 0;
    padding: 12px;
    display: grid;
    gap: 14px;
    border-radius: 12px;
}

.game-points-card.tone-easy {
    background: #effcf1;
}

.game-points-card.tone-medium {
    background: #fbf6ed;
}

.game-points-card.tone-hard {
    background: #fff2f3;
}

.game-difficulty-badge {
    width: 82px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.2px solid currentColor;
    border-radius: 9px;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.tone-easy .game-difficulty-badge {
    color: #1b9d37;
}

.tone-medium .game-difficulty-badge {
    color: #bd7116;
}

.tone-hard .game-difficulty-badge {
    color: #f01825;
}

.game-points-field {
    display: grid;
    gap: 8px;
}

.game-points-field input {
    height: 48px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.game-star-rule {
    min-height: 60px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    background: #ffffff;
}

.game-star-rule + .game-star-rule {
    border-top: 1px solid rgba(231, 224, 216, 0.9);
}

.game-star-rule div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a4039;
    font-size: 0.84rem;
    font-weight: 800;
}

.game-stars {
    flex: 0 0 auto;
    color: #eea300;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1;
}

.game-star-rule input {
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.game-feedback {
    min-height: 0;
    color: #1f8a38;
    font-size: 0.84rem;
    font-weight: 900;
}

.game-feedback.is-visible {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(53, 191, 77, 0.1);
}

@media (max-width: 1220px) {
    .game-worlds-card,
    .game-levels-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-points-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .game-management-content {
        padding: 12px;
    }

    .game-tab {
        width: min(100%, 212px);
        flex: 1 1 180px;
    }

    .game-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .game-save-button {
        width: 100%;
    }

    .game-worlds-card,
    .game-levels-card {
        grid-template-columns: 1fr;
    }

    .game-star-rule {
        grid-template-columns: 1fr;
    }
}

/* Avatar & Assets Management */
.avatar-assets-management-content {
    padding: 12px 18px 22px;
}

.avatar-assets-app {
    display: grid;
    gap: 18px;
}

.avatar-assets-panel {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.avatar-assets-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar-assets-section-head h2 {
    margin: 0;
    color: #1f1f1f;
    font-size: 1rem;
    font-weight: 900;
}

.avatar-card-grid,
.asset-card-grid {
    display: grid;
    gap: 18px;
}

.avatar-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.avatar-card,
.asset-card {
    min-width: 0;
    border: 1px solid rgba(236, 236, 241, 0.92);
    background: #ffffff;
    cursor: pointer;
}

.avatar-card {
    position: relative;
    height: 178px;
    padding: 0;
    display: grid;
    border-radius: 12px;
    overflow: hidden;
}

.avatar-card.is-selected {
    border-color: #ee8f17;
    background: #fff8ee;
}

.avatar-card-image {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.avatar-card-select {
    width: 100%;
    height: 100%;
    padding: 14px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.avatar-card-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 92, 92, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 250, 0.94);
    color: #df3f3f;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.avatar-card-edit {
    position: absolute;
    top: 10px;
    right: 50px;
    min-width: 46px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(224, 139, 31, 0.28);
    border-radius: 999px;
    background: rgba(255, 248, 238, 0.94);
    color: #a95b11;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.avatar-card:hover .avatar-card-delete,
.avatar-card:hover .avatar-card-edit,
.avatar-card:focus-within .avatar-card-delete,
.avatar-card:focus-within .avatar-card-edit {
    opacity: 1;
    transform: translateY(0);
}

.avatar-card-delete img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.avatar-card strong,
.asset-card strong {
    color: #141414;
    font-size: 0.84rem;
    font-weight: 900;
}

.asset-card {
    position: relative;
    height: 168px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    text-align: left;
}

.asset-card-main {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    display: grid;
    grid-template-rows: 108px 1fr;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.asset-card-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(224, 139, 31, 0.28);
    border-radius: 999px;
    background: rgba(255, 248, 238, 0.96);
    color: #a95b11;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.asset-card:hover .asset-card-edit,
.asset-card:focus-within .asset-card-edit {
    opacity: 1;
    transform: translateY(0);
}

.asset-card-media {
    display: grid;
    place-items: center;
    background: #faf9fb;
}

.asset-card-image {
    width: 92px;
    height: 82px;
    object-fit: contain;
}

.asset-card-copy {
    min-width: 0;
    padding: 10px 34px 10px 12px;
    display: grid;
    align-content: center;
    gap: 2px;
}

.asset-card-copy span {
    color: #7a7a83;
    font-size: 0.72rem;
    font-weight: 700;
}

.asset-card-arrow {
    position: absolute;
    right: 12px;
    bottom: 18px;
    color: #201813;
    font-size: 1.22rem;
    line-height: 1;
}

.avatar-assets-image-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid rgba(223, 210, 201, 0.92);
    border-radius: 12px;
    background: #fff8ef;
    color: #8f5a24;
    font-size: 1.6rem;
    font-weight: 900;
}

.avatar-form-modal,
.avatar-detail-modal {
    position: relative;
    width: min(100%, 410px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 46px rgba(19, 14, 10, 0.18);
}

.avatar-form-modal.is-wide {
    width: min(100%, 520px);
}

.avatar-form-modal h3,
.avatar-detail-modal h3 {
    margin: 0 36px 18px 0;
    color: #191919;
    font-size: 1.2rem;
    font-weight: 900;
}

.avatar-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #1f1f1f;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.avatar-modal-grid,
.avatar-variation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.avatar-upload-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.avatar-upload-field label {
    color: #a55412;
    font-size: 0.78rem;
    font-weight: 900;
}

.avatar-upload-box {
    min-height: 118px;
    padding: 14px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    border: 1.4px dashed rgba(208, 161, 124, 0.92);
    border-radius: 12px;
    background: #fffefd;
    color: #5b3a20;
    cursor: pointer;
}

.avatar-upload-box.has-preview {
    min-height: 104px;
}

.avatar-upload-box img {
    max-width: 150px;
    max-height: 92px;
    object-fit: contain;
}

.avatar-upload-box strong {
    color: #4a2d1d;
    font-size: 0.82rem;
    font-weight: 900;
}

.avatar-upload-box small {
    color: #755f52;
    font-size: 0.72rem;
    font-weight: 700;
}

.avatar-upload-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #fff4e8;
    color: #e0891f;
    font-size: 1.2rem;
    font-weight: 900;
}

.avatar-hidden-file {
    display: none;
}

.avatar-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.avatar-modal-actions .management-primary-button,
.avatar-modal-actions .management-secondary-button {
    height: 42px;
}

.avatar-add-variation {
    width: 100%;
    height: 38px;
    margin-top: 12px;
    border: 1.4px solid rgba(229, 214, 204, 0.96);
    border-radius: 12px;
    background: #ffffff;
    color: #5a3420;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.avatar-variation-list {
    display: grid;
    gap: 10px;
}

.avatar-variation-draft {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(229, 214, 204, 0.96);
    border-radius: 12px;
}

.avatar-variation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #a55412;
    font-size: 0.8rem;
}

.avatar-variation-head button,
.avatar-icon-button {
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 92, 92, 0.22);
    border-radius: 999px;
    background: #fffafa;
    color: #df3f3f;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.avatar-icon-button:not(.is-danger) {
    border-color: rgba(224, 139, 31, 0.28);
    background: #fff8ee;
    color: #a95b11;
}

.avatar-icon-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.avatar-delete-modal .management-modal-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.avatar-detail-modal {
    width: min(100%, 510px);
}

.avatar-detail-main-row,
.avatar-detail-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(229, 214, 204, 0.96);
    border-radius: 10px;
    background: #ffffff;
}

.avatar-detail-main-row {
    border-color: rgba(208, 161, 124, 0.92);
}

.avatar-detail-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.avatar-detail-main-row div,
.avatar-detail-row div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.avatar-detail-main-row strong,
.avatar-detail-row strong {
    color: #161616;
    font-size: 0.86rem;
    font-weight: 900;
}

.avatar-detail-main-row span {
    color: #7d7470;
    font-size: 0.72rem;
    font-weight: 700;
}

.avatar-detail-main-row em {
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff4e3;
    color: #d77d12;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.avatar-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 10px;
}

.avatar-detail-title-row h4 {
    margin: 0;
    color: #a55412;
    font-size: 0.84rem;
    font-weight: 900;
}

.avatar-detail-list {
    display: grid;
    gap: 10px;
}

@media (max-width: 1180px) {
    .asset-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .avatar-card-grid,
    .asset-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .avatar-assets-section-head,
    .avatar-detail-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .avatar-card-grid,
    .asset-card-grid,
    .avatar-modal-grid,
    .avatar-variation-grid,
    .avatar-modal-actions {
        grid-template-columns: 1fr;
    }
}
