/* ==============================
   システム/GM発言
============================== */

.chat-post.is-system-post {
    border-color: #2f6fd6;
}

.chat-post.is-system-post .chat-post__body,
.chat-post.is-system-post .chat-post__content {
    color: #005fcc;
}

.chat-post.is-system-post .chat-post__name,
.chat-post.is-system-post .chat-post__header strong {
    color: #004a99;
}


/* ==============================
   GM専用ページ
============================== */

.gm-status-grid {
    display: grid;
    gap: 14px;
}

.gm-status-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 16px;
}

.gm-status-card .chat-compose__submit,
.gm-status-card .gm-dashboard-link-button,
.gm-status-card .gm-ap-schedule-delete-button {
    width: auto;
    min-width: 148px;
    padding: 6px 14px;
    white-space: nowrap;
}

.gm-status-card--compact {
    padding: 14px 16px;
}

.gm-status-card--compact .gm-status-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
}

.gm-status-card--compact .gm-status-card__title {
    grid-column: 1 / -1;
    font-size: 20px;
    line-height: 1.35;
}

.gm-status-card--compact .gm-status-card__divider {
    display: none;
}

.gm-status-card--compact .gm-status-card__text {
    margin: 0;
    line-height: 1.55;
}

.gm-status-card--compact .gm-status-card__form {
    justify-self: end;
}

.gm-status-card--compact .chat-compose__submit {
    margin-left: 0;
}

.gm-status-card {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #999;
    border-radius: 6px;
    background: #fff;
}

.gm-status-card__body {
    width: 100%;
}

.gm-status-card__title {
    margin: 0;
    padding: 0;
    border-bottom: none;
    font-size: 22px;
    line-height: 1.4;
}

.gm-status-card__divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    background: #999;
}

.gm-status-card__text {
    margin: 0 0 12px;
    line-height: 1.7;
}

.gm-status-card__form {
    margin: 0;
}

.chat-post__eno-link--disabled {
    color: #666;
    text-decoration: none;
    cursor: default;
}


/* ==============================
   GMアナウンス管理
============================== */

.gm-announcement-delete-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 12px;
}


/* ==============================
   GM専用ページ：リンクボタン
============================== */

.gm-dashboard-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: bold;
    text-decoration: none;
}

.gm-dashboard-link-button:hover {
    background: #eee;
    text-decoration: none;
}


/* ==============================
   GM専用ページ：エリア公開設定
============================== */

.gm-area-public-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
    margin: 12px 0 14px;
}

.gm-area-public-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(120, 120, 120, 0.45);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.gm-area-public-item__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    cursor: pointer;
}

.gm-area-public-item input {
    width: auto;
    max-width: none;
    margin: 0;
}

.gm-area-public-item__name {
    font-weight: bold;
}

.gm-area-public-item__note {
    margin-left: auto;
    color: #777;
    font-size: 12px;
}



/* ==============================
   GM専用ページ：新規登録時の初期AP
============================== */

.gm-initial-ap-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gm-initial-ap-form__label {
    font-weight: bold;
}

.gm-initial-ap-form__input {
    width: 90px;
    max-width: 90px;
}

.gm-initial-ap-form__help {
    margin: 8px 0 0;
    color: #666;
    font-size: 0.86rem;
    line-height: 1.6;
}


/* ==============================
   GM専用ページ：AP手動配布
============================== */

.gm-ap-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin: 12px 0 14px;
}

.gm-ap-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(120, 120, 120, 0.45);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.gm-ap-summary__row dt {
    margin: 0;
    color: #444;
    font-weight: bold;
}

.gm-ap-summary__row dd {
    margin: 0;
    font-weight: bold;
}

.gm-ap-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gm-ap-form__label {
    font-weight: bold;
}

.gm-ap-form__input {
    width: 90px;
    max-width: 90px;
}

.gm-ap-reset-form {
    margin-top: 10px;
}

.gm-ap-reset-button {
    border-color: #9c3838;
    background: #fff4f4;
    color: #6f0000;
    font-weight: bold;
}

.gm-ap-reset-button:hover:not(:disabled) {
    background: #ffe5e5;
}

.gm-ap-reset-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ==============================
   GM専用ページ：報告Webhook設定
