/* 6sets shared long-operation progress */
.smp-op-progress {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw;
    min-height: 100vh;
    height: 100dvh;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
    box-sizing: border-box;
    transform: none !important;
}
.smp-op-progress[hidden] { display: none !important; }

.smp-op-progress[data-blocking="1"] {
    background: rgba(17, 24, 39, .22);
    pointer-events: auto;
}
.smp-op-progress[data-blocking="0"] {
    background: transparent;
    pointer-events: none;
}

.smp-op-progress__panel {
    width: min(460px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 18px 20px 16px;
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 12px 36px rgba(17, 24, 39, .12);
    color: #2b2b2b;
}
.smp-op-progress[data-blocking="0"] .smp-op-progress__panel {
    width: min(460px, calc(100vw - 32px));
    padding: 13px 16px 12px;
    box-shadow: 0 7px 22px rgba(17, 24, 39, .11);
}

.smp-op-progress__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}
.smp-op-progress__status {
    margin: 6px 0 0;
    color: #62676f;
    font-size: 13px;
    line-height: 1.45;
}
.smp-op-progress__track {
    position: relative;
    width: 100%;
    height: 6px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 4px;
    background: #eceff2;
}
.smp-op-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 4px;
    background: #b88a32;
    transition: width .22s ease;
}
.smp-op-progress.is-indeterminate .smp-op-progress__bar {
    width: 38%;
    animation: smpOpProgressMove 1.1s ease-in-out infinite;
}
@keyframes smpOpProgressMove {
    0%   { transform: translateX(-115%); }
    55%  { transform: translateX(150%); }
    100% { transform: translateX(285%); }
}
.smp-op-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
    margin-top: 8px;
    color: #777d85;
    font-size: 12px;
    line-height: 1.4;
}
.smp-op-progress__note {
    margin: 8px 0 0;
    color: #777d85;
    font-size: 12px;
    line-height: 1.45;
}
.smp-op-progress[data-blocking="0"] .smp-op-progress__note,
.smp-op-progress[data-blocking="0"] .smp-op-progress__meta {
    display: none;
}
body.smp-operation-active {
    cursor: progress;
    overflow: hidden;
}
@media (max-width: 640px) {
    .smp-op-progress { padding: 14px; }
    .smp-op-progress__panel { padding: 17px 16px 15px; }
    .smp-op-progress__title { font-size: 14px; }
    .smp-op-progress__status { font-size: 12.5px; }
}


/* Shared 6sets notice layer. This replaces browser-native alert fallbacks and
   always centers against the real viewport, independent of page containers. */
.smp-notice-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw;
    min-height: 100vh;
    height: 100dvh;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(17, 24, 39, .38);
    font-family: inherit;
    transform: none !important;
}
.smp-notice-modal[hidden] { display: none !important; }
.smp-notice-modal__panel {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .20);
    color: #2b2b2b;
}
.smp-notice-modal__title {
    margin: 0;
    padding: 17px 18px 13px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}
.smp-notice-modal__message {
    margin: 0;
    padding: 20px 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.smp-notice-modal__actions {
    display: flex;
    justify-content: flex-end;
    padding: 13px 18px 17px;
    border-top: 1px solid #e5e7eb;
}
.smp-notice-modal__ok {
    min-width: 92px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid #1f2937;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.smp-notice-modal[data-type="success"] .smp-notice-modal__title { color: #067647; }
.smp-notice-modal[data-type="error"] .smp-notice-modal__title { color: #b42318; }
@media (max-width: 640px) {
    .smp-op-progress { padding: 14px; }
    .smp-notice-modal { padding: 14px; }
    .smp-notice-modal__panel { max-height: calc(100dvh - 28px); }
}
