/**
 * =====================================================
 * Herzschild Digital Gacha
 * File    : manager/assets/css/manager.css
 * Version : 1.1.0 Build5
 *
 * Frontend Manager Style
 * =====================================================
 */


/* =====================================================
   Root
===================================================== */

.hdg-manager {

    --hdgm-bg: #f5f6f8;
    --hdgm-panel: #ffffff;
    --hdgm-border: #dcdcde;
    --hdgm-text: #1d2327;
    --hdgm-subtext: #646970;
    --hdgm-accent: #2271b1;
    --hdgm-accent-soft: #eef6fc;
    --hdgm-success: #1f8a4c;
    --hdgm-danger: #c43a3a;
    --hdgm-warning: #b26200;

    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0;
    box-sizing: border-box;

    color: var(--hdgm-text);

    font-size: 15px;
    line-height: 1.7;
}


.hdg-manager *,
.hdg-manager *::before,
.hdg-manager *::after {

    box-sizing: border-box;
}


/* =====================================================
   Header
===================================================== */

.hdg-manager__header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
    padding: 22px 24px;

    background: var(--hdgm-panel);

    border:
        1px solid
        var(--hdgm-border);

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.06);
}


.hdg-manager__brand-label {

    margin-bottom: 2px;

    color: var(--hdgm-accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.hdg-manager__title {

    margin: 0;

    color: var(--hdgm-text);

    font-size:
        clamp(
            24px,
            4vw,
            34px
        );

    line-height: 1.25;
}


.hdg-manager__user {

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    min-width: 150px;
}


.hdg-manager__user-label {

    color: var(--hdgm-subtext);

    font-size: 11px;
}


.hdg-manager__user-name {

    margin-top: 2px;

    font-size: 15px;
}


/* =====================================================
   Welcome
===================================================== */

.hdg-manager__welcome {

    margin-bottom: 22px;

    padding: 26px 28px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f3f8fc
        );

    border:
        1px solid
        #d8e7f2;

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.05);
}


.hdg-manager__welcome h2 {

    margin:
        4px 0
        8px;

    font-size: 25px;
}


.hdg-manager__welcome p {

    margin: 0;

    color: var(--hdgm-subtext);
}


/* =====================================================
   Step Label
===================================================== */

.hdg-manager__step-label {

    display: inline-block;

    color: var(--hdgm-accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* =====================================================
   Menu
===================================================== */

.hdg-manager__menu {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 22px;
}


.hdg-manager__menu-card {

    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 105px;

    padding: 18px;

    box-sizing: border-box;

    background: var(--hdgm-panel);

    border:
        1px solid
        var(--hdgm-border);

    border-radius: 14px;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.05);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.hdg-manager__menu-card.is-active {

    border-color:
        rgba(34, 113, 177, 0.38);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f2f8fc
        );
}


.hdg-manager__menu-card.is-disabled {

    opacity: 0.55;
}


.hdg-manager__menu-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background:
        var(--hdgm-accent-soft);

    font-size: 22px;
}


.hdg-manager__menu-card strong {

    display: block;

    font-size: 15px;
}


.hdg-manager__menu-card p {

    margin:
        3px 0 0;

    color: var(--hdgm-subtext);

    font-size: 12px;
    line-height: 1.5;
}


/* =====================================================
   Panel
===================================================== */

.hdg-manager__panel {

    margin-bottom: 22px;

    padding: 24px;

    background: var(--hdgm-panel);

    border:
        1px solid
        var(--hdgm-border);

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.05);
}


.hdg-manager__panel-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;

    margin-bottom: 20px;
}


.hdg-manager__panel-header h2 {

    margin:
        3px 0 0;

    font-size: 22px;
}


.hdg-manager__status-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;

    padding:
        6px
        11px;

    border-radius: 999px;

    background: #eef6fc;

    color:
        var(--hdgm-accent);

    font-size: 11px;
    font-weight: 800;
}


/* =====================================================
   Foundation Grid
===================================================== */

.hdg-manager__foundation-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.hdg-manager__foundation-item {

    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 18px;

    border:
        1px solid
        #e4e6e8;

    border-radius: 12px;

    background: #fafafa;
}


.hdg-manager__check {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #e9f7ef;

    color:
        var(--hdgm-success);

    font-size: 14px;
    font-weight: 900;
}