============================== */

.gm-webhook-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gm-webhook-form__label {
    font-weight: bold;
}

.gm-webhook-form__input {
    width: 100%;
    max-width: 800px;
}

.gm-webhook-form__help {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.gm-webhook-form__errors {
    color: #a00000;
}

.gm-webhook-form__errors ul {
    margin: 0;
    padding-left: 20px;
}

/* ==============================
   GM専用ページ：AP自動配布
============================== */

.gm-ap-scheduler-status {
    margin: 10px 0;
    padding: 9px 11px;
    border: 1px solid rgba(100, 120, 140, 0.45);
    border-radius: 6px;
    background: rgba(240, 247, 255, 0.78);
    line-height: 1.6;
}

.gm-ap-scheduler-note {
    margin: 0 0 14px;
    color: #665522;
    font-size: 13px;
    line-height: 1.6;
}

.gm-ap-schedule-list {
    display: grid;
    gap: 10px;
}

.gm-ap-schedule-item {
    padding: 12px;
    border: 1px solid rgba(120, 120, 120, 0.45);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.8);
}

.gm-ap-schedule-item__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 10px;
    font-size: 13px;
}

.gm-ap-schedule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 8px;
    border: 1px solid #777;
    border-radius: 999px;
    font-weight: bold;
}

.gm-ap-schedule-badge.is-enabled {
    border-color: #3f7b4b;
    background: #eef9f0;
    color: #245d30;
}

.gm-ap-schedule-badge.is-disabled {
    border-color: #888;
    background: #f2f2f2;
    color: #666;
}

.gm-ap-schedule-item__next,
.gm-ap-schedule-item__last {
    color: #444;
}

.gm-ap-schedule-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0;
}

.gm-ap-schedule-form label {
    font-weight: bold;
}

.gm-ap-schedule-form__time {
    width: 120px;
    max-width: 120px;
}

.gm-ap-schedule-form__amount {
    width: 90px;
    max-width: 90px;
}

.gm-ap-schedule-form__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.gm-ap-schedule-form__enabled {
    width: auto;
    max-width: none;
    margin: 0;
}

.gm-ap-schedule-delete-form {
    margin: 9px 0 0;
}

.gm-ap-schedule-delete-button {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #9c3838;
    border-radius: 5px;
    background: #fff4f4;
    color: #6f0000;
    font-weight: bold;
    cursor: pointer;
}

.gm-ap-schedule-delete-button:hover {
    background: #ffe5e5;
}

.gm-ap-schedule-empty {
    margin: 8px 0;
    color: #666;
}

.gm-ap-schedule-add,
.gm-ap-run-history {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(120, 120, 120, 0.35);
}

.gm-ap-schedule-add__title,
.gm-ap-run-history__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.gm-ap-run-history__table-wrap {
    width: 100%;
    overflow-x: auto;
}

.gm-ap-run-history__table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.gm-ap-run-history__table th,
.gm-ap-run-history__table td {
    padding: 8px 9px;
    border: 1px solid rgba(120, 120, 120, 0.4);
    text-align: left;
    vertical-align: top;
}

.gm-ap-run-history__table th {
    background: rgba(235, 235, 235, 0.85);
}

.gm-ap-run-status {
    font-weight: bold;
}

.gm-ap-run-status--success {
    color: #23652e;
}

.gm-ap-run-status--failed {
    color: #9a2020;
}

.gm-ap-run-status--running {
    color: #8a6700;
}

.gm-ap-run-error {
    margin-top: 4px;
    color: #8b1f1f;
    font-size: 12px;
    overflow-wrap: anywhere;
}


/* ==============================
   探索結果一括登録
============================== */

/* ==============================
   サイト基本設定
============================== */

.gm-site-settings-page {
    max-width: 980px;
    margin: 0 auto;
}

.gm-site-settings-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gm-site-settings-page__header h1,
.gm-site-settings-page__header p {
    margin-top: 0;
}

.gm-site-settings-form {
    display: grid;
    gap: 16px;
}

.gm-site-settings-form__grid,
.gm-site-settings-form__image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gm-site-settings-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gm-site-settings-form__field--wide {
    grid-column: 1 / -1;
}

