.yom-wrap {
    max-width: 1280px;
}

.yom-standalone-body {
    margin: 0;
    padding: 24px;
    background: #f0f0f1;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yom-frontend {
    color: #1d2327;
    font-size: var(--yom-font-size, 14px);
    line-height: 1.5;
}

.yom-frontend input,
.yom-frontend select,
.yom-frontend textarea,
.yom-frontend button,
.yom-frontend table {
    font-size: inherit;
}

.yom-frontend .wrap {
    margin: 0;
}

.yom-standalone-body .yom-frontend .yom-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.yom-frontend h1 {
    margin: 0 0 16px;
    font-size: calc(var(--yom-font-size, 14px) * 2);
    line-height: 1.3;
}

.yom-frontend h2 {
    font-size: calc(var(--yom-font-size, 14px) * 1.45);
    line-height: 1.35;
}

.yom-frontend h3 {
    font-size: calc(var(--yom-font-size, 14px) * 1.2);
    line-height: 1.35;
}

.yom-front-header {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.yom-front-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
}

.yom-front-brand strong {
    font-size: calc(var(--yom-font-size, 14px) + 2px);
}

.yom-front-brand span {
    color: #646970;
    font-size: calc(var(--yom-font-size, 14px) - 2px);
}

.yom-front-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.yom-front-nav-spacer {
    flex: 1 1 auto;
    min-width: 12px;
}

.yom-kanri-body {
    padding: 0;
}

.yom-kanri-body .yom-frontend .yom-wrap {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 28px 28px 48px calc(var(--yom-sidebar-width, 340px) + 40px);
    box-sizing: border-box;
}