.hdg-manager__foundation-item strong {

    display: block;

    font-size: 14px;
}


.hdg-manager__foundation-item p {

    margin:
        3px 0 0;

    color:
        var(--hdgm-subtext);

    font-size: 12px;
    line-height: 1.6;
}


/* =====================================================
   Next
===================================================== */

.hdg-manager__next {

    padding: 20px 22px;

    border-left:
        4px solid
        var(--hdgm-accent);

    background: #f0f6fc;

    border-radius:
        0 10px 10px 0;
}


.hdg-manager__next strong {

    display: block;

    margin-bottom: 4px;
}


.hdg-manager__next p {

    margin: 0;

    color: var(--hdgm-subtext);
}


/* =====================================================
   Manager Messages
===================================================== */

.hdg-manager-message {

    width: 100%;
    max-width: 720px;

    margin: 40px auto;

    padding: 34px 28px;

    box-sizing: border-box;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.07);
}


.hdg-manager-message h2 {

    margin:
        0 0 10px;

    font-size: 24px;
}


.hdg-manager-message p {

    margin:
        0 auto 18px;

    max-width: 520px;

    color: #646970;
}


.hdg-manager-message--denied {

    border-color: #ecc4c4;

    background: #fffafa;
}


.hdg-manager-message--success {

    max-width: none;

    margin:
        0 0 20px;

    padding: 14px 18px;

    border-color: #b8dfc7;

    background: #f1faf5;

    color: #176638;

    text-align: left;
}


.hdg-manager-message--error {

    max-width: none;

    margin:
        0 0 20px;

    padding: 14px 18px;

    border-color: #efc1c1;

    background: #fff5f5;

    color: #a52a2a;

    text-align: left;
}


.hdg-manager-message--warning {

    max-width: none;

    margin:
        10px 0 0;

    padding: 12px 16px;

    border-color: #ead4ad;

    background: #fff9ed;

    color: #855100;

    text-align: left;
}


.hdg-manager-message__button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 150px;

    padding:
        11px
        20px;

    border: 0;

    border-radius: 10px;

    background: #2271b1;

    color: #ffffff !important;

    font: inherit;
    font-weight: 700;

    line-height: 1.4;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.hdg-manager-message__button:hover {

    transform:
        translateY(-1px);

    background: #135e96;

    box-shadow:
        0 5px 14px
        rgba(34, 113, 177, 0.22);
}


.hdg-manager-message__button--secondary {

    background: #ffffff;

    border:
        1px solid
        #b9bec3;

    color: #50575e !important;
}


.hdg-manager-message__button--secondary:hover {

    background: #f6f7f7;

    color: #1d2327 !important;
}


/* =====================================================
   Edit Gacha
===================================================== */

.hdg-manager-edit {

    width: 100%;

    color:
        var(
            --hdgm-text,
            #1d2327
        );
}


/* =====================================================
   Edit Header
===================================================== */

.hdg-manager-edit__header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-bottom: 18px;

    padding: 24px;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.05);
}


.hdg-manager-edit__header-main {

    min-width: 0;
}


.hdg-manager-edit__eyebrow {

    margin-bottom: 4px;

    color: #2271b1;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.hdg-manager-edit__title {

    margin: 0;

    color: #1d2327;

    font-size:
        clamp(
            24px,
            4vw,
            32px
        );

    line-height: 1.25;
}


.hdg-manager-edit__description {

    margin:
        8px 0 0;

    color: #646970;

    font-size: 14px;
}


.hdg-manager-edit__header-actions {

    flex:
        0 0 auto;
}


.hdg-manager-edit__back {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        9px
        16px;

    border:
        1px solid
        #c3c4c7;

    border-radius: 10px;

    background: #ffffff;

    color: #2271b1 !important;

    font-weight: 700;

    text-decoration: none !important;
}


.hdg-manager-edit__back:hover {

    border-color: #2271b1;

    background: #f6fbff;
}


/* =====================================================
   Edit Summary
===================================================== */

.hdg-manager-edit__summary {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 18px;
}


.hdg-manager-edit__summary-card {

    min-width: 0;

    padding: 16px 18px;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 12px;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.035);
}