.gm-site-settings-form__field input[type="text"],
.gm-site-settings-form__field textarea,
.gm-site-settings-form__field select {
    width: 100%;
    padding: 8px;
}

.gm-site-settings-form__preview {
    width: 100%;
    height: 150px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: #eee;
    object-fit: cover;
}

.gm-site-settings-form__preview--logo {
    object-fit: contain;
}

.gm-site-settings-form__preview--map {
    height: 220px;
}

.gm-site-settings-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

@media (max-width: 700px) {
    .gm-site-settings-page__header,
    .gm-site-settings-form__grid,
    .gm-site-settings-form__image-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gm-site-settings-form__field--wide {
        grid-column: auto;
    }
}

.gm-explore-bulk-form {
    display: grid;
    gap: 16px;
}

.gm-explore-bulk-targets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gm-explore-bulk-field {
    display: grid;
    gap: 6px;
}

.gm-explore-bulk-field > label {
    font-weight: bold;
}

.gm-explore-bulk-form__select,
.gm-explore-bulk-form__textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.gm-explore-bulk-form__textarea {
    min-height: 420px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.gm-explore-bulk-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.gm-explore-bulk-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.gm-explore-bulk-option input {
    width: auto;
    max-width: none;
    margin: 0;
}

.gm-explore-bulk-help {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.gm-explore-bulk-errors,
.gm-explore-bulk-form .errorlist {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(160, 55, 55, 0.5);
    border-radius: 6px;
    background: #fff3f3;
    color: #8c1111;
}

.gm-explore-bulk-form .errorlist {
    list-style-position: inside;
}

.gm-explore-bulk-actions {
    display: flex;
    justify-content: flex-end;
}

.gm-explore-bulk-preview {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(120, 120, 120, 0.45);
}

.gm-explore-bulk-preview__title {
    margin: 0;
    font-size: 20px;
}

.gm-explore-bulk-preview__list {
    display: grid;
    gap: 12px;
}

.gm-explore-bulk-preview__item {
    padding: 12px;
    border: 1px solid rgba(120, 120, 120, 0.45);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.gm-explore-bulk-preview__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.gm-explore-bulk-preview__body {
    line-height: 1.7;
    white-space: normal;
}

.gm-explore-bulk-warning {
    margin: 0 0 8px;
    padding: 7px 9px;
    border: 1px solid rgba(175, 125, 25, 0.55);
    border-radius: 5px;
    background: #fff8df;
    color: #704d00;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .gm-explore-bulk-targets {
        grid-template-columns: 1fr;
    }
}

/* エリア公開設定内の一言説明入力欄。 */
.gm-area-public-item__short-description {
    min-width: 0;
    flex: 1 1 220px;
    box-sizing: border-box;
}


@media (max-width: 760px) {
    .gm-status-grid--compact {
        grid-template-columns: 1fr;
    }

    .gm-status-card--compact .gm-status-card__body {
        grid-template-columns: 1fr;
    }

    .gm-status-card--compact .gm-status-card__form {
        justify-self: start;
    }

    .gm-status-card .chat-compose__submit,
    .gm-status-card .gm-dashboard-link-button,
    .gm-status-card .gm-ap-schedule-delete-button {
        min-width: 0;
    }
}

/* ==============================
   GM専用ページ：集計画面
============================== */

.gm-stat-page {
    max-width: 920px;
    margin: 0 auto;
}

.gm-stat-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.gm-stat-page__title {
    margin: 0 0 8px;
}

.gm-stat-page__lead {
    margin: 0;
    color: #5f5a55;
    font-size: 0.95rem;
    line-height: 1.65;
}

.gm-item-stat__id {
    margin-bottom: 2px;
    color: #81776f;
    font-size: 0.78rem;
    font-weight: 700;
}

.gm-item-stat__inactive-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(120, 120, 120, 0.5);
    border-radius: 999px;
    background: #f2f2f2;
    color: #666;
    font-size: 0.78rem;
    font-weight: 700;
}

.gm-item-stat__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.gm-item-stat__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(120, 105, 90, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
}

.gm-item-stat__summary-row dt,
.gm-item-stat__summary-row dd {
    margin: 0;
}

.gm-item-stat__summary-row dt {
    color: #6b625a;
    font-size: 0.86rem;
    font-weight: 700;
}

.gm-item-stat__summary-row dd {
    color: #3f332c;
    font-size: 1rem;
    font-weight: 800;
}

.gm-chat-stat-list {
    display: grid;
    gap: 14px;
}

.gm-chat-stat-card {
    padding: 16px;
    border: 1px solid rgba(120, 105, 90, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
}

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

.main-content h2.gm-chat-stat-card__title,
.gm-chat-stat-card__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.2rem;
}

.gm-chat-stat-card__total {
    flex: 0 0 auto;
    color: #5f554c;
    font-size: 0.9rem;
}

.gm-chat-stat-card__total strong {
    margin-left: 6px;
    color: #332b26;
    font-size: 1.15rem;
}

.gm-chat-stat-card__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.gm-chat-stat-card__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(100, 90, 80, 0.07);
}