.yom-kanri-body .yom-front-header.yom-frame-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: var(--yom-sidebar-width, 340px);
    margin: 0;
    padding: 18px 14px;
    background: var(--yom-sidebar-bg, #fff);
    color: var(--yom-sidebar-text, #1d2327);
    border-width: 0 1px 0 0;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.yom-kanri-body .yom-frame-menu .yom-front-brand {
    display: grid;
    gap: 3px;
    margin-bottom: 18px;
}

.yom-kanri-body .yom-frame-menu .yom-front-brand strong {
    font-size: calc(var(--yom-font-size, 14px) + 1px);
    color: var(--yom-sidebar-heading, #111);
}

.yom-kanri-body .yom-frame-menu .yom-front-brand span {
    font-size: calc(var(--yom-font-size, 14px) - 3px);
    color: var(--yom-sidebar-text, #646970);
}

.yom-kanri-body .yom-frame-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 17px;
    align-items: stretch;
}

.yom-frame-menu-section {
    display: grid;
    gap: 7px;
}

.yom-frame-menu-section:not(:first-child) {
    padding-top: 12px;
    border-top: 1px solid rgba(100, 105, 112, 0.35);
}

.yom-frame-menu-label {
    color: var(--yom-sidebar-text, #646970);
    font-size: calc(var(--yom-font-size, 14px) - 3px);
    font-weight: 700;
    line-height: 1.2;
}

.yom-frame-menu-heading {
    color: var(--yom-sidebar-heading, #111);
    font-size: calc(var(--yom-font-size, 14px) + 4px);
    font-weight: 700;
    line-height: 1.25;
}

.yom-frame-menu-subheading {
    color: var(--yom-sidebar-text, #1d2327);
    font-size: calc(var(--yom-font-size, 14px) + 2px);
    font-weight: 600;
    line-height: 1.25;
}

.yom-frame-menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.yom-order-import-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.yom-kanri-body .yom-frame-nav .yom-order-import-row .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.yom-kanri-body .yom-frame-nav .button {
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    box-sizing: border-box;
    font-size: calc(var(--yom-font-size, 14px) - 1px);
    text-align: left;
}

.yom-kanri-body .yom-frame-nav .yom-frame-menu-buttons .button {
    justify-content: center;
    width: auto;
    min-width: 64px;
    text-align: center;
    white-space: nowrap;
}

.yom-kanri-body .yom-frame-menu-login .button {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
}

.yom-link-disabled {
    border-color: #c3c4c7 !important;
    background: #f6f7f7 !important;
    color: #8c8f94 !important;
    pointer-events: none;
}

.yom-frame-menu-system {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #dcdcde;
}

.yom-frontend .button.yom-front-secondary {
    border-color: #8c8f94;
    color: #2c3338;
}

.yom-sidebar-settings-section {
    margin: 18px 0 24px;
}

.yom-sidebar-settings-table th {
    width: 190px;
}

.yom-login-link-section {
    margin-top: 24px;
}

.yom-login-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yom-login-link-button {
    justify-content: center;
    min-width: 150px;
}

.yom-external-frame-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.yom-external-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 125px);
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.yom-frontend .button.is-active {
    font-weight: var(--yom-button-font-weight, 400);
}

.yom-filter-details {
    margin: 0 0 14px;
}

.yom-filter-details > summary {
    width: max-content;
    list-style: none;
}

.yom-filter-details > summary::-webkit-details-marker {
    display: none;
}

.yom-filter-details[open] > summary {
    margin-bottom: 10px;
}

.yom-mobile-body {
    padding: 10px;
}

.yom-mobile-body .yom-front-header {
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
}

.yom-mobile-body .yom-front-brand strong {
    font-size: var(--yom-font-size, 14px);
}

.yom-mobile-body .yom-front-nav {
    gap: 6px;
}

.yom-mobile-body .yom-front-brand span {
    display: none;
}

.yom-mobile-body .yom-panel {
    margin: 10px 0;
    padding: 12px;
}

.yom-mobile-body h1 {
    margin-bottom: 10px;
    font-size: calc(var(--yom-font-size, 14px) * 1.6);
}

.yom-mobile-body h2 {
    margin: 0 0 10px;
    font-size: calc(var(--yom-font-size, 14px) * 1.25);
}

.yom-mobile-body textarea.large-text {
    min-height: 220px;
    width: 100%;
    box-sizing: border-box;
}

.yom-mobile-body .yom-settings-form,
.yom-mobile-body .yom-manual-order,
.yom-mobile-body .yom-stats,
.yom-mobile-body .yom-filter-details {
    display: none;
}

.yom-mobile-section-heading {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.yom-mobile-section-heading h2 {
    margin: 0;
}

.yom-mobile-section-heading .button {
    flex: 0 0 auto;
}

.yom-mobile-sku-list {
    display: grid;
    gap: 10px;
}

.yom-mobile-sku-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.yom-mobile-sku-card .button {
    grid-column: 1 / -1;
    width: 100%;
}

.yom-mobile-sku-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.yom-mobile-sku-main strong,
.yom-mobile-sku-main span {
    overflow-wrap: anywhere;
}

.yom-mobile-sku-main span {
    color: #50575e;
    font-size: 12px;
}

.yom-mobile-sku-main em {
    color: #1d2327;
    font-style: normal;
    font-weight: 700;
}

.yom-mobile-empty {
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #dcdcde;
}

.yom-frontend .button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--yom-button-border, #3858e9);
    border-radius: 4px;
    background: var(--yom-button-bg, #fff);
    color: var(--yom-button-text, #2145e8);
    font-weight: var(--yom-button-font-weight, 400);
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.yom-frontend .button-primary {
    border-color: var(--yom-primary-bg, #3858e9);
    background: var(--yom-primary-bg, #3858e9);
    color: var(--yom-primary-text, #fff);
    font-weight: var(--yom-button-font-weight, 400);
}

.yom-frontend .button.yom-link-disabled,
.yom-frontend .button[aria-disabled="true"] {
    border-color: #c3c4c7;
    background: #f6f7f7;
    color: #8c8f94;
    cursor: default;
}

.yom-frontend .widefat {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.yom-frontend .widefat th,
.yom-frontend .widefat td {
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcde;
    text-align: left;
}

.yom-frontend .widefat thead th {
    border-top: 1px solid #dcdcde;
    background: #fff;
    font-weight: 600;
}

.yom-frontend .striped tbody tr:nth-child(odd) {
    background: #f6f7f7;
}

.yom-frontend .notice {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 4px solid #72aee6;
    background: #fff;
}

.yom-frontend .notice-success {
    border-left-color: #00a32a;
}

.yom-frontend .notice-error {
    border-left-color: #d63638;
}

.yom-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.yom-stat,
.yom-panel,
.yom-item-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.yom-stat {
    padding: 14px;
}

.yom-stat span {
    display: block;
    color: #50575e;
    font-size: calc(var(--yom-font-size, 14px) - 1px);
}

.yom-stat strong {
    display: block;
    margin-top: 6px;
    font-size: calc(var(--yom-font-size, 14px) * 2);
    line-height: 1.1;
}

.yom-actions,
.yom-row-actions,
.yom-item-actions,
.yom-heading-actions,
.yom-maintenance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.yom-panel {
    margin: 16px 0;
    padding: 18px;
}

.yom-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin: 14px 0 18px;
}

.yom-grid-3 label,
.yom-manual-items input,
.yom-settings-form input.large-text,
.yom-settings-form input.regular-text {
    width: 100%;
}

.yom-grid-3 label {
    font-weight: 600;
}

.yom-grid-3 input,
.yom-grid-3 select {
    display: block;
    margin-top: 4px;
    width: 100%;
    max-width: none;
}

.yom-settings-form td label {
    display: block;
    margin: 8px 0 4px;
    font-weight: 600;
}

.yom-settings-backup-rows {
    display: grid;
    gap: 14px;
    max-width: 900px;
}

.yom-settings-backup-row {
    display: grid;
    grid-template-columns: 140px minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.yom-settings-backup-row label {
    font-weight: 600;
}

.yom-settings-backup-row .button,
.yom-settings-backup-row .submit {
    margin: 0;
}

.yom-table-wrap {
    overflow-x: auto;
    margin: 14px 0;
}

.yom-table th,
.yom-table td {
    vertical-align: middle;
}

.yom-key-sku {
    font-size: calc(var(--yom-font-size, 14px) * 1.25);
    font-weight: 700;
    line-height: 1.25;
}

.yom-quantity {
    font-size: calc(var(--yom-font-size, 14px) * 1.25);
    font-weight: 700;
    line-height: 1.25;
}

.yom-quantity.is-multiple {
    color: #d63638;
}

.yom-sku-alias-summary {
    margin-top: 6px;
    color: #646970;
    font-size: calc(var(--yom-font-size, 14px) - 1px);
    line-height: 1.4;
}

.yom-sku-thumb {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #646970;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
}

.yom-sku-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yom-inline-form {
    display: inline-flex;
    margin: 0;
}

.yom-amazon-hold-link-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 620px;
}

.yom-amazon-hold-link-form input {
    width: 100%;
    box-sizing: border-box;
}

.yom-order-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin: 12px 0 16px;
}

.yom-item-list {
    display: grid;
    gap: 12px;
}

.yom-item-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(170px, auto);
    gap: 16px;
    padding: 14px;
}

.yom-item-image {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #646970;
    overflow: hidden;
}

.yom-item-media {
    display: grid;
    gap: 8px;
    align-content: start;
    width: 120px;
}

.yom-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yom-product-link {
    width: 100%;
    text-align: center;
}

.yom-item-main h3 {
    margin: 0 0 10px;
    font-size: calc(var(--yom-font-size, 14px) * 1.25);
}

.yom-item-main dl {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 4px 12px;
    margin: 0;
}

.yom-item-main dt {
    color: #646970;
}

.yom-item-main dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.yom-item-actions {
    align-content: flex-start;
    justify-content: flex-end;
}

.yom-heading-actions {
    justify-content: flex-end;
}

.yom-market-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.yom-market-button {
    min-width: 132px;
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.yom-market-button-multiple {
    box-shadow: inset 0 0 0 2px rgba(214, 54, 56, 0.35);
}

.yom-market-button-multiple.button-primary {
    border-color: #b32d2e;
    background: #d63638;
    color: #fff;
}

.yom-market-button-disabled {
    border-color: #c3c4c7 !important;
    background: #f0f0f1 !important;
    color: #8c8f94 !important;
}

a.yom-market-button-disabled {
    cursor: pointer !important;
}

span.yom-market-button-disabled {
    cursor: default !important;
}

.yom-market-button-return {
    border-color: #b32d2e !important;
    background: #d63638 !important;
    color: #fff !important;
}

.yom-market-button-return:hover,
.yom-market-button-return:focus {
    border-color: #8a2424 !important;
    background: #b32d2e !important;
    color: #fff !important;
}

.yom-maintenance-grid {
    align-items: stretch;
}

.yom-maintenance-nav {
    margin: 12px 0 16px;
}

.yom-error-text {
    margin: 10px 0 0;
    color: #b32d2e;
    font-weight: 600;
}

.yom-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
}

.yom-search input[type="search"] {
    min-width: 260px;
}

.yom-search label {
    display: grid;
    gap: 3px;
    font-weight: 600;
}

.yom-order-filter input,
.yom-order-filter select {
    max-width: 100%;
}

.yom-confirm-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
    font-weight: 600;
}

@media (max-width: 960px) {
    .yom-kanri-body {
        padding: 12px;
    }

    .yom-kanri-body .yom-frontend .yom-wrap {
        padding: 0;
    }

    .yom-kanri-body .yom-front-header.yom-frame-menu {
        position: static;
        width: auto;
        margin: 0 0 18px;
        padding: 12px;
        border-width: 1px;
        border-radius: 6px;
        box-shadow: none;
    }

    .yom-kanri-body .yom-frame-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .yom-frame-menu-section,
    .yom-frame-menu-system {
        display: contents;
    }

    .yom-frame-menu-label,
    .yom-frame-menu-heading,
    .yom-frame-menu-subheading,
    .yom-frame-menu-empty {
        display: none;
    }

    .yom-kanri-body .yom-frame-nav .button {
        width: auto;
    }

    .yom-stats {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .yom-grid-3 {
        grid-template-columns: 1fr;
    }

    .yom-order-heading,
    .yom-item-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .yom-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 782px) {
    .yom-standalone-body {
        padding: 12px;
    }

    .yom-front-header {
        padding: 12px;
    }

    .yom-front-nav-spacer {
        display: none;
    }

    .yom-front-nav .button {
        flex: 1 1 calc(50% - 8px);
    }

    .yom-mobile-body .yom-front-nav .button {
        flex-basis: 100%;
    }

    .yom-stats {
        grid-template-columns: 1fr;
    }

    .yom-table thead {
        display: none;
    }

    .yom-table,
    .yom-table tbody,
    .yom-table tr,
    .yom-table td {
        display: block;
        width: 100%;
    }

    .yom-table tr {
        border-bottom: 1px solid #dcdcde;
        padding: 10px 0;
    }

    .yom-table td {
        box-sizing: border-box;
        border: 0;
        padding: 7px 10px;
    }

    .yom-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #646970;
        font-size: 12px;
        font-weight: 600;
    }

    .yom-manual-items input {
        min-height: 36px;
    }

    .yom-settings-backup-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .yom-settings-backup-row input,
    .yom-settings-backup-row .button {
        width: 100%;
    }

    .yom-item-main dl {
        grid-template-columns: 1fr;
    }

    .yom-actions .button,
    .yom-item-actions .button,
    .yom-heading-actions .button,
    .yom-maintenance-grid .button,
    .yom-row-actions .button,
    .yom-market-button,
    .yom-search .button,
    .yom-inline-form,
    .yom-inline-form .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .yom-amazon-hold-link-form {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .yom-search,
    .yom-search label,
    .yom-search input,
    .yom-search select {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .yom-front-nav .button {
        flex-basis: 100%;
    }
}


.yom-nav-action-form {
    margin: 0;
}

.yom-order-import-row .yom-nav-action-form {
    width: 100%;
}

.yom-order-import-row .yom-nav-action-form .button {
    width: 100%;
}

@media (max-width: 520px) {
    .yom-mobile-body .yom-front-nav .yom-nav-action-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .yom-mobile-body .yom-front-nav .yom-nav-action-form .button {
        width: 100%;
    }
}

.yom-date-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.yom-date-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 38px;
    padding: 2px 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.yom-date-card strong {
    grid-column: 1 / -1;
    font-size: calc(var(--yom-font-size, 14px) * 2);
    font-weight: 500;
    line-height: 1.2;
}

.yom-date-card.is-past,
.yom-date-card.is-today,
.yom-date-card.is-future {
    border-left: 0;
    background: transparent;
}

.yom-date-card .button {
    justify-content: flex-start;
    width: 100%;
    min-height: 68px;
    padding: 14px 26px;
    font-size: calc(var(--yom-font-size, 14px) * 1.9);
    line-height: 1.25;
}

.yom-date-card.is-past .button {
    border-color: #8c8f94;
    background: #8c8f94;
    color: #f7df83;
}

.yom-date-card.is-today .button {
    border-color: #9a7610;
    background: #806513;
    color: #f7df83;
}

.yom-date-card.is-future .button {
    border-color: #d88b77;
    background: #ffb5b5;
    color: #806513;
}

@media (max-width: 782px) {
    .yom-date-grid {
        gap: 24px;
    }

    .yom-date-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .yom-date-card strong {
        grid-column: 1;
        font-size: calc(var(--yom-font-size, 14px) * 1.7);
    }

    .yom-date-card .button {
        min-height: 58px;
        padding: 12px 18px;
        font-size: calc(var(--yom-font-size, 14px) * 1.55);
    }
}

.yom-tool-form {
    display: grid;
    gap: 10px;
}

.yom-tool-form label {
    display: grid;
    gap: 5px;
    font-weight: 600;
}

.yom-tool-item-heading,
.yom-tool-actions,
.yom-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.yom-tool-item-heading h2 {
    margin: 0;
}

.yom-tool-actions,
.yom-row-actions {
    justify-content: flex-start;
}

.yom-copy-textarea {
    min-height: 160px;
}

.yom-tracking-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

/* 0.1.92: 注文取込4ボタンを完全に同幅へ統一。
 * メール取込だけ<form>内の<button>なので、既存の詳細度の高い
 * .yom-frame-menu-buttons .button { width:auto; } を確実に上書きする。 */
.yom-kanri-body .yom-frame-nav .yom-order-import-row > .yom-nav-action-form {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.yom-kanri-body .yom-frame-nav .yom-order-import-row > .yom-nav-action-form > .button {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}