.hdg-manager-edit__summary-label {

    display: block;

    margin-bottom: 4px;

    color: #646970;

    font-size: 11px;
    font-weight: 700;
}


.hdg-manager-edit__summary-value {

    display: block;

    overflow: hidden;

    color: #1d2327;

    font-size: 14px;

    line-height: 1.45;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =====================================================
   Edit Navigation
===================================================== */

.hdg-manager-edit__navigation {

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 8px;

    margin-bottom: 18px;
}


.hdg-manager-edit__navigation-item {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 50px;

    padding:
        10px
        8px;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 10px;

    color: #50575e !important;

    font-size: 13px;

    text-decoration: none !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}


.hdg-manager-edit__navigation-item span {

    color: #8c8f94;

    font-size: 12px;
    font-weight: 800;
}


.hdg-manager-edit__navigation-item strong {

    font-weight: 700;
}


.hdg-manager-edit__navigation-item:hover {

    border-color: #72aee6;

    background: #f6fbff;

    color: #2271b1 !important;
}


.hdg-manager-edit__navigation-item.is-active {

    border-color: #2271b1;

    background: #eef6fc;

    color: #135e96 !important;

    box-shadow:
        inset 0 0 0 1px
        rgba(34, 113, 177, 0.12);
}


.hdg-manager-edit__navigation-item.is-active span {

    color: #2271b1;
}


/* =====================================================
   Edit Content
===================================================== */

.hdg-manager-edit__content {

    width: 100%;

    padding: 26px;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.05);
}


.hdg-manager-edit__section-header {

    margin-bottom: 26px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        #e5e5e5;
}


.hdg-manager-edit__section-header h3 {

    margin:
        4px 0
        6px;

    color: #1d2327;

    font-size: 22px;

    line-height: 1.35;
}


.hdg-manager-edit__section-header p {

    margin: 0;

    color: #646970;

    font-size: 13px;
}


/* =====================================================
   Edit Form
===================================================== */

.hdg-manager-edit__form {

    width: 100%;
}


.hdg-manager-edit__field {

    margin-bottom: 26px;
}


.hdg-manager-edit__field:last-child {

    margin-bottom: 0;
}


.hdg-manager-edit__label {

    display: block;

    margin-bottom: 8px;

    color: #1d2327;

    font-size: 13px;
    font-weight: 700;
}


.hdg-manager-edit__required {

    display: inline-flex;

    margin-left: 5px;

    padding:
        1px
        6px;

    border-radius: 999px;

    background: #fff0f0;

    color: #b32d2e;

    font-size: 10px;
    font-weight: 800;

    vertical-align: middle;
}