.gm-chat-stat-card__summary-row dt,
.gm-chat-stat-card__summary-row dd {
    margin: 0;
}

.gm-chat-stat-card__summary-row dt {
    color: #625950;
    font-size: 0.86rem;
    font-weight: 700;
}

.gm-chat-stat-card__summary-row dd {
    font-weight: 800;
}

.gm-chat-stat-room-list {
    border-top: 1px solid rgba(120, 105, 90, 0.2);
}

.gm-chat-stat-room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(120, 105, 90, 0.14);
}

.gm-chat-stat-room-row:last-child {
    border-bottom: 0;
}

.gm-chat-stat-room-row__name {
    min-width: 0;
    font-weight: 700;
}

.gm-chat-stat-room-row__count {
    flex: 0 0 auto;
    min-width: 4ch;
    text-align: right;
    font-weight: 800;
}

.gm-chat-stat-room-row__badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(85, 110, 145, 0.11);
    color: #445d79;
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

.gm-chat-stat-room-row__badge--user {
    background: rgba(105, 90, 70, 0.1);
    color: #6d5946;
}

.gm-chat-stat-room-row__badge--hidden {
    background: rgba(130, 80, 80, 0.1);
    color: #7b4444;
}

.gm-chat-stat-room-list__empty {
    padding: 9px 4px 2px;
    color: #81776f;
    font-size: 0.86rem;
}

@media (max-width: 640px) {
    .gm-stat-page__header {
        flex-direction: column;
    }

    .gm-item-stat__summary,
    .gm-chat-stat-card__summary {
        grid-template-columns: 1fr;
    }

    .gm-chat-stat-card__header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==============================
   GM専用ページ：ルールブックQ&A追加
============================== */

.gm-rulebook-qa-form {
    display: grid;
    gap: 14px;
}

.gm-rulebook-qa-form__field {
    display: grid;
    gap: 6px;
}

.gm-rulebook-qa-form__field label {
    font-weight: bold;
}

.gm-rulebook-qa-form__question,
.gm-rulebook-qa-form__answer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.gm-rulebook-qa-form__answer {
    resize: vertical;
}

.gm-rulebook-qa-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gm-rulebook-qa-list {
    display: grid;
    gap: 12px;
}

.gm-rulebook-qa-list__item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(120, 120, 120, 0.35);
}

.gm-rulebook-qa-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gm-rulebook-qa-list__item p {
    margin: 6px 0 0;
    line-height: 1.7;
}

/* ==============================
   GM管理：共通一覧・編集画面
============================== */
.gm-manage-page {
    max-width: 1050px;
    margin: 0 auto;
}

.gm-manage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gm-manage-header h1,
.gm-manage-header p {
    margin-top: 0;
}

.gm-manage-header__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.gm-record-list {
    display: grid;
    gap: 10px;
}

.gm-record-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #aaa;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    text-decoration: none;
}

.gm-record-row:hover {
    border-color: #666;
    background: #fff;
    text-decoration: none;
}

.gm-record-row__preview {
    width: 86px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: #eee center / cover no-repeat;
}

.gm-record-row__preview--item {
    width: 58px;
    height: 58px;
}

.gm-record-row__preview--item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-record-row__main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.gm-record-row__main strong {
    font-size: 16px;
}

.gm-record-row__main span,
.gm-record-row__meta {
    color: #555;
    font-size: 13px;
    line-height: 1.55;
}

.gm-record-row__meta {
    min-width: 150px;
    text-align: right;
}

.gm-record-row__arrow {
    color: #666;
    font-size: 28px;
    line-height: 1;
}

.gm-editor-form {
    padding: 16px;
    border: 1px solid #aaa;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
}

.gm-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gm-editor-field {
    display: grid;
    align-content: start;
    gap: 6px;
}

.gm-editor-field--wide {
    grid-column: 1 / -1;
}

.gm-editor-field > label {
    font-weight: bold;
}

.gm-editor-field input:not([type="checkbox"]),
.gm-editor-field select,
.gm-editor-field textarea {
    width: 100%;
    max-width: none;
    padding: 8px;
}

.gm-editor-field input[type="file"] {
    padding: 6px 0;
}

.gm-editor-field small {
    color: #666;
    line-height: 1.5;
}

.gm-editor-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.gm-editor-check input {
    width: auto;
    margin: 0;
}

.gm-editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.gm-danger-zone {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #bd6868;
    border-radius: 7px;
    background: #fff4f4;
}

.gm-danger-zone h2 {
    margin-top: 0;
    color: #781f1f;
}

.gm-danger-button {
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #9c3838;
    border-radius: 5px;
    background: #fff;
    color: #7a1111;
    font-weight: bold;
    cursor: pointer;
}

.gm-danger-button:hover {
    background: #ffe4e4;
}

.gm-area-image-preview {
    position: relative;
    min-height: 170px;
    margin-bottom: 16px;
    border: 1px solid #aaa;
    border-radius: 7px;
    background: #eee center / cover no-repeat;
    overflow: hidden;
}

.gm-area-image-preview span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-weight: bold;
}

@media (max-width: 760px) {
    .gm-manage-header,
    .gm-record-row,
    .gm-editor-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gm-manage-header__actions {
        justify-content: flex-start;
    }

    .gm-record-row__preview {
        width: 100%;
        height: 120px;
    }

    .gm-record-row__preview--item {
        width: 70px;
        height: 70px;
    }

    .gm-record-row__meta {
        min-width: 0;
        text-align: left;
    }

    .gm-record-row__arrow {
        display: none;
    }

    .gm-editor-field--wide {
        grid-column: auto;
    }
}

.gm-background-setting-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gm-background-setting {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: rgba(250, 250, 250, 0.8);
}

.gm-background-setting h3 {
    margin: 0;
}

.gm-site-settings-form__preview--contain {
    object-fit: contain;
}

.gm-site-settings-form__field input[type="color"] {
    width: 100%;
    min-height: 42px;
    padding: 2px;
}

@media (max-width: 900px) {
    .gm-background-setting-list {
        grid-template-columns: 1fr;
    }
}

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

.gm-hub-card {
    display: grid;
    gap: 7px;
    min-height: 108px;
    padding: 16px;
    border: 1px solid #999;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #222;
    text-decoration: none;
}

.gm-hub-card:hover {
    border-color: #555;
    background: #fff;
    text-decoration: none;
}

.gm-hub-card strong {
    font-size: 18px;
}

.gm-hub-card span {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .gm-hub-grid {
        grid-template-columns: 1fr;
    }
}

.gm-dashboard-summary {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.gm-dashboard-summary h2 {
    margin-top: 0;
}

.gm-dashboard-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.6rem;
}

.gm-dashboard-summary__grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.gm-dashboard-summary__grid input {
    width: 6rem;
}

.gm-dashboard-summary__schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-top: 0.8rem;
}

.gm-dashboard-summary__link {
    display: inline-block;
    margin-top: 0.8rem;
}

/* ログイン画面イントロ背景のGMプレビュー */
.gm-login-title-background-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 8px 0 10px;
    overflow: hidden;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f6f6f6;
}

.gm-login-title-background-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--gm-login-title-background-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: var(--gm-login-title-background-opacity, 1);
}

.gm-login-title-background-preview span {
    position: relative;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
    color: #222;
    font-weight: bold;
}