.hdg-manager-edit__input,
.hdg-manager-edit__textarea,
.hdg-manager-edit__select {

    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;

    padding:
        10px
        12px;

    border:
        1px solid
        #c3c4c7;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #1d2327;

    font: inherit;

    font-size: 14px;

    line-height: 1.5;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.hdg-manager-edit__input {

    min-height: 44px;
}


.hdg-manager-edit__textarea {

    min-height: 120px;

    resize: vertical;
}


.hdg-manager-edit__select {

    min-height: 44px;

    cursor: pointer;
}


.hdg-manager-edit__input:focus,
.hdg-manager-edit__textarea:focus,
.hdg-manager-edit__select:focus {

    border-color: #2271b1;

    box-shadow:
        0 0 0 1px
        #2271b1;
}


.hdg-manager-edit__help {

    margin:
        7px 0 0;

    color: #646970;

    font-size: 12px;

    line-height: 1.6;
}
/* =====================================================
   Image Selector
===================================================== */

.hdg-manager-edit__image-selector {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    width: 100%;
}


.hdg-manager-edit__image-preview {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 520px;

    min-height: 180px;

    overflow: hidden;

    padding: 14px;

    background: #f6f7f7;

    border:
        1px dashed
        #a7aaad;

    border-radius: 12px;

    color: #646970;

    text-align: center;
}


.hdg-manager-edit__image-preview img {

    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 360px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 8px;
}


.hdg-manager-edit__image-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/* =====================================================
   Option Cards
===================================================== */

.hdg-manager-edit__option-list {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 10px;
}


.hdg-manager-edit__option-card {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-height: 92px;

    padding: 18px;

    background: #fafafa;

    border:
        1px solid
        #e1e3e5;

    border-radius: 12px;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.hdg-manager-edit__option-card:hover {

    border-color: #72aee6;

    background: #f6fbff;

    box-shadow:
        0 4px 14px
        rgba(34, 113, 177, 0.07);
}


.hdg-manager-edit__option-main {

    min-width: 0;
}


.hdg-manager-edit__option-main strong {

    display: block;

    margin-bottom: 4px;

    color: #1d2327;

    font-size: 14px;
}


.hdg-manager-edit__option-main p {

    margin: 0;

    color: #646970;

    font-size: 12px;

    line-height: 1.55;
}


.hdg-manager-edit__option-control {

    flex:
        0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;
}


.hdg-manager-edit__option-control input[type="checkbox"],
.hdg-manager-edit__option-control input[type="radio"] {

    width: 18px;
    height: 18px;

    margin: 0;

    cursor: pointer;
}


/* =====================================================
   Actions
===================================================== */

.hdg-manager-edit__actions {

    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid
        #e5e5e5;
}


/* =====================================================
   Prize List
===================================================== */

.hdg-manager-edit__prize-list {

    display: grid;

    gap: 18px;
}


.hdg-manager-edit__prize-card {

    padding: 22px;

    background: #ffffff;

    border:
        1px solid
        #dcdcde;

    border-radius: 14px;

    box-shadow:
        0 5px 16px
        rgba(0, 0, 0, 0.035);
}


.hdg-manager-edit__prize-header {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 20px;

    padding-bottom: 14px;

    border-bottom:
        1px solid
        #eeeeee;
}


.hdg-manager-edit__prize-header > div {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.hdg-manager-edit__prize-title {

    overflow: hidden;

    color: #1d2327;

    font-size: 16px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.hdg-manager-edit__enabled {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    flex:
        0 0 auto;

    color: #50575e;

    font-size: 12px;

    cursor: pointer;
}


/* =====================================================
   Rarity Badge
===================================================== */

.hdg-manager__rarity {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;

    min-height: 26px;

    padding:
        3px
        8px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    line-height: 1;
}


.hdg-manager__rarity--ur {

    background:
        linear-gradient(
            135deg,
            #fff3c4,
            #ead7ff
        );

    color: #7b3fc6;

    border:
        1px solid
        #d9b8ff;
}


.hdg-manager__rarity--ssr {

    background: #fff5d6;

    color: #9a6500;

    border:
        1px solid
        #ead59a;
}


.hdg-manager__rarity--sr {

    background: #f2e9ff;

    color: #7344a8;

    border:
        1px solid
        #d6bcef;
}


.hdg-manager__rarity--r {

    background: #eaf5ff;

    color: #1f6f9f;

    border:
        1px solid
        #bad9ed;
}


.hdg-manager__rarity--n {

    background: #f1f1f1;

    color: #646970;

    border:
        1px solid
        #d8d8d8;
}


/* =====================================================
   Probability
===================================================== */

.hdg-manager-edit__probability-list {

    display: grid;

    gap: 10px;

    margin-top: 14px;
}


.hdg-manager-edit__probability-row {

    display: grid;

    grid-template-columns:
        minmax(120px, 150px)
        minmax(180px, 1fr)
        minmax(120px, 160px);

    align-items: center;

    gap: 16px;

    padding: 16px 18px;

    background: #fafafa;

    border:
        1px solid
        #e4e6e8;

    border-radius: 12px;
}


.hdg-manager-edit__probability-rarity label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;
}


.hdg-manager-edit__probability-rarity input[type="checkbox"] {

    width: 18px;
    height: 18px;

    margin: 0;
}


.hdg-manager-edit__probability-value {

    display: flex;

    align-items: center;

    gap: 8px;
}


.hdg-manager-edit__probability-value .hdg-manager-edit__input {

    max-width: 160px;
}


.hdg-manager-edit__probability-value span {

    color: #646970;

    font-size: 13px;
}


.hdg-manager-edit__probability-count {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-width: 0;

    padding:
        9px
        12px;

    background: #ffffff;

    border:
        1px solid
        #e5e5e5;

    border-radius: 8px;
}


.hdg-manager-edit__probability-count span {

    color: #646970;

    font-size: 11px;
}


.hdg-manager-edit__probability-count strong {

    color: #1d2327;

    font-size: 13px;
}


/* =====================================================
   Generic Links
===================================================== */

.hdg-manager-edit a {

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;
}


/* =====================================================
   WordPress Theme Interference Reset
===================================================== */

.hdg-manager-edit input[type="text"],
.hdg-manager-edit input[type="number"],
.hdg-manager-edit input[type="email"],
.hdg-manager-edit input[type="url"],
.hdg-manager-edit textarea,
.hdg-manager-edit select {

    background-color: #ffffff !important;

    color: #1d2327 !important;

    border-color: #c3c4c7 !important;
}


.hdg-manager-edit input[type="checkbox"],
.hdg-manager-edit input[type="radio"] {

    accent-color: #2271b1;
}


.hdg-manager-edit button {

    font-family: inherit;
}


/* =====================================================
   Content Width Safety
===================================================== */

.hdg-manager-edit,
.hdg-manager-edit__content,
.hdg-manager-edit__form,
.hdg-manager-edit__field,
.hdg-manager-edit__image-selector,
.hdg-manager-edit__prize-card {

    min-width: 0;
}


.hdg-manager-edit img {

    max-width: 100%;

    height: auto;
}
/* =====================================================
   Tablet
===================================================== */

@media screen and (max-width: 900px) {

    .hdg-manager__menu {

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


    .hdg-manager__foundation-grid {

        grid-template-columns:
            1fr;
    }


    /* =================================================
       Edit Header
    ================================================= */

    .hdg-manager-edit__header {

        align-items: flex-start;
    }


    /* =================================================
       Edit Summary
    ================================================= */

    .hdg-manager-edit__summary {

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


    /* =================================================
       Edit Navigation
    ================================================= */

    .hdg-manager-edit__navigation {

        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );

        gap: 6px;
    }


    .hdg-manager-edit__navigation-item {

        flex-direction: column;

        gap: 2px;

        min-height: 62px;

        padding:
            8px
            5px;

        text-align: center;
    }


    /* =================================================
       Probability
    ================================================= */

    .hdg-manager-edit__probability-row {

        grid-template-columns:
            minmax(110px, 140px)
            minmax(140px, 1fr);

        gap: 12px;
    }


    .hdg-manager-edit__probability-count {

        grid-column:
            1 / -1;
    }
}


/* =====================================================
   Small Tablet
===================================================== */

@media screen and (max-width: 720px) {

    .hdg-manager-edit__header {

        flex-direction: column;

        gap: 16px;
    }


    .hdg-manager-edit__header-actions {

        width: 100%;
    }


    .hdg-manager-edit__back {

        width: 100%;
    }


    .hdg-manager-edit__option-list {

        grid-template-columns:
            1fr;
    }


    .hdg-manager-edit__image-preview {

        max-width: 100%;
    }
}


/* =====================================================
   Smartphone
===================================================== */

@media screen and (max-width: 560px) {

    /* =================================================
       Manager Root
    ================================================= */

    .hdg-manager {

        margin:
            18px auto;
    }


    /* =================================================
       Manager Header
    ================================================= */

    .hdg-manager__header {

        flex-direction: column;

        align-items: flex-start;

        padding: 18px;
    }


    .hdg-manager__user {

        align-items: flex-start;

        min-width: 0;
    }


    /* =================================================
       Welcome
    ================================================= */

    .hdg-manager__welcome {

        padding:
            20px
            18px;
    }


    /* =================================================
       Main Menu
    ================================================= */

    .hdg-manager__menu {

        grid-template-columns:
            1fr;
    }


    .hdg-manager__menu-card {

        min-height: 86px;
    }


    /* =================================================
       Panel
    ================================================= */

    .hdg-manager__panel {

        padding: 18px;
    }


    .hdg-manager__panel-header {

        align-items: flex-start;
    }


    /* =================================================
       Manager Message
    ================================================= */

    .hdg-manager-message {

        margin:
            24px auto;

        padding:
            26px
            18px;
    }


    .hdg-manager-message--success,
    .hdg-manager-message--error,
    .hdg-manager-message--warning {

        margin:
            0 0 16px;

        padding:
            12px
            14px;
    }


    /* =================================================
       Edit Header
    ================================================= */

    .hdg-manager-edit__header {

        margin-bottom: 14px;

        padding: 18px;

        border-radius: 13px;
    }


    .hdg-manager-edit__title {

        font-size: 24px;
    }


    .hdg-manager-edit__description {

        font-size: 12px;
    }


    /* =================================================
       Summary
    ================================================= */

    .hdg-manager-edit__summary {

        grid-template-columns:
            1fr;

        gap: 8px;

        margin-bottom: 14px;
    }


    .hdg-manager-edit__summary-card {

        padding:
            13px
            15px;
    }


    .hdg-manager-edit__summary-value {

        white-space: normal;

        overflow-wrap: anywhere;
    }


    /* =================================================
       Navigation
    ================================================= */

    .hdg-manager-edit__navigation {

        grid-template-columns:
            repeat(
                5,
                minmax(64px, 1fr)
            );

        gap: 6px;

        overflow-x: auto;

        margin-bottom: 14px;

        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;
    }


    .hdg-manager-edit__navigation-item {

        min-width: 64px;
        min-height: 60px;

        padding:
            7px
            4px;

        border-radius: 9px;

        font-size: 11px;

        white-space: nowrap;
    }


    .hdg-manager-edit__navigation-item span {

        font-size: 11px;
    }


    /* =================================================
       Content
    ================================================= */

    .hdg-manager-edit__content {

        padding:
            20px
            16px;

        border-radius: 13px;
    }


    .hdg-manager-edit__section-header {

        margin-bottom: 22px;

        padding-bottom: 15px;
    }


    .hdg-manager-edit__section-header h3 {

        font-size: 20px;
    }


    /* =================================================
       Form
    ================================================= */

    .hdg-manager-edit__field {

        margin-bottom: 22px;
    }


    .hdg-manager-edit__input,
    .hdg-manager-edit__textarea,
    .hdg-manager-edit__select {

        font-size: 16px;
    }


    /* =================================================
       Image Selector
    ================================================= */

    .hdg-manager-edit__image-preview {

        min-height: 130px;

        padding: 10px;
    }


    .hdg-manager-edit__image-preview img {

        max-height: 280px;
    }


    .hdg-manager-edit__image-actions {

        width: 100%;
    }


    .hdg-manager-edit__image-actions
    .hdg-manager-message__button {

        flex:
            1 1
            calc(
                50% - 4px
            );

        min-width: 0;

        padding:
            10px
            8px;
    }


    /* =================================================
       Option Cards
    ================================================= */

    .hdg-manager-edit__option-card {

        min-height: 82px;

        padding: 15px;

        gap: 12px;
    }


    /* =================================================
       Prize
    ================================================= */

    .hdg-manager-edit__prize-card {

        padding: 16px;

        border-radius: 12px;
    }


    .hdg-manager-edit__prize-header {

        align-items: flex-start;

        gap: 12px;
    }


    .hdg-manager-edit__prize-header > div {

        flex-wrap: wrap;
    }


    .hdg-manager-edit__prize-title {

        width: 100%;

        white-space: normal;

        overflow-wrap: anywhere;
    }


    /* =================================================
       Probability
    ================================================= */

    .hdg-manager-edit__probability-row {

        grid-template-columns:
            1fr;

        gap: 12px;

        padding: 14px;
    }


    .hdg-manager-edit__probability-value {

        width: 100%;
    }


    .hdg-manager-edit__probability-value
    .hdg-manager-edit__input {

        flex:
            1 1 auto;

        max-width: none;
    }


    .hdg-manager-edit__probability-count {

        grid-column: auto;

        width: 100%;
    }


    /* =================================================
       Actions
    ================================================= */

    .hdg-manager-edit__actions {

        margin-top: 24px;

        padding-top: 18px;
    }


    .hdg-manager-edit__actions
    .hdg-manager-message__button {

        width: 100%;
    }
}


/* =====================================================
   Very Small Smartphone
===================================================== */

@media screen and (max-width: 380px) {

    .hdg-manager-edit__content {

        padding:
            18px
            12px;
    }


    .hdg-manager-edit__image-actions {

        flex-direction: column;
    }


    .hdg-manager-edit__image-actions
    .hdg-manager-message__button {

        width: 100%;

        flex:
            1 1 auto;
    }


    .hdg-manager-edit__option-card {

        align-items: flex-start;
    }
}