:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #152033;
    --muted: #7a8496;
    --line: #e4e8ef;
    --primary: #0f73d8;
    --primary-dark: #075db4;
    --success: #16a06a;
    --danger: #c93333;
    --shadow: 0 24px 70px rgba(21, 32, 51, .10);
}

.initial-data-status {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-content: center;
    gap: 16px;
    text-align: center;
    background: #f6f8fb;
    color: #152033;
}
.initial-data-status button {
    padding: 10px 24px;
    border: 0;
    border-radius: 6px;
    background: #0f73d8;
    color: white;
    cursor: pointer;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #eef2f6;
}

#app {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

[v-cloak] {
    display: none;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(560px, 1fr);
    margin: 0;
    background: #f4f6f8;
}

.login-panel {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 52px;
}

.login-brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px clamp(40px, 6vw, 88px);
    color: #ffffff;
    background: #18241f;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo-box {
    width: 46px;
    height: 46px;
    overflow: hidden;
    display: block;
    flex: 0 0 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #ffffff;
}

.brand-logo-box img {
    width: auto;
    height: 46px;
    display: block;
}

.brand-lockup-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-lockup-copy strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-lockup-copy small {
    color: #9fb1aa;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.brand-intro {
    margin: auto 0 40px;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #86d7ad;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.brand-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: #45c285;
}

.brand-intro h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: 0;
}

.brand-intro p {
    margin: 0;
    color: #bac7c2;
    font-size: 17px;
    line-height: 1.7;
}

.brand-signal {
    height: 152px;
    position: relative;
    margin-bottom: 42px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.signal-scale {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.signal-scale span {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, .07);
}

.signal-bars {
    position: absolute;
    inset: 18px 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(4px, 1fr));
    align-items: end;
    gap: clamp(5px, 1.1vw, 14px);
}

.signal-bars i {
    height: var(--signal-height);
    min-height: 8px;
    display: block;
    border-radius: 2px 2px 0 0;
    background: #50bd88;
    opacity: .72;
}

.signal-bars i:nth-child(3n) {
    background: #6ea7e8;
}

.signal-bars i:nth-child(4n) {
    background: #e2b657;
}

.brand-footer {
    color: #81928b;
    font-size: 12px;
}

.login-form {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(21, 32, 51, .10);
    transition: max-width .2s ease;
}

.login-form::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 72px;
    height: 3px;
    background: #42b77f;
}

.login-form {
    padding: 42px;
}

.login-form.is-register {
    max-width: 560px;
}

.form-logo {
    width: 112px;
    height: auto;
    display: none;
    margin: 0 auto 24px;
    object-fit: contain;
}

.form-head {
    margin-bottom: 18px;
    text-align: left;
}

.form-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.form-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: #f0f3f7;
}

.login-tabs button {
    height: 36px;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.login-tabs button.active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 6px 18px rgba(21, 32, 51, .08);
}

.auth-stage {
    min-height: 270px;
}

.auth-switch-enter-active,
.auth-switch-leave-active {
    transition: opacity .14s ease, transform .14s ease;
}

.auth-switch-enter-from {
    opacity: 0;
    transform: translateY(5px);
}

.auth-switch-leave-to {
    opacity: 0;
    transform: translateY(-3px);
}

.login-view {
    min-height: 270px;
}

.register-view {
    min-height: 270px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.register-view .field {
    margin-bottom: 0;
}

.register-view .primary-button {
    grid-column: 1 / -1;
}

.sms-code-control { display: flex; align-items: stretch; gap: 8px; }
.sms-code-control input { min-width: 0; flex: 1; }
.sms-code-button { flex: 0 0 auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; }
.sms-code-button:disabled { opacity: .6; cursor: default; }
.sms-code-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.field {
    display: block;
    margin-bottom: 16px;
}

.field > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.password-control {
    position: relative;
    display: block;
    margin: 0;
}

.password-control input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #98a2b3;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.visible {
    color: var(--primary);
    background: #eef6ff;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(15, 115, 216, .16);
    outline-offset: 1px;
}

.eye-icon {
    position: relative;
    width: 18px;
    height: 12px;
    display: block;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.eye-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 13px;
    color: var(--text);
    font: inherit;
    outline: none;
    background: #fbfcfe;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input:hover {
    background: #fff;
}

.field input::placeholder {
    color: #8c97a8;
    opacity: 1;
}

.field input:focus {
    border-color: #2684e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.primary-button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease, opacity .16s ease;
}

.secondary-button {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    color: var(--primary);
    background: #eef6ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.secondary-button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #98a2b3;
    font-size: 12px;
    white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
    content: "";
    width: 100%;
    height: 1px;
    background: #e7ebf0;
}

.wechat-login-button {
    width: 100%;
    height: 48px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    color: #263244;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.wechat-login-button:hover {
    border-color: #8bd8ad;
    background: #f8fffb;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, .08);
}

.login-tabs button:focus-visible,
.primary-button:focus-visible,
.wechat-login-button:focus-visible,
.wechat-actions button:focus-visible {
    outline: 3px solid rgba(15, 115, 216, .18);
    outline-offset: 2px;
}

.wechat-brand-icon {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-block;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #07c160;
}

.wechat-brand-icon i {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #ffffff;
}

.wechat-bubble-one {
    width: 14px;
    height: 11px;
    top: 7px;
    left: 5px;
}

.wechat-bubble-two {
    width: 12px;
    height: 9px;
    right: 5px;
    bottom: 6px;
    border: 2px solid #07c160;
}

.wechat-login-arrow {
    color: #98a2b3;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
}

.wechat-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wechat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}

.wechat-status .wechat-brand-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
}

.wechat-status .wechat-bubble-one {
    top: 6px;
    left: 4px;
}

.wechat-status .wechat-bubble-two {
    right: 3px;
    bottom: 4px;
}

.qr-card {
    width: 236px;
    height: 236px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 32, 51, .06);
}

.qr-loading,
.qr-empty {
    color: var(--muted);
    font-size: 14px;
}

.wechat-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.wechat-actions button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.wechat-actions .secondary-button {
    border: 1px solid #cfe8da;
    color: #087d42;
    background: #f2fbf6;
}

.wechat-account-button {
    border: 1px solid #dfe5ec;
    color: #475467;
    background: #ffffff;
}

.wechat-account-button:hover {
    border-color: #b8c1cc;
    background: #f8fafc;
}

.action-icon {
    width: 18px;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.primary-button {
    margin-top: 4px;
    color: #fff;
    background: var(--primary);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-form .primary-button {
    box-shadow: 0 8px 18px rgba(15, 115, 216, .18);
}

.login-form .primary-button:hover {
    box-shadow: 0 10px 22px rgba(15, 115, 216, .23);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.login-form .primary-button:disabled {
    box-shadow: none;
}

.message {
    min-height: 20px;
    margin: 16px 0 0;
    color: var(--success);
    font-size: 14px;
    line-height: 1.45;
}

.message.error {
    color: var(--danger);
}

.message.is-empty {
    visibility: hidden;
}

@media (max-width: 520px) {
    .login-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        padding: 0;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px 12px;
    }

    .login-form {
        padding: 32px 24px 28px;
    }

    .register-view {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-view .field {
        margin-bottom: 16px;
    }

    .register-view .primary-button {
        grid-column: auto;
    }
}

@media (min-width: 521px) and (max-width: 1120px) {
    .login-shell {
        display: block;
    }

    .login-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 1120px) {
    .login-brand-panel {
        display: none;
    }

    .form-logo {
        display: block;
    }

    .form-head {
        text-align: center;
    }

    .form-head h2 {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-form,
    .auth-switch-enter-active,
    .auth-switch-leave-active,
    .primary-button,
    .field input,
    .wechat-login-button {
        transition: none;
    }
}

.app-shell {
    --sidebar-width: 70px;
    --topbar-height: 36px;
    --workspace-bg: #f3f6fb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --line: #dfe7f3;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    background: var(--workspace-bg);
}

.sidebar {
    min-width: 0;
    width: var(--sidebar-width);
    /* Keep navigation anchored when a drawer locks body scrolling. */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 40;
    border-right: 1px solid #d3dff0;
    background: #e8eff9;
}

.brand {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-bottom: 1px solid #d3dff0;
}

.brand img {
    width: 112px;
    max-width: 100%;
    max-height: 28px;
    object-fit: contain;
    height: auto;
    display: block;
}

.menu-list {
    height: calc(100% - 36px);
    overflow: auto;
    padding: 12px 3px;
}

.menu-item {
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    margin-bottom: 4px;
    color: #334155;
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar .menu-item {
    min-height: 64px;
    padding: 10px 2px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    text-align: center;
    color: #455a78;
    border-radius: 4px;
}

.sidebar .menu-item:hover { color: #1d4ed8; background: #dce7f8; }
.sidebar .menu-item.active { color: #1d4ed8; background: #d4e3ff; box-shadow: inset 3px 0 #2563eb; }
.sidebar .menu-state { color: #526681; }

.sidebar-menu-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.sidebar .menu-title {
    width: 100%;
    flex: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.menu-item.expandable {
    font-weight: 700;
}

.menu-item.child {
    min-height: 36px;
    color: #526174;
    font-size: 13px;
}

.menu-item.visible-child {
    animation: menuChildIn .18s ease both;
}

.menu-item:hover {
    background: #f2f6fb;
}

.menu-item.active {
    color: var(--primary);
    background: #eaf4ff;
    font-weight: 700;
}

.menu-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #64748b;
    background: #edf2f7;
    font-size: 12px;
    font-weight: 700;
}

.menu-item.active .menu-mark {
    color: #fff;
    background: var(--primary);
}

.menu-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    position: relative;
    margin-left: auto;
    border-radius: 50%;
    background: #eef2f7;
    transition: background .16s ease, transform .18s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 9px 5px auto;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: .72;
}

.menu-toggle-icon::after {
    transform: rotate(90deg);
    transition: opacity .12s ease, transform .18s ease;
}

.menu-item.expanded .menu-toggle-icon {
    background: rgba(15, 115, 216, .14);
    transform: rotate(180deg);
}

.menu-item.expanded .menu-toggle-icon::after {
    opacity: 0;
    transform: rotate(0deg);
}

@keyframes menuChildIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-state {
    padding: 14px 12px;
    color: var(--muted);
    font-size: 14px;
}

.settings-backdrop {
    position: fixed;
    inset: 0 0 0 var(--sidebar-width);
    overflow: hidden;
    z-index: 1000;
    background: rgba(15, 23, 42, .28);
}

.settings-drawer {
    width: min(300px, calc(100% - 24px));
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 8px 0 32px rgba(15, 23, 42, .12);
}

.settings-drawer-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.settings-drawer-header h2 { margin: 0; font-size: 18px; }
.settings-close { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; }
.settings-menu { padding: 16px 12px; overflow-y: auto; }
.settings-group + .settings-group { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-group h3 { margin: 0 0 8px; padding: 0 16px; color: #8a95a6; font-size: 12px; font-weight: 400; line-height: 24px; }
.menu-item:focus-visible, .settings-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.settings-slide-enter-active, .settings-slide-leave-active { transition: opacity .22s ease; }
.settings-slide-enter-active .settings-drawer, .settings-slide-leave-active .settings-drawer { transition: transform .22s ease; }
.settings-slide-enter-from, .settings-slide-leave-to { opacity: 0; }
.settings-slide-enter-from .settings-drawer, .settings-slide-leave-to .settings-drawer { transform: translateX(-100%); }

@media (prefers-reduced-motion: reduce) {
    .settings-slide-enter-active, .settings-slide-leave-active,
    .settings-slide-enter-active .settings-drawer, .settings-slide-leave-active .settings-drawer { transition: none; }
}

.workspace {
    grid-column: 2;
    min-width: 0;
    padding: 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -12px -12px 10px;
    padding: 0 12px 0 0;
    background: #dce7f6;
}

.topbar h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.25;
}

.workspace-tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    align-self: stretch;
    align-items: flex-end;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: thin;
}

.workspace-tab {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    position: relative;
    min-width: 112px;
    height: 36px;
    border: 0;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #455a78;
}

.workspace-tab:hover { background: #ccdcef; }
.workspace-tab:not(.active):not(:last-child):not(:has(+ .active)) .workspace-tab-select::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 1px;
    height: 16px;
    background: #b6c7df;
    pointer-events: none;
}
.workspace-tab.active { z-index: 1; color: #1d4ed8; background: #fff; }
.workspace-tab.active::before, .workspace-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
    pointer-events: none;
}
.workspace-tab.active::before { left: -8px; background: radial-gradient(circle at top left, transparent 8px, #fff 8.5px); }
.workspace-tab.active::after { right: -8px; background: radial-gradient(circle at top right, transparent 8px, #fff 8.5px); }
.workspace-tab-select, .workspace-tab-close { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.workspace-tab-select { flex: 1; height: 100%; padding: 6px 8px 6px 14px; font-size: 13px; white-space: nowrap; }
.workspace-tab.active .workspace-tab-select { font-weight: 700; }
.workspace-tab-close { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; border-radius: 50%; }
.workspace-tab-close svg { width: 16px; height: 16px; }
.workspace-tab-close:hover { background: rgba(15, 115, 216, .12); }
.workspace-tab-select:focus-visible, .workspace-tab-close:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.workspace-tabs-empty { align-self: center; padding-left: 12px; color: #526681; font-size: 13px; white-space: nowrap; }
.workspace-empty { padding: 64px 16px; text-align: center; color: var(--muted); }
.workspace-empty h1 { font-size: 20px; color: #334155; }
.topbar .user-box { flex-shrink: 0; }
.topbar .avatar-button { width: 28px; height: 28px; font-size: 14px; }
.topbar-username { max-width: 120px; margin-left: 8px; overflow: hidden; color: #334b6b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.user-box {
    position: relative;
    display: flex;
    align-items: center;
}

.avatar-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 115, 216, .22);
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 115, 216, .18);
}

.avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: 188px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(21, 32, 51, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.user-box:hover .user-dropdown,
.user-box:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: "";
    position: absolute;
    inset: -12px 0 auto;
    height: 12px;
}

.user-card {
    padding: 8px 10px 10px;
    border-bottom: 1px solid #edf1f6;
}

.user-card strong,
.user-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card strong {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
}

.user-card small {
    color: var(--muted);
    font-size: 12px;
}

.user-dropdown button {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 6px;
    padding: 0 10px;
    color: #334155;
    background: transparent;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.user-dropdown button:hover {
    color: var(--primary);
    background: #f3f8ff;
}

.user-dropdown button:last-child:hover {
    color: var(--danger);
    background: #fff4f4;
}

.overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric,
.content-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.metric {
    min-height: 118px;
    padding: 18px;
}

.metric span {
    display: block;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.metric strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 24px;
    line-height: 1.25;
}

.content-panel {
    padding: 24px;
}

.content-panel h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.content-panel p {
    margin: 0;
    color: var(--muted);
}

.amazon-shop-page {
    display: grid;
    gap: 16px;
}

.shop-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.shop-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.shop-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid #edf1f6;
}

.amazon-shop-page .shop-panel-head {
    justify-content: flex-end;
}

.shop-panel-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.shop-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.shop-actions,
.shop-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.shop-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, 1fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 14px 14px 0;
}

.shop-filter-bar label {
    display: grid;
    gap: 6px;
}

.shop-filter-bar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.shop-filter-bar input,
.shop-filter-bar select {
    width: 100%;
    height: 34px;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.shop-filter-bar input:focus,
.shop-filter-bar select:focus {
    border-color: rgba(15, 115, 216, .55);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .1);
}

.shop-modal-form {
    width: min(720px, calc(100vw - 48px));
    display: grid;
    gap: 16px;
    padding: 18px;
}

.shop-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shop-modal-grid label,
.shop-modal-grid .shop-field {
    display: grid;
    gap: 7px;
}

.shop-modal-grid label > span,
.shop-modal-grid .shop-field > span {
    color: #526174;
    font-size: 13px;
    font-weight: 700;
}

.shop-modal-grid input,
.shop-modal-grid select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: none;
}

.shop-modal-grid input:focus,
.shop-modal-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.shop-modal-grid select:disabled {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 1;
}

.shop-field-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
}

.shop-modal-wide {
    grid-column: span 2;
}

.shop-country-list {
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px;
    background: #fff;
}

.shop-country-list:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.shop-country-option {
    min-height: 28px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px !important;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    padding: 0 9px;
    background: #fbfcfe;
    cursor: pointer;
}

.shop-country-option input {
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
}

.shop-modal-grid .shop-country-option > span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.shop-modal-grid .shop-country-option > em,
.shop-country-empty {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.shop-auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    color: #b45309;
    background: #fff7ed;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.shop-auth-badge.success {
    color: var(--success);
    background: #eaf8f2;
}

.shop-auth-badge.abnormal {
    color: #b91c1c;
    background: #fef2f2;
}

.shop-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.shop-list-state {
    min-height: 140px;
    display: grid;
    place-items: center;
    border: 1px dashed #d9e1ec;
    border-radius: 8px;
    color: var(--muted);
    background: #fbfcfe;
    font-size: 14px;
}

.shop-list-item {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(520px, 1.8fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.shop-list-item:hover {
    border-color: rgba(15, 115, 216, .22);
    box-shadow: 0 10px 24px rgba(21, 32, 51, .06);
    transform: translateY(-1px);
}

.shop-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #0f73d8;
    font-size: 18px;
    font-weight: 800;
}

.shop-title {
    min-width: 0;
}

.shop-title > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-title strong {
    max-width: 240px;
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-title small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.shop-meta div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 6px;
    background: #f8fafc;
}

.shop-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.shop-meta strong {
    display: block;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-row-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.shop-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ads-account-dialog { width: min(640px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; background: #fff; border-radius: 14px; padding: 24px; }
.ads-account-dialog .dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.ads-account-body { display: grid; gap: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ads-account-body p { margin: 0; }
.ads-profile-row { display: grid; padding: 12px; border: 1px solid #dce5f2; border-radius: 8px; }
.ads-account-body [role="alert"] { color: #b42318; }

.text-button.danger:hover {
    color: var(--danger);
    border-color: rgba(201, 51, 51, .32);
    background: #fff4f4;
}

.danger-button {
    background: var(--danger);
}

.danger-button:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(201, 51, 51, .18);
}

.shop-delete-dialog {
    width: min(420px, calc(100vw - 48px));
    padding: 24px;
    text-align: center;
}

.shop-delete-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: var(--danger);
    background: #fff4f4;
    font-size: 24px;
    font-weight: 900;
}

.shop-delete-dialog h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 18px;
}

.shop-delete-dialog p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.shop-delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.sync-status-dialog {
    width: min(900px, calc(100vw - 48px));
    padding: 22px;
}

.sync-status-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
}

.sync-status-state.error {
    color: var(--danger);
}

.sync-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.sync-summary div {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.sync-summary span,
.sync-section-head small,
.sync-latest-row span,
.sync-latest-row em {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.sync-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 20px;
}

.sync-section-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sync-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.sync-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sync-section-head strong {
    color: var(--text);
    font-size: 14px;
}

.sync-section-head em {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 9px;
    color: #334155;
    background: #eef2f7;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.sync-count-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.sync-count-list span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #334155;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.sync-empty {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.sync-latest-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.sync-latest-row {
    display: grid;
    grid-template-columns: 100px minmax(120px, 1fr) 150px minmax(0, 1.4fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fbfcfe;
}

.sync-latest-row strong {
    color: #334155;
    font-size: 13px;
}

.sync-latest-row em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.account-center-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
}

.account-center-nav,
.account-center-main,
.account-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-center-nav {
    align-self: start;
    display: grid;
    gap: 6px;
    padding: 10px;
}

.account-center-nav button {
    display: grid;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px;
    color: #334155;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.account-center-nav button:hover,
.account-center-nav button.active {
    border-color: rgba(15, 115, 216, .18);
    color: var(--primary);
    background: #f3f8ff;
}

.account-center-nav strong {
    font-size: 14px;
}

.account-center-nav span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.account-center-main {
    min-width: 0;
    padding: 20px;
}

.account-center-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f6;
}

.account-center-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.account-center-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.personal-account-layout {
    display: grid;
    gap: 14px;
}

.personal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.personal-tabs button {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    color: #334155;
    background: #fbfcfe;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.personal-tabs button:hover,
.personal-tabs button.active {
    color: var(--primary);
    border-color: rgba(15, 115, 216, .28);
    background: #eef6ff;
}

.account-panel {
    padding: 18px;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 24px;
    font-weight: 800;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.account-profile p {
    margin: 0;
    color: var(--muted);
}

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.account-detail-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf1f6;
    border-radius: 6px;
    background: #fbfcfe;
}

.account-detail-grid dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.account-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 700;
}

.account-info-form {
    display: grid;
    gap: 10px;
}

.account-form-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #edf1f6;
    border-radius: 6px;
    background: #fbfcfe;
}

.account-form-row > label {
    color: #526174;
    font-size: 14px;
    font-weight: 700;
}

.account-row-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
}

.account-row-content strong,
.account-row-content span {
    overflow-wrap: anywhere;
}

.account-row-content input,
.account-modal-form input {
    width: min(320px, 100%);
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: none;
}

.account-row-content input:focus,
.account-modal-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.account-modal-form {
    width: min(490px, calc(100vw - 48px));
    display: grid;
    gap: 14px;
    padding: 18px;
}

.account-modal-form label {
    display: grid;
    gap: 7px;
}

.account-modal-form label span {
    color: #526174;
    font-size: 13px;
    font-weight: 700;
}

.account-modal-form input {
    width: 100%;
}

.account-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.setting-list,
.device-list,
.plan-list {
    display: grid;
    gap: 10px;
}

.setting-row,
.device-item,
.plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 12px 14px;
    border: 1px solid #edf1f6;
    border-radius: 6px;
    background: #fbfcfe;
}

.setting-row strong,
.device-item strong,
.plan-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
}

.setting-row span,
.device-item span,
.plan-item span {
    display: block;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.setting-row em,
.device-item em,
.plan-item em {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--muted);
    background: #eef2f7;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.setting-row em.success,
.device-item em,
.plan-item.active em {
    color: var(--success);
    background: #eaf8f2;
}

.inline-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
}

.inline-switch input {
    position: absolute;
    opacity: 0;
}

.inline-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background .16s ease;
}

.inline-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
    transition: transform .16s ease;
}

.inline-switch input:checked + span {
    background: var(--primary);
}

.inline-switch input:checked + span::after {
    transform: translateX(18px);
}

.module-empty {
    min-height: 180px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.module-empty strong {
    font-size: 18px;
}

.module-empty p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.subaccount-page {
    display: grid;
    gap: 16px;
}

.subaccount-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.subaccount-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, .8fr));
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.subaccount-toolbar label {
    display: grid;
    gap: 7px;
}

.subaccount-toolbar span {
    color: #526174;
    font-size: 13px;
    font-weight: 700;
}

.subaccount-toolbar input,
.subaccount-toolbar select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    color: var(--text);
    background: #fbfcfe;
    font: inherit;
    outline: none;
}

.subaccount-toolbar input:focus,
.subaccount-toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.subaccount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.subaccount-card,
.subaccount-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.subaccount-card {
    min-height: 180px;
    padding: 18px;
}

.subaccount-card h2,
.table-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.subaccount-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.subaccount-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-button,
.text-button {
    height: 32px;
    border-radius: 6px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mini-button {
    border: 0;
    color: #fff;
    background: var(--primary);
}

.mini-button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.mini-button.danger-button {
    background: var(--danger);
}

.mini-button.danger-button:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(201, 51, 51, .18);
}

.text-button {
    border: 1px solid var(--line);
    color: #526174;
    background: #fff;
}

.text-button.active {
    color: var(--primary);
    border-color: rgba(15, 115, 216, .35);
    background: #eef6ff;
}

.department-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.2fr) 90px auto;
    align-items: end;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fbfcfe;
}

.role-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 100px 90px minmax(150px, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fbfcfe;
}

.department-form label,
.role-form label {
    display: grid;
    gap: 6px;
}

.department-form label span,
.role-form label span {
    color: #526174;
    font-size: 12px;
    font-weight: 700;
}

.department-form input,
.department-form select,
.role-form input,
.role-form select {
    width: 100%;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 9px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.department-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.compact-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.compact-list li {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf1f6;
    color: #334155;
    font-size: 14px;
}

.compact-list li:first-child {
    border-top: 0;
}

.compact-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-list em {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.department-tree li {
    position: relative;
    gap: 12px;
    min-height: 44px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 6px;
}

.department-tree li:hover {
    background: #f7faff;
}

.department-tree li.selected {
    background: #eaf4ff;
    box-shadow: inset 3px 0 0 var(--primary);
}

.department-tree li::before {
    content: none;
}

.department-tree li.parent::before {
    content: none;
}

.department-tree li.branch::after {
    content: "";
    position: absolute;
    left: calc(var(--tree-offset, 0px) + 12px);
    top: 0;
    bottom: 0;
    border-left: 1px solid #d8e0ea;
}

.dept-main {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dept-name {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    color: #243246;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.department-tree li.selected .dept-name {
    color: var(--primary);
}

.dept-main em {
    flex: 0 0 auto;
    min-width: 42px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #526174;
    background: #eef2f7;
    font-size: 12px;
    font-style: normal;
}

.dept-toggle {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    position: relative;
    border: 1px solid transparent;
    border-radius: 6px;
    color: transparent;
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: default;
}

.dept-toggle.visible {
    border-color: rgba(15, 115, 216, .28);
    color: var(--primary);
    background: #eef6ff;
    cursor: pointer;
}

.dept-toggle.visible:hover {
    border-color: var(--primary);
    background: #e2f1ff;
}

.dept-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.dept-actions button {
    min-width: 52px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #526174;
    background: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.dept-actions button:hover {
    color: var(--primary);
    border-color: rgba(15, 115, 216, .35);
    background: #f3f8ff;
}

.dept-actions button:last-child:hover {
    color: var(--danger);
    border-color: rgba(201, 51, 51, .32);
    background: #fff4f4;
}

.dept-actions button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.role-list li {
    gap: 12px;
    min-height: 48px;
}

.role-main {
    min-width: 0;
    flex: 1;
}

.role-main span {
    display: block;
    margin-bottom: 4px;
    color: #243246;
    font-weight: 700;
}

.role-main em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.role-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.role-actions button {
    min-width: 52px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #526174;
    background: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.role-actions button:first-child {
    min-width: 76px;
    color: var(--primary);
    border-color: rgba(15, 115, 216, .26);
    background: #f3f8ff;
}

.role-actions button:hover {
    color: var(--primary);
    border-color: rgba(15, 115, 216, .35);
    background: #f3f8ff;
}

.role-actions button:last-child:hover {
    color: var(--danger);
    border-color: rgba(201, 51, 51, .32);
    background: #fff4f4;
}

.role-actions button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.permission-panel {
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #fbfcfe;
}

.permission-modal-backdrop {
    align-items: center;
}

.permission-modal {
    width: min(1040px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.permission-head,
.permission-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.permission-head {
    flex: 0 0 auto;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.permission-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.permission-head p,
.permission-actions span {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.permission-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid #edf1f6;
    background: #fbfcfe;
}

.permission-toolbar label {
    width: min(460px, 100%);
    display: grid;
    gap: 6px;
}

.permission-toolbar span {
    color: #526174;
    font-size: 12px;
    font-weight: 700;
}

.permission-toolbar input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: none;
}

.permission-toolbar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 115, 216, .12);
}

.permission-toolbar em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.permission-tree {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: none;
    overflow: auto;
    padding: 8px;
    background: #fff;
}

.permission-node,
.permission-empty {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
}

.permission-node:hover {
    background: #f2f7ff;
}

.permission-node input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.permission-node span {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-node.parent span {
    color: var(--primary);
}

.permission-node em {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-actions {
    flex: 0 0 auto;
    border-top: 1px solid #edf1f6;
    background: #fff;
}

.table-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
}

.table-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.table-head span {
    color: var(--muted);
    font-size: 13px;
}

.subaccount-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfe;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
}

.modal-panel {
    width: min(980px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(21, 32, 51, .28);
}

.modal-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 4px;
}

.modal-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.subaccount-form label {
    display: grid;
    gap: 6px;
}

.subaccount-form label span {
    color: #526174;
    font-size: 12px;
    font-weight: 700;
}

.subaccount-form input,
.subaccount-form select {
    width: 100%;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 9px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.subaccount-form-wide {
    grid-column: span 2;
}

.check-list {
    min-height: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
}

.check-list label,
.inline-check {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.check-list label {
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
}

.check-list input,
.inline-check input {
    width: 15px;
    height: 15px;
}

.check-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.subaccount-form-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
}

.table-scroll {
    overflow-x: auto;
}

/* Keep scrollable user workspaces consistent with the light blue theme. */
.app-shell,
.app-shell * {
    scrollbar-width: thin;
    scrollbar-color: #bccbdd #f4f7fb;
}

@supports selector(::-webkit-scrollbar) {
    .app-shell,
    .app-shell * {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }

    .app-shell::-webkit-scrollbar,
    .app-shell *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .app-shell::-webkit-scrollbar-track,
    .app-shell *::-webkit-scrollbar-track {
        border-radius: 8px;
        background: #f4f7fb;
    }

    .app-shell::-webkit-scrollbar-thumb,
    .app-shell *::-webkit-scrollbar-thumb {
        min-width: 32px;
        min-height: 32px;
        border: 1px solid #f4f7fb;
        border-radius: 8px;
        background: #bccbdd;
        background-clip: padding-box;
    }

    .app-shell::-webkit-scrollbar-thumb:hover,
    .app-shell *::-webkit-scrollbar-thumb:hover {
        background-color: #94abc8;
    }

    .app-shell::-webkit-scrollbar-thumb:active,
    .app-shell *::-webkit-scrollbar-thumb:active {
        background-color: #718faf;
    }

    .app-shell::-webkit-scrollbar-button,
    .app-shell *::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }

    .app-shell::-webkit-scrollbar-corner,
    .app-shell *::-webkit-scrollbar-corner {
        background: transparent;
    }
}

.subaccount-table table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.subaccount-table th,
.subaccount-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.subaccount-table th {
    color: #526174;
    background: #fbfcfe;
    font-size: 13px;
    font-weight: 700;
}

.subaccount-table td strong,
.subaccount-table td small {
    display: block;
}

.subaccount-table td strong {
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 700;
}

.subaccount-table td small {
    color: var(--muted);
    font-size: 12px;
}

.table-empty {
    height: 96px;
    color: var(--muted);
    text-align: center !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 24px;
    border-radius: 999px;
    color: #08724c;
    background: #e7f7ef;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.off {
    color: #9f2f2f;
    background: #fdecec;
}

.status-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.status-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-switch span {
    width: 40px;
    height: 22px;
    position: relative;
    flex: 0 0 40px;
    border-radius: 999px;
    background: #dbe3ee;
    transition: background .16s ease;
}

.status-switch span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21, 32, 51, .22);
    transition: transform .16s ease;
}

.status-switch input:checked + span {
    background: var(--success);
}

.status-switch input:checked + span::after {
    transform: translateX(18px);
}

.status-switch em {
    min-width: 28px;
    color: #08724c;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.status-switch.off em {
    color: #9f2f2f;
}

.status-switch.busy {
    cursor: wait;
    opacity: .68;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-actions button {
    min-width: 48px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #526174;
    background: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.table-actions button:hover {
    color: var(--primary);
    border-color: rgba(15, 115, 216, .35);
    background: #f3f8ff;
}

.table-actions button:last-child:hover {
    color: var(--danger);
    border-color: rgba(201, 51, 51, .32);
    background: #fff4f4;
}

.table-actions button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.app-message {
    position: fixed;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: min(480px, calc(100vw - 32px));
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #a8d9bd;
    border-radius: 6px;
    background: #f0fdf4;
    color: #176540;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 28px #172b4d29;
    pointer-events: none;
}

.app-message.error {
    color: #b42318;
    background: #fff2f0;
    border-color: #f5aaa3;
}
.app-message > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.app-message > span { min-width: 0; overflow-wrap: anywhere; }
.app-message > button { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 0; background: transparent; color: inherit; cursor: pointer; pointer-events: auto; }
.app-message > button svg { width: 16px; height: 16px; }

.feedback-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(16, 24, 40, .36);
}

.feedback-dialog {
    width: min(360px, 100%);
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 26px 24px 22px;
    border: 1px solid rgba(15, 115, 216, .18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
    text-align: center;
}

.feedback-dialog h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 18px;
}

.feedback-dialog p {
    margin: 0;
    color: #526174;
    line-height: 1.7;
}

.feedback-dialog button {
    min-width: 92px;
    height: 36px;
    margin-top: 4px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.feedback-dialog.error {
    border-color: rgba(201, 51, 51, .18);
}

.feedback-dialog.error button {
    background: var(--danger);
}

.dialog-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(15, 115, 216, .16);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: dialog-spin .85s linear infinite;
}

.dialog-status-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

.feedback-dialog.error .dialog-status-icon {
    background: var(--danger);
}

@keyframes dialog-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-center-page {
        grid-template-columns: 1fr;
    }

    .account-center-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subaccount-summary,
    .shop-summary,
    .subaccount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-list-item {
        grid-template-columns: 1fr;
    }

    .shop-row-actions {
        justify-content: flex-start;
    }

    .sync-latest-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subaccount-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-form,
    .role-form,
    .shop-modal-grid,
    .subaccount-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-modal-wide {
        grid-column: span 2;
    }

    .subaccount-card-head,
    .shop-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .workspace {
        padding: 8px;
    }

    .topbar {
        align-items: center;
        gap: 8px;
        margin: -8px -8px 8px;
        padding: 0 8px 0 0;
    }

    .overview {
        grid-template-columns: 1fr;
    }

    .account-center-nav,
    .account-detail-grid {
        grid-template-columns: 1fr;
    }

    .setting-row,
    .device-item,
    .plan-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-form-row {
        grid-template-columns: 1fr;
    }

    .account-row-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .subaccount-summary,
    .shop-summary,
    .subaccount-grid,
    .shop-filter-bar,
    .subaccount-toolbar,
    .department-form,
    .role-form,
    .shop-modal-grid,
    .subaccount-form {
        grid-template-columns: 1fr;
    }

    .subaccount-form-wide,
    .shop-modal-wide {
        grid-column: auto;
    }

    .shop-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sync-summary,
    .sync-latest-row {
        grid-template-columns: 1fr;
    }

    .shop-row-actions {
        flex-wrap: wrap;
    }

    .table-head,
    .table-head-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .department-tree li {
        align-items: flex-start;
        flex-direction: column;
    }

    .subaccount-card-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .dept-actions {
        width: 100%;
        padding-left: 32px;
    }

    .role-list li,
    .permission-head,
    .permission-actions,
    .permission-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .role-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Member access is split into focused work pages instead of one dense dashboard. */
.team-access-page { min-width: 0; gap: 14px; overflow-x: clip; }
.team-access-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.team-access-head h2 { margin: 3px 0 4px; font-size: 24px; }
.team-access-head p { margin: 0; color: var(--muted); font-size: 13px; }
.team-access-eyebrow, .form-step-label { display: block; color: var(--primary); font-size: 11px; font-weight: 800; }
.team-primary-action { min-width: 104px; height: 38px; }

.team-page-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.team-page-nav button { position: relative; min-height: 52px; border: 0; border-left: 1px solid var(--line); padding: 0 18px; color: #526174; background: #fff; text-align: center; cursor: pointer; }
.team-page-nav button:first-child { border-left: 0; }
.team-page-nav button:hover { background: #f8fafc; }
.team-page-nav button.active { color: var(--primary); background: #f3f8ff; }
.team-page-nav button.active::after { position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; content: ''; background: var(--primary); }
.team-page-nav strong, .team-page-nav span { display: block; }
.team-page-nav strong { font-size: 15px; }
.team-page-nav span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.member-summary { gap: 12px; }
.member-summary .metric { min-height: 86px; padding: 15px 18px; }
.member-summary .metric strong { margin-top: 7px; font-size: 25px; }
.member-list-panel, .organization-panel, .role-management-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.member-list-head, .management-page-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.member-list-head h3, .management-page-head h3 { margin: 0; font-size: 18px; }
.member-list-head p, .management-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.management-page-head > span { color: var(--muted); font-size: 13px; }
.management-head-actions { display: flex; align-items: center; gap: 14px; }
.management-head-actions > span { color: var(--muted); font-size: 13px; }
.member-filter-bar { grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(135px, .75fr)); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fbfcfe; }
.member-list-panel .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.member-table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: fixed; }
.member-table th, .member-table td { padding: 13px 16px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: middle; }
.member-table th { color: #526174; background: #fff; font-size: 13px; font-weight: 700; }
.member-table th:nth-child(1) { width: 18%; }
.member-table th:nth-child(2) { width: 17%; }
.member-table th:nth-child(3) { width: 21%; }
.member-table th:nth-child(4) { width: 19%; }
.member-table th:nth-child(5) { width: 11%; }
.member-table th:nth-child(6) { width: 14%; }
.member-table td > span, .member-table td > small { display: block; }
.member-table td > small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.member-identity { display: flex; align-items: center; gap: 10px; }
.member-identity > div { min-width: 0; }
.member-identity strong, .member-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity strong { margin: 0 0 4px; color: var(--text); }
.member-identity small { color: var(--muted); font-size: 12px; }
.member-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #0c568f; background: #e5f2ff; font-size: 13px; font-weight: 800; }
.member-department { margin: 0 0 5px !important; }
.owner-label { display: inline-flex !important; width: max-content; margin: 0 !important; border-radius: 4px; padding: 2px 6px; color: #08724c !important; background: #e7f7ef; }
.member-role-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.member-role-tags span { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid #d8e7f7; border-radius: 4px; padding: 2px 7px; color: #245a86; background: #f3f8fd; font-size: 12px; }
.unassigned-label { color: var(--muted); font-size: 12px; }
.member-table .table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.member-table .table-actions button { height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; color: #526174; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.member-table .table-actions button:first-child { color: var(--primary); border-color: #c9def4; background: #f3f8ff; }
.member-table .table-actions button:last-child { color: var(--danger); }

.organization-panel { min-height: 360px; padding: 0; }
.organization-column-head { display: flex; justify-content: space-between; padding: 10px 22px; color: var(--muted); background: #fbfcfe; font-size: 12px; font-weight: 700; }
.organization-tree { margin: 0; padding: 4px 18px 18px; }
.organization-tree li { min-height: 58px; border-radius: 0; }
.organization-tree .dept-main { min-width: 220px; }
.organization-tree .dept-actions { align-items: center; }
.department-member-count { min-width: 56px; color: var(--muted); font-size: 12px; text-align: right; }
.management-inline-form { margin: 16px 18px; }
.management-modal-backdrop { z-index: 55; }
.management-dialog { width: min(620px, calc(100vw - 48px)); display: block; padding: 0; overflow: hidden; }
.management-dialog-head { position: static; }
.management-dialog-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.management-dialog-body label { display: grid; gap: 7px; }
.management-dialog-body label > span { color: #526174; font-size: 12px; font-weight: 700; }
.management-dialog-body input, .management-dialog-body select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 11px; color: var(--text); background: #fff; font: inherit; outline: none; }
.management-dialog-body input:focus, .management-dialog-body select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 115, 216, .12); }
.department-dialog-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.department-dialog-grid label:last-child { grid-column: 1 / -1; }
.dialog-field-wide { grid-column: 1 / -1; }
.management-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.team-modal-open { overflow: hidden; }
.team-delete-backdrop { z-index: 65; }
.team-delete-dialog { width: min(440px, calc(100vw - 48px)); display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 24px 24px 0; overflow: hidden; }
.team-delete-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #f0c6c6; border-radius: 50%; color: var(--danger); background: #fff3f3; font-size: 22px; font-weight: 800; }
.team-delete-content { min-width: 0; }
.team-delete-content h3 { margin: 5px 0 8px; color: var(--text); font-size: 19px; }
.team-delete-content > p { margin: 0; color: #5c6878; font-size: 13px; line-height: 1.65; }
.team-delete-target { display: grid; gap: 4px; margin-top: 17px; border-left: 3px solid var(--danger); padding: 9px 12px; background: #fbfcfe; }
.team-delete-target span { color: var(--muted); font-size: 11px; }
.team-delete-target strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 14px; }
.team-delete-content .team-delete-note { margin-top: 12px; color: #8b5b16; font-size: 12px; }
.team-delete-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin: 8px -24px 0; border-top: 1px solid var(--line); padding: 14px 24px; background: #fbfcfe; }
.management-empty { min-height: 150px !important; display: grid !important; place-items: center; color: var(--muted) !important; text-align: center; }

.role-management-panel { min-height: 360px; }
.role-management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.role-management-grid > .management-empty { grid-column: 1 / -1; }
.role-management-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.role-card-title { min-height: 92px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px; }
.role-card-title strong { display: block; font-size: 16px; }
.role-card-title p { margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.role-card-title > div { min-width: 0; }
.role-card-title > span { flex: 0 0 auto; border-radius: 4px; padding: 3px 7px; color: #08724c; background: #e7f7ef; font-size: 11px; }
.role-card-title > span.off { color: #8b5b16; background: #fff2dd; }
.role-management-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; background: #fbfcfe; }
.role-management-card dl div { padding: 12px 17px; }
.role-management-card dl div + div { border-left: 1px solid #edf1f6; }
.role-management-card dt { color: var(--muted); font-size: 11px; }
.role-management-card dd { margin: 5px 0 0; color: var(--text); font-size: 15px; font-weight: 750; }
.role-card-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 14px; }
.role-card-actions button { height: 30px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; color: #526174; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.role-card-actions button.primary { color: var(--primary); border-color: #c9def4; background: #f3f8ff; }
.role-card-actions button:last-child { margin-left: auto; color: var(--danger); }

.member-assignment-form { width: min(920px, calc(100vw - 48px)); display: block; padding: 0; border-bottom: 0; background: #fff; }
.member-modal-head { position: sticky; top: 0; z-index: 3; padding: 19px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.member-modal-head h3 { margin-top: 4px; }
.member-modal-head > .text-button { min-width: 56px; flex: 0 0 auto; }
.member-assignment-form .member-modal-head { flex-wrap: wrap; }
.member-assignment-form .member-form-alert { display: flex; flex: 1 0 100%; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #f5aaa3; border-radius: 5px; background: #fff2f0; color: #b42318; font-size: 14px; font-weight: 600; line-height: 1.5; }
.member-form-alert svg { flex: 0 0 20px; width: 20px; height: 20px; }
.member-form-alert span { overflow-wrap: anywhere; }
.member-required { color: #d92d20; font-style: normal; }
.member-assignment-form .member-form-grid [aria-invalid="true"] { border-color: #d92d20 !important; box-shadow: 0 0 0 2px #fee4e2; }
.member-form-section-title { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 0; }
.member-form-section-title strong { font-size: 15px; }
.member-form-section-title span { color: var(--muted); font-size: 12px; }
.member-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 14px 22px 20px; }
.member-form-grid.compact { grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr); }
.member-form-wide { grid-column: 1 / -1; }
.member-assignment-form .member-form-grid label { display: grid; gap: 7px; }
.member-assignment-form .member-form-grid label > span { color: #526174; font-size: 12px; font-weight: 700; }
.member-assignment-form .member-form-grid input:not([type="checkbox"]), .member-assignment-form .member-form-grid select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; color: var(--text); background: #fff; font: inherit; outline: none; }
.member-owner-option { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 10px !important; min-height: 52px; border: 1px solid #e4eaf1; border-radius: 6px; padding: 9px 12px; background: #fbfcfe; cursor: pointer; }
.member-owner-option input, .role-choice input { width: 17px !important; height: 17px !important; flex: 0 0 17px; }
.member-owner-option > span { display: block; }
.member-owner-option strong, .member-owner-option small { display: block; }
.member-owner-option small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.role-section-title { border-top: 1px solid #edf1f6; padding-top: 19px; }
.member-role-picker { margin: 12px 22px 20px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.member-role-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.member-role-toolbar > input { flex: 1 1 160px; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 3px; font: inherit; font-size: 12px; }
.member-role-filters { display: flex; flex-shrink: 0; gap: 4px; }
.member-role-filters button { padding: 7px 10px; border: 0; border-radius: 3px; background: transparent; color: #64748b; font: inherit; font-size: 12px; cursor: pointer; }
.member-role-filters button.active { background: #e8f1ff; color: var(--primary); font-weight: 600; }
.member-role-toolbar input:focus-visible, .member-role-filters button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.role-assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 6px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.role-choice { min-width: 0; display: flex !important; align-items: center; gap: 9px !important; min-height: 48px; border: 1px solid transparent; border-radius: 3px; padding: 7px 9px; background: #fff; cursor: pointer; }
.role-choice:hover { border-color: #b9d4ee; }
.role-choice.selected { border-color: #77abe0; background: #f2f8ff; box-shadow: inset 3px 0 0 var(--primary); }
.role-choice > span, .role-choice strong, .role-choice small { min-width: 0; display: block; }
.role-choice > span { flex: 1; }
.role-choice strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; font-weight: 500; }
.role-choice small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.role-choice-empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); background: #fbfcfe; text-align: center; }
.member-advanced-settings { border-top: 1px solid #edf1f6; }
.member-advanced-settings summary { padding: 14px 22px; color: #526174; font-size: 13px; font-weight: 700; cursor: pointer; }
.member-advanced-settings .member-form-grid { padding-top: 2px; }
.member-form-actions { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfe; box-shadow: 0 -8px 20px rgba(21, 32, 51, .05); }
.member-form-actions > span { color: var(--muted); font-size: 12px; }
.member-form-actions > div { display: flex; gap: 8px; }

@media (max-width: 1100px) {
    .role-management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .team-access-head { align-items: flex-start; flex-direction: column; }
    .team-primary-action { width: 100%; }
    .team-page-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-page-nav button { min-width: 0; min-height: 46px; border-top: 0; border-left: 1px solid var(--line); padding: 0 8px; }
    .team-page-nav button:first-child { border-left: 0; }
    .team-page-nav button.active::after { top: auto; right: 10px; bottom: 0; left: 10px; width: auto; height: 3px; }
    .member-filter-bar, .role-management-grid, .member-form-grid, .member-form-grid.compact, .role-assignment-grid { grid-template-columns: 1fr; }
    .member-list-head, .management-page-head, .member-form-section-title { align-items: flex-start; flex-direction: column; }
    .management-head-actions { width: 100%; justify-content: space-between; }
    .member-list-panel .table-scroll { overflow: visible; }
    .member-table { min-width: 0; display: block; }
    .member-table thead { display: none; }
    .member-table tbody { display: block; }
    .member-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .member-table tbody td { min-height: 38px; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 16px; border: 0; }
    .member-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
    .member-table tbody td:first-child { display: block; padding-bottom: 10px; }
    .member-table tbody td:first-child::before { content: none; }
    .member-table .table-empty { display: grid; place-items: center; min-height: 120px; padding: 20px; }
    .member-table .table-empty::before { content: none; }
    .member-table .table-actions { justify-content: flex-start; }
    .organization-column-head { display: none; }
    .organization-tree { padding: 5px 12px 15px; }
    .organization-tree li { align-items: flex-start; flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
    .organization-tree .dept-actions { width: 100%; flex-wrap: wrap; padding-left: 32px; }
    .department-member-count { text-align: left; }
    .role-management-grid { padding: 12px; }
    .member-assignment-form { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
    .management-dialog { width: calc(100vw - 24px); }
    .management-dialog-body, .department-dialog-grid { grid-template-columns: 1fr; padding: 18px; }
    .dialog-field-wide, .department-dialog-grid label:last-child { grid-column: auto; }
    .management-dialog-actions { padding: 13px 18px; }
    .team-delete-dialog { width: calc(100vw - 24px); grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 20px 18px 0; }
    .team-delete-mark { width: 36px; height: 36px; font-size: 19px; }
    .team-delete-actions { margin-right: -18px; margin-left: -18px; padding: 13px 18px; }
    .member-form-wide, .member-owner-option { grid-column: auto; }
    .member-form-actions { align-items: flex-start; flex-direction: column; }
    .member-form-actions > div, .member-form-actions button { width: 100%; }
}

/* Compact workspace controls and data lists. */
.member-list-panel { border: 0; border-radius: 0; background: transparent; }
.member-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
}
.member-filter-bar label { position: relative; flex: 0 1 150px; min-width: 120px; }
.member-filter-bar .member-search-field { flex-basis: 260px; }
.member-filter-bar label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.member-filter-bar input, .member-filter-bar select { height: 32px; border-color: #cbd5e1; border-radius: 3px; background: #fff; font-size: 12px; }
.member-filter-reset { height: 32px; border: 1px solid #d7dee8; border-radius: 3px; color: #334155; background: #f1f3f6; font-size: 12px; font-weight: 400; }
.member-list-head { min-height: 50px; padding: 8px 0; justify-content: flex-start; gap: 12px; border: 0; }
.member-list-head .member-list-count { margin: 0; color: #64748b; font-size: 12px; }
.member-refresh { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 0; border-radius: 3px; background: transparent; color: #526174; cursor: pointer; }
.member-refresh svg { width: 18px; height: 18px; }
.member-refresh:hover { color: var(--primary); background: #e1e8f1; }
.member-refresh:disabled { opacity: .5; cursor: wait; }
.member-list-head .mini-button, .management-page-head .mini-button { height: 32px; border: 1px solid #c4d3e7; border-radius: 3px; color: #174776; background: #fff; font-size: 12px; font-weight: 400; }
.member-list-head .mini-button:hover, .management-page-head .mini-button:hover { border-color: var(--primary); color: var(--primary); background: #f5faff; }
.member-list-panel .table-scroll { border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.member-table { min-width: 1780px; font-size: 12px; }
.member-table th, .member-table td { height: 40px; padding: 8px 12px; border-bottom-color: #e4e8ef; font-size: 12px; }
.member-table th { position: relative; height: 36px; color: #253449; background: #fff; }
.member-table th:not(:last-child)::after { content: ''; position: absolute; top: 12px; right: 0; width: 1px; height: 12px; background: #d7dee8; }
.member-table th:nth-child(1) { width: 130px; }
.member-table th:nth-child(2) { width: 110px; }
.member-table th:nth-child(3) { width: 130px; }
.member-table th:nth-child(4) { width: 180px; }
.member-table th:nth-child(5), .member-table th:nth-child(6) { width: 130px; }
.member-table th:nth-child(7), .member-table th:nth-child(10) { width: 180px; }
.member-table th:nth-child(8) { width: 120px; }
.member-table th:nth-child(9) { width: 90px; }
.member-table th:nth-child(11) { width: 230px; }
.member-table th:nth-child(12) { width: 100px; }
.member-table th:nth-child(13) { width: 140px; }
.member-table tbody tr:hover { background: #f5f9ff; }
.member-table .member-username { color: #174776; }
.member-table .table-actions { gap: 12px; }
.member-table .table-actions button, .member-table .table-actions button:first-child { height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--primary); font-size: 12px; }
.member-table .table-actions button:last-child { color: var(--danger); }
.member-table .table-actions button:hover { text-decoration: underline; }
.member-table .table-empty { height: 180px; text-align: center; }
.organization-panel, .role-management-panel { border-radius: 3px; }
.management-page-head { min-height: 54px; padding: 10px 12px; gap: 12px; }
.management-page-head h3 { font-size: 14px; }
.management-page-head p { margin-top: 4px; font-size: 12px; }
.management-head-actions > span { font-size: 12px; }
.organization-column-head { padding: 8px 12px; }
.organization-tree { padding: 0 10px 10px; }
.organization-tree li { min-height: 42px; font-size: 13px; }
.role-management-grid { gap: 10px; padding: 12px; }
.role-management-card { border-radius: 4px; }
.role-card-title { min-height: 70px; padding: 12px; }
.role-card-title strong { font-size: 14px; }
.role-management-card dl div { padding: 10px 12px; }
.role-card-actions { padding: 8px 12px; }

@media (min-width: 701px) {
    .member-table td, .member-table td > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .member-table td:last-child { overflow: visible; }
    .member-table .member-actions-cell { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -5px 0 8px -5px rgba(38, 65, 104, .2); }
    .member-table th.member-actions-cell { z-index: 3; }
    .member-table tbody tr:hover .member-actions-cell { background: #f5f9ff; }
}

@media (max-width: 700px) {
    .topbar-username { display: none; }
    .member-filter-bar label, .member-filter-bar .member-search-field { flex: 1 1 100%; min-width: 0; }
    .member-list-head { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
    .member-list-head .member-list-count { font-size: 11px; }
    .member-table { min-width: 0; }
    .member-table tbody td { height: auto; padding: 6px 10px; overflow-wrap: anywhere; }
    .member-table tbody td:first-child { padding: 6px 10px; }
    .member-table td > span { min-width: 0; }
    .member-table .table-empty { min-height: 140px; }
}

/* Role selection and its users share one workspace. */
.role-workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: calc(100vh - 70px); border: 0; border-radius: 0; background: transparent; overflow: visible; }
.role-sidebar { min-width: 0; background: #fff; border: 1px solid var(--line); }
.role-sidebar-head { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.role-sidebar-head h3 { margin: 0 4px 0 0; font-size: 18px; }
.role-icon-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 4px; border: 0; border-radius: 3px; color: #7a899e; background: transparent; cursor: pointer; }
.role-icon-button svg { width: 18px; height: 18px; }
.role-icon-button:hover { color: var(--primary); background: #edf4ff; }
.role-icon-button:disabled { opacity: .5; cursor: wait; }
.role-add-button { margin-left: auto; color: var(--primary); }
.role-search { padding: 12px 10px; }
.role-search input, .role-user-search input { width: 100%; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; color: var(--text); font: inherit; font-size: 12px; }
.role-search input:focus, .role-user-search input:focus { outline: 2px solid #c5d9ff; border-color: var(--primary); }
.role-list-nav { max-height: calc(100vh - 190px); overflow-y: auto; padding: 0 10px 12px; }
.role-list-nav button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 8px; border: 0; border-radius: 2px; color: #334155; background: transparent; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.role-list-nav button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-list-nav button small { color: #8a95a6; font-size: 11px; }
.role-list-nav button:hover { background: #f2f6fc; }
.role-list-nav button.active { color: var(--primary); background: #e5eeff; }
.role-list-nav button .role-disabled-tag { border: 1px solid #ead5b4; padding: 1px 4px; color: #94641e; background: #fff8ed; }
.role-list-empty { padding: 12px 2px; color: #8a95a6; font-size: 12px; line-height: 1.6; }
.role-detail { min-width: 0; padding-left: 12px; }
.role-description { display: flex; flex-wrap: wrap; gap: 6px 12px; min-height: 40px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border: 1px solid #bcd3fb; border-radius: 3px; color: #355477; background: #edf4ff; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.role-description strong { color: #244b83; font-weight: 600; }
.role-users-panel { min-height: calc(100vh - 122px); border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.role-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.role-detail-head h3 { display: flex; align-items: center; gap: 8px; align-self: stretch; margin: 0; border-bottom: 2px solid var(--primary); color: var(--primary); font-size: 13px; }
.role-detail-head h3 small { color: #7a899e; font-size: 11px; font-weight: 400; }
.role-detail-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.role-detail-actions button, .role-user-edit { border: 0; padding: 0; background: transparent; color: var(--primary); font: inherit; font-size: 12px; cursor: pointer; }
.role-detail-actions button:hover, .role-user-edit:hover { text-decoration: underline; }
.role-detail-actions .danger { color: var(--danger); }
.role-users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.role-users-toolbar .mini-button { flex-shrink: 0; border-radius: 3px; font-size: 12px; font-weight: 400; }
.role-user-search { width: 240px; max-width: 100%; min-width: 0; }
.role-users-table-wrap { overflow-x: auto; margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 3px; }
.role-users-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 12px; }
.role-users-table th { height: 34px; padding: 8px 12px; background: #f3f5f8; color: #334155; font-weight: 600; }
.role-users-table td { height: 40px; padding: 8px 12px; border-top: 1px solid var(--line); }
.role-users-table td:first-child { color: #174776; }
.role-users-table tbody tr:hover { background: #f5f9ff; }
.role-users-table th:last-child, .role-users-table td:last-child { width: 120px; }
.role-users-table .role-users-empty { height: 320px; color: #8a95a6; text-align: center; }
.role-detail-empty { display: grid; align-content: center; min-height: 360px; padding: 24px; border: 1px solid var(--line); background: #fff; text-align: center; }
.role-detail-empty h3 { color: #526174; font-size: 16px; }
.role-detail-empty p { color: #8a95a6; font-size: 12px; line-height: 1.6; }
.role-icon-button:focus-visible, .role-list-nav button:focus-visible, .role-detail-actions button:focus-visible, .role-user-edit:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

@media (max-width: 800px) {
    .role-workspace { grid-template-columns: 1fr; gap: 10px; }
    .role-list-nav { max-height: 180px; }
    .role-detail { padding-left: 0; }
    .role-detail-head { align-items: flex-start; flex-direction: column; padding: 10px; gap: 10px; }
    .role-detail-head h3 { align-self: flex-start; padding-bottom: 8px; }
    .role-users-toolbar { flex-wrap: wrap; padding: 10px; }
    .role-user-search { width: 100%; }
    .role-users-table-wrap { margin: 0 10px 10px; }
}
.role-add-users-backdrop { z-index: 70; }
.role-add-users-dialog { display: block; width: min(800px, calc(100vw - 32px)); padding: 0; overflow-y: auto; }
.role-add-users-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.role-add-users-head h3 { margin: 0; font-size: 18px; }
.role-add-users-head p { margin: 8px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.role-add-users-head .role-icon-button { flex-shrink: 0; font-size: 24px; }
.role-user-transfer { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; padding: 20px; }
.role-transfer-pane { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.role-transfer-pane h4 { display: flex; justify-content: space-between; margin: 0; padding: 12px; border-bottom: 1px solid var(--line); background: #f5f8fc; font-size: 13px; }
.role-transfer-pane h4 small { color: #7a899e; font-size: 12px; font-weight: 400; }
.role-transfer-pane > input { width: calc(100% - 20px); height: 32px; margin: 10px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 3px; font: inherit; font-size: 12px; }
.role-transfer-list { height: min(340px, 42vh); overflow-y: auto; padding: 0 6px 6px; }
.role-transfer-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid #edf1f6; background: #fff; text-align: left; cursor: pointer; }
.role-transfer-list button:hover { background: #eef5ff; }
.role-transfer-list button > span { min-width: 0; }
.role-transfer-list strong, .role-transfer-list small { display: block; overflow-wrap: anywhere; }
.role-transfer-list strong { color: #334155; font-size: 13px; font-weight: 500; }
.role-transfer-list small { margin-top: 4px; color: #8a95a6; font-size: 12px; }
.role-transfer-list em { color: var(--primary); font-size: 20px; font-style: normal; }
.role-transfer-list p { padding: 40px 8px; color: #8a95a6; font-size: 12px; text-align: center; }
.role-transfer-arrow { text-align: center; color: #8a95a6; font-size: 24px; }
.role-transfer-error { margin: 0; padding: 0 20px 16px; color: var(--danger); font-size: 12px; }
.role-add-users-footer { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #f8fafc; }
.role-add-users-footer > span { flex: 1; color: #64748b; font-size: 12px; }
.role-transfer-list button:focus-visible, .role-transfer-pane input:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 560px) {
    .role-add-users-head, .role-add-users-footer { padding: 12px; }
    .role-user-transfer { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); padding: 12px; }
    .role-transfer-arrow { font-size: 18px; }
    .role-transfer-pane h4 { padding: 10px 6px; }
    .role-transfer-list { padding: 0 2px; }
    .role-transfer-list button { padding: 8px 4px; }
}
.role-detail-tabs { display: flex; align-self: stretch; gap: 20px; min-height: 44px; }
.role-detail-tabs button { display: flex; align-items: center; gap: 8px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #64748b; font: inherit; font-size: 13px; cursor: pointer; }
.role-detail-tabs button.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }
.role-detail-tabs small { color: #8a95a6; font-size: 11px; font-weight: 400; }
.role-detail-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.role-inline-permissions { min-width: 0; }
.role-inline-permissions .permission-toolbar { padding: 12px 14px; }
.role-inline-permissions .permission-toolbar input { height: 32px; border-radius: 3px; font-size: 12px; }
.role-inline-permissions .permission-tree { min-height: 320px; max-height: calc(100vh - 300px); padding: 8px 14px; }
.role-inline-permissions .permission-actions { padding: 12px 14px; }
.role-inline-permissions .permission-empty { justify-content: center; min-height: 220px; color: #8a95a6; }
@media (max-width: 800px) {
    .role-detail-head:has(.role-detail-tabs) { padding: 0 10px; }
    .role-detail-tabs { gap: 16px; }
    .role-inline-permissions .permission-node { flex-wrap: wrap; }
    .role-inline-permissions .permission-node em { overflow-wrap: anywhere; }
}
.role-list-row { display: flex; align-items: center; border-radius: 2px; }
.role-list-row.active { background: #e5eeff; }
.role-list-nav .role-list-row .role-select { flex: 1; min-width: 0; width: auto; }
.role-list-nav .role-list-row.active .role-select { color: var(--primary); }
.role-list-nav .role-more-button { flex: 0 0 26px; width: 26px; min-height: 28px; justify-content: center; margin-right: 3px; padding: 4px; color: #7a899e; }
.role-more-button svg { width: 18px; height: 18px; }
.role-list-nav .role-more-button:hover, .role-list-nav .role-more-button[aria-expanded="true"] { color: var(--primary); background: #d6e5ff; }
.role-actions-menu { position: fixed; z-index: 80; width: 120px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 6px 20px rgba(30, 50, 80, .14); }
.role-actions-menu button { display: block; width: 100%; height: 32px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: #334155; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.role-actions-menu button.danger { color: var(--danger); }
.role-actions-menu button:hover, .role-actions-menu button:focus-visible { outline: none; background: #eef4ff; }
.role-actions-menu button:disabled { opacity: .5; cursor: wait; }
.department-list-nav .department-expand { width: 18px; flex: 0 0 18px; min-height: 28px; padding: 2px; justify-content: center; }
.department-expand svg { width: 12px; height: 12px; transition: transform .15s ease; }
.department-expand svg.expanded { transform: rotate(90deg); }
.department-leaf-spacer { flex: 0 0 18px; }
.department-list-nav .role-select { padding-left: 2px; }
.department-workspace .role-description strong { overflow-wrap: anywhere; }
.department-user-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.department-batch-actions { position: relative; }
.department-batch-trigger { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; color: #334155; font: inherit; font-size: 12px; cursor: pointer; }
.department-batch-trigger svg { width: 12px; height: 12px; color: #8a95a6; }
.department-batch-trigger:disabled { opacity: .5; cursor: wait; }
.department-batch-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 12; width: 120px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 6px 18px #1634661a; }
.department-batch-menu button { display: block; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: #334155; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.department-batch-menu button.danger, .department-remove-error { color: var(--danger); }
.department-batch-menu button:hover:not(:disabled), .department-batch-menu button:focus-visible { background: #eef4ff; }
.department-batch-menu button:disabled { color: #a0aaba; cursor: not-allowed; }
.department-batch-trigger:focus-visible, .department-batch-menu button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.department-selection-count { color: #7a899e; font-size: 12px; }
.role-users-table .department-user-check { width: 36px; padding: 8px 10px; text-align: center; }
.department-user-check input { width: 14px; height: 14px; margin: 0; vertical-align: middle; accent-color: var(--primary); cursor: pointer; }
.role-users-table tr.department-user-selected { background: #eef5ff; }
.department-users-toolbar { flex-wrap: wrap; }
.department-users-toolbar .role-user-search { margin-left: auto; }
.department-linked-permissions { white-space: nowrap; }
.department-permissions-muted { color: #8a95a6; }
.member-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: #fff; color: #64748b; font-size: 12px; }
.member-pagination-pages { display: flex; align-items: center; gap: 4px; }
.member-pagination button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: #475569; font: inherit; cursor: pointer; }
.member-pagination button svg { width: 14px; height: 14px; }
.member-pagination button[aria-current="page"] { border-color: #d7e6ff; background: #e8f1ff; color: var(--primary); }
.member-pagination button:disabled { opacity: .4; cursor: default; }
.member-pagination select, .member-pagination input { height: 30px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; color: #475569; font: inherit; }
.member-pagination select { padding: 0 6px; }
.member-pagination-jump { display: flex; align-items: center; gap: 6px; }
.member-pagination input { width: 48px; padding: 0 5px; text-align: center; }
.member-pagination-gap { padding: 0 3px; }
.member-pagination :focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
@media (max-width: 700px) { .member-pagination { justify-content: center; gap: 8px; } .member-pagination-pages { flex-wrap: wrap; justify-content: center; } }
.department-all-shops { display: flex; align-items: flex-start; gap: 10px; margin: 16px 20px 0; padding: 12px; border: 1px solid #cbdfff; border-radius: 4px; background: #f3f8ff; cursor: pointer; }
.department-all-shops input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); }
.department-all-shops strong, .department-all-shops small { display: block; }
.department-all-shops strong { color: #334155; font-size: 13px; }
.department-all-shops small { margin-top: 5px; color: #64748b; font-size: 12px; line-height: 1.5; }
.department-all-shops-note { margin: 0; padding: 18px 20px; color: #64748b; font-size: 12px; line-height: 1.6; }
.member-editor-page { min-width: 0; }
.member-assignment-form.member-editor-form { width: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.member-editor-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.member-editor-head h3 { margin: 0; font-size: 16px; }
.member-editor-head p { margin: 5px 0 0; color: #7a899e; font-size: 12px; }
.member-editor-columns { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; min-height: calc(100vh - 190px); align-items: stretch; }
.member-editor-info, .member-editor-roles { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.member-editor-form .member-form-section-title { padding: 18px 16px 0; }
.member-editor-form .member-form-section-title strong { padding-left: 8px; border-left: 2px solid var(--primary); font-size: 13px; }
.member-editor-info .member-form-section-title > span { display: none; }
.member-editor-form .member-form-grid, .member-editor-form .member-form-grid.compact { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
.member-editor-form .member-form-grid label:not(.member-owner-option) { grid-template-columns: 72px minmax(0, 1fr); align-items: center; }
.member-editor-form .member-form-grid label > span { font-weight: 400; text-align: right; }
.member-editor-form .member-form-grid input:not([type="checkbox"]), .member-editor-form .member-form-grid select { height: 32px; border-radius: 3px; font-size: 12px; }
.member-editor-form .member-owner-option { min-height: 40px; padding: 8px; }
.member-editor-form .member-owner-option > span { text-align: left; }
.member-editor-form .member-advanced-settings { margin: 0; padding: 14px 16px; }
.member-editor-form .member-advanced-settings .member-form-grid { padding: 14px 0 0; }
.member-editor-roles .role-section-title { border-top: 0; padding: 16px; border-bottom: 1px solid var(--line); }
.member-editor-roles .member-role-picker { border: 0; margin: 0; border-radius: 0; }
.member-editor-roles .member-role-toolbar { padding: 12px 16px; background: #fff; }
.member-editor-roles .member-role-toolbar > input { flex: 0 1 260px; }
.member-editor-roles .role-assignment-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; padding: 12px 16px; max-height: min(600px, calc(100vh - 290px)); }
.member-editor-roles .role-choice { min-height: 36px; padding: 7px; }
.member-editor-roles .role-choice small { display: none; }
.member-editor-form .member-form-actions { position: sticky; bottom: 0; z-index: 5; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); background: #fff; }
.member-editor-form .member-form-actions button { white-space: nowrap; min-width: 72px; }
@media (max-width: 1000px) {
    .member-editor-columns { grid-template-columns: 300px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 760px) {
    .member-editor-columns { grid-template-columns: 1fr; min-height: 0; }
    .member-editor-roles .role-assignment-grid { max-height: 320px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .member-editor-form .member-form-actions { flex-wrap: wrap; gap: 10px; }
    .member-editor-form .member-form-actions > div { width: auto; margin-left: auto; }
}

.product-page { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.product-page-header h1 { margin: 0; font-size: 20px; }
.product-page-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.product-filters.shop-filter-bar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(110px, 1fr)) auto; padding: 0 20px 20px; align-items: end; }
.product-filters label { min-width: 0; }
.product-filters input, .product-filters select { width: 100%; min-width: 0; }
.product-filter-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.product-empty { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 250px; padding: 24px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.product-empty p { margin: 0; font-size: 13px; }
.product-table-wrap { overflow-x: auto; max-width: 100%; }
.product-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.product-table th { background: #f5f8fc; color: #64748b; font-weight: 500; white-space: nowrap; }
.product-table th, .product-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.product-table td { min-width: 110px; }
.product-table small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.product-table tbody tr:hover { background: #fafcff; }
.product-identity { display: flex; gap: 12px; width: 320px; align-items: center; }
.product-identity > div { min-width: 0; }
.product-identity strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.product-identity img, .product-image-placeholder { width: 48px; height: 48px; flex-shrink: 0; border-radius: 4px; object-fit: contain; background: #f5f8fc; }
.product-image-placeholder { display: grid; place-items: center; color: #94a3b8; }
.product-status { display: inline-block; padding: 4px 8px; background: #eef4ff; border-radius: 4px; color: #315ba8; white-space: nowrap; }
.product-numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.listing-workbench { --listing-ink: #20324c; --listing-muted: #8090a5; border-color: #e2e8f1; border-radius: 10px; box-shadow: 0 3px 16px #19345904; color: var(--listing-ink); }
.listing-workbench .product-filters.shop-filter-bar { gap: 10px; padding: 15px 20px; grid-template-columns: minmax(240px, 2fr) minmax(125px, .9fr) minmax(135px, 1fr) minmax(100px, .7fr) 108px auto; background: #fff; }
.listing-workbench .product-filters label { gap: 5px; }
.listing-workbench .product-filters label > span { color: #8390a2; font-size: 11px; }
.listing-workbench .product-filters input, .listing-workbench .product-filters select { height: 33px; border-color: #e0e6ef; border-radius: 6px; background: #fff; color: #34445d; font-size: 12px; }
.listing-workbench .mini-button { min-height: 33px; padding: 0 14px; border-radius: 6px; background: #3267df; border: 1px solid #3267df; font-size: 12px; }
.listing-workbench .mini-button.ghost { background: #fff; border-color: #e0e6ef; color: #607089; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fafbfd; border-top: 1px solid #edf0f5; }
.listing-batch-actions, .listing-view-actions { display: flex; align-items: center; gap: 10px; }
.listing-selection-count { color: #8592a5; font-size: 11px; white-space: nowrap; }
.listing-selection-count strong { color: #3f6ccd; font-size: 12px; padding: 0 3px; font-weight: 600; }
.listing-toolbar-divider { width: 1px; height: 16px; margin: 0 2px; background: #e1e7ef; }
.listing-tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 29px; padding: 5px 9px; border: 1px solid #dfe6ef; border-radius: 5px; background: #fff; color: #52657e; font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.listing-tool-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.listing-tool-button:hover:not(:disabled) { border-color: #aec5f1; color: #2c61d6; background: #f5f8ff; }
.listing-icon-button { width: 30px; padding: 5px; }
/* Reuse product management's column drawer styles. Native dialog provides focus containment. */
dialog.listing-columns-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; max-width: 100vw; max-height: 100dvh; }
.listing-columns-dialog:not([open]) { display: none; }
.listing-columns-dialog::backdrop { background: #15233566; }
.listing-columns-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.listing-config-table > thead > tr > th, .listing-config-table > tbody > tr > td { box-sizing: border-box; }
.listing-config-table > thead > tr > th[data-pinned=true] { z-index: 5; box-shadow: 1px 0 #e5ebf3; }
.listing-config-table > tbody > tr > td[data-pinned=true] { z-index: 3; box-shadow: 1px 0 #e5ebf3; }
.listing-config-table > thead > tr > .listing-checkbox, .listing-config-table > tbody > tr > .listing-checkbox { position: sticky; left: 0; width: 34px; min-width: 34px; max-width: 34px; z-index: 4; }
.listing-config-table > thead > tr > .listing-checkbox { z-index: 6; }
.listing-config-table > thead > tr > .listing-row-actions, .listing-config-table > tbody > tr > .listing-row-actions { width: 116px; min-width: 116px; max-width: 116px; }
.listing-config-table > tbody > tr > td .product-identity { max-width: 100%; }
.listing-config-table > tbody > tr > .listing-basic-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media(max-width:640px) { .listing-workbench:not(.order-workbench) .listing-view-actions { justify-content: flex-end; } }
.listing-workbench button:disabled { opacity: .45; cursor: default; }
.listing-density { display: flex; gap: 2px; border: 1px solid #e2e7ef; border-radius: 5px; padding: 2px; background: #eef1f6; }
.listing-density button { padding: 3px 9px; border: 0; border-radius: 3px; background: transparent; color: #8894a6; font: inherit; font-size: 11px; cursor: pointer; }
.listing-density button.active { background: #fff; color: #41639a; box-shadow: 0 1px 3px #20324c10; }
.listing-workbench .product-table-wrap { max-height: max(320px, calc(100vh - 260px)); scrollbar-width: thin; scrollbar-color: #c9d3e2 #f7f9fc; }
.listing-table { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.listing-table th { position: sticky; top: 0; z-index: 2; padding: 11px 12px; background: #f1f5fa; color: #6c7d94; font-size: 11px; border-top: 1px solid #e5ebf3; border-bottom: 1px solid #e5ebf3; }
.listing-table td { padding: 11px 12px; min-width: 85px; border-top: 0; border-bottom: 1px solid #edf1f6; background: #fff; }
.listing-table .listing-data-row:hover > td { background: #f8faff; }
.listing-table .listing-data-row.selected > td { background: #f0f5ff; }
.listing-table .product-identity { width: 275px; gap: 10px; }
.listing-table .product-identity img, .listing-table .product-image-placeholder { width: 42px; height: 42px; border: 1px solid #edf0f5; border-radius: 6px; background: #f7f9fc; }
.listing-table .product-image-placeholder svg { width: 22px; height: 22px; stroke: #a8b7cb; fill: none; stroke-width: 1.2; }
.listing-table .product-identity strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 18px; font-weight: 500; }
.listing-table small { margin-top: 5px; font-size: 10px; color: #8a98ac; }
.listing-table .listing-asin { color: #4c74b6; }
.listing-asin > span { margin-right: 4px; color: #9aa8ba; font-size: 9px; }
.listing-table .listing-checkbox { min-width: 34px; width: 34px; padding-left: 14px; padding-right: 4px; }
.listing-checkbox input { display: block; width: 13px; height: 13px; margin: 0; accent-color: #3671e8; cursor: pointer; }
.listing-table .listing-sku { min-width: 158px; max-width: 180px; font-size: 11px; font-variant-numeric: tabular-nums; }
.listing-sku > span, .listing-sku > small, .listing-shop > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.listing-table .listing-shop { min-width: 135px; max-width: 165px; font-size: 11px; }
.listing-table .listing-owner { min-width: 96px; max-width: 180px; white-space: normal; overflow-wrap: anywhere; line-height: 18px; }
.listing-shop small { display: flex; align-items: center; gap: 5px; }
.listing-country-code { padding: 1px 4px; border: 1px solid #e1e8f1; border-radius: 3px; background: #f5f8fc; color: #7a8fae; font-size: 8px; font-weight: 500; }
.listing-table .product-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; color: #5376b3; background: #f0f5ff; font-size: 10px; }
.listing-table .product-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.listing-table .product-status.is-active { color: #288566; background: #edf8f3; }
.listing-table .product-status.is-inactive { color: #8c98aa; background: #f1f3f6; }
.listing-table .listing-channel { padding-left: 6px; font-size: 9px; }
.listing-table .listing-price { min-width: 98px; font-size: 11px; font-weight: 600; }
.listing-table .listing-stock { font-size: 13px; font-weight: 600; }
.listing-table .listing-stock.is-empty { color: #c28c43; }
.listing-table .listing-stock-detail { min-width: 122px; color: #71839e; font-size: 11px; }
.listing-stock-detail span { padding: 0 4px; color: #d2dae5; }
.listing-table .listing-updated { min-width: 118px; max-width: 138px; color: #7d8ba0; font-size: 10px; line-height: 17px; }
.listing-table .listing-row-actions { position: sticky; right: 0; min-width: 68px; width: 68px; border-left: 1px solid #edf1f6; box-shadow: -6px 0 9px -9px #54709e; }
.listing-table th.listing-row-actions { z-index: 3; }
.listing-row-actions button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 0; border: 0; background: none; color: #4679d5; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.listing-row-actions svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.listing-row-actions svg.expanded { transform: rotate(90deg); }
.listing-table .listing-detail-row td { padding: 16px 22px; background: #f8faff; }
.listing-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; max-width: 1100px; }
.listing-detail > div { display: grid; gap: 7px; max-width: 380px; }
.listing-detail span { color: #8b9ab0; font-size: 10px; }
.listing-detail strong { color: #4a5d78; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.listing-workbench .member-pagination { border-top-color: #edf1f6; padding: 12px 16px; color: #8390a5; font-size: 11px; }
.listing-workbench .member-pagination-total { margin-right: auto; }
.listing-comfortable .listing-data-row > td { padding-top: 20px; padding-bottom: 20px; }
.listing-workbench :is(button, input, select):focus-visible { outline: 2px solid #6c98ed; outline-offset: 2px; }
.listing-navigation { display: flex; align-items: center; gap: 22px; padding: 9px 16px 0; border-bottom: 1px solid #e8edf4; }
.listing-asin-switch { display: flex; flex-shrink: 0; gap: 3px; align-self: flex-start; margin-bottom: 9px; padding: 3px; border: 1px solid #e2e9f3; border-radius: 7px; background: #f1f4f9; }
.listing-asin-switch button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 6px 12px; border: 0; border-radius: 4px; background: transparent; color: #7a8ba3; font: inherit; font-size: 12px; cursor: pointer; }
.listing-asin-switch button.active { background: #fff; color: #3066d8; font-weight: 600; box-shadow: 0 1px 4px #24416d12; }
.listing-asin-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.listing-view-caption { margin: 0 0 9px auto; color: #97a4b5; font-size: 11px; }
.listing-group-note { color: #8493a9; font-size: 11px; }
.product-country-field { display: grid; gap: 5px; min-width: 0; }
.product-country-field .product-country-label { font-size: 11px; color: #8390a2; }
.country-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 33px; padding: 0 10px; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; }
.product-country-field .country-picker-trigger span { color: #34445d; font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-picker-trigger svg { flex-shrink: 0; width: 14px; height: 14px; stroke: #8392a9; fill: none; stroke-width: 1.3; }
.country-picker-trigger.selected, .country-picker-trigger.open { border-color: #9db9ef; background: #f8faff; }
.country-picker-trigger.open svg { transform: rotate(180deg); }
.country-picker-popover { position: fixed; z-index: 1050; display: flex; flex-direction: column; height: 374px; border: 1px solid #dfe6f1; border-radius: 9px; background: #fff; box-shadow: 0 10px 36px #203e6529, 0 2px 6px #203e650a; color: #425570; font-size: 12px; overflow: hidden; }
.country-picker-search { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #edf1f6; }
.country-picker-search svg { width: 16px; height: 16px; stroke: #9aacc4; fill: none; stroke-width: 1.4; }
.country-picker-search input { width: 100%; min-width: 0; padding: 3px 0; border: 0; outline: 0; background: transparent; color: #425570; font: inherit; }
.country-picker-search:focus-within { box-shadow: inset 0 -1px #9db9ef; }
.country-picker-search input::placeholder { color: #a3afbf; }
.country-picker-body { display: grid; grid-template-columns: 48% 52%; min-height: 0; flex: 1; }
.country-picker-regions, .country-picker-countries { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d5dfed transparent; padding: 6px; }
.country-picker-regions { border-right: 1px solid #edf1f6; background: #fafbfd; }
.country-picker-popover input[type="checkbox"] { width: 13px; height: 13px; margin: 0; flex-shrink: 0; accent-color: #3671e8; cursor: pointer; }
.country-picker-all, .country-picker-option { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 7px 9px; cursor: pointer; }
.country-picker-all small, .country-picker-option small { margin-left: auto; color: #9baabe; font-size: 10px; }
.country-picker-region { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 8px; border-radius: 4px; }
.country-picker-region.active { color: #376ed9; background: #edf3ff; }
.country-region-name { flex: 1; min-width: 0; padding: 3px 0; border: 0; text-align: left; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.country-picker-region > svg { width: 12px; height: 12px; stroke: #9aacc4; fill: none; stroke-width: 1.4; flex-shrink: 0; }
.country-region-only { padding: 2px 0; border: 0; background: transparent; color: #668aca; font: inherit; font-size: 10px; white-space: nowrap; cursor: pointer; opacity: 0; }
.country-picker-region:is(:hover, :focus-within, .active) .country-region-only { opacity: 1; }
.country-picker-option { border-radius: 4px; }
.country-picker-option:hover { background: #f3f7ff; }
.country-picker-group-name { display: flex; align-items: center; justify-content: space-between; margin: 5px 9px 8px; color: #96a5bb; font-size: 10px; }
.country-picker-group-name small { font-size: 9px; color: #aeb9c9; }
.country-picker-no-results { padding: 15px 8px; color: #9caabd; text-align: center; font-size: 11px; }
.country-picker-footer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #e9eef6; }
.country-picker-footer > span { margin-right: auto; font-size: 10px; color: #94a2b6; }
.country-picker-footer button { border-radius: 5px; padding: 6px 12px; font: inherit; font-size: 11px; cursor: pointer; }
.country-picker-cancel { color: #6e8098; background: #fff; border: 1px solid #e0e7f1; }
.country-picker-confirm { color: #fff; background: #3670e3; border: 1px solid #3670e3; }
.country-picker-popover :is(button, input[type="checkbox"]):focus-visible { outline: 2px solid #84a6e7; outline-offset: 2px; }
.shop-picker-popover { height: 404px; }
.shop-picker-all { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid #edf1f6; background: #fafbfd; cursor: pointer; }
.shop-picker-all small { margin-left: auto; font-size: 10px; color: #9aa9bc; }
.shop-picker-options { flex: 1; min-height: 0; overflow-y: auto; padding: 5px 6px; scrollbar-width: thin; scrollbar-color: #d5dfed transparent; }
.shop-picker-option { display: flex; align-items: center; gap: 7px; min-height: 37px; border-radius: 4px; padding: 0 8px; }
.shop-picker-option:hover, .shop-picker-option:focus-within { background: #f3f7ff; }
.shop-picker-option.selected { background: #f2f6ff; }
.shop-picker-option label { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; padding: 10px 0; cursor: pointer; }
.shop-picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-picker-option small { flex-shrink: 1; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a1adbe; font-size: 10px; }
.shop-picker-only { flex-shrink: 0; padding: 4px 0; border: 0; background: transparent; color: #5783d2; font: inherit; font-size: 10px; cursor: pointer; opacity: 0; }
.shop-picker-option:is(:hover, :focus-within) .shop-picker-only { opacity: 1; }
.shop-picker-footer > div { margin-right: auto; color: #8b9bb1; font-size: 11px; }
.shop-picker-footer strong { color: #6388c9; font-weight: 500; }
.shop-picker-footer small { display: block; margin-top: 4px; color: #a6b1c1; font-size: 9px; }
@media (max-width: 600px) { .shop-picker-only { opacity: 1; } .shop-picker-footer small { max-width: 190px; line-height: 15px; } }
@media (max-width: 600px) { .country-picker-region { gap: 5px; padding: 5px; } .country-region-only { opacity: 1; font-size: 9px; } .country-picker-popover { font-size: 11px; } }
.listing-parent-reference { color: #7692bb !important; }
.listing-parent-reference span { margin-right: 4px; color: #9ba9bd; font-size: 9px; }
.parent-listing-table { min-width: 0; }
.parent-listing-table .parent-group-row > td { height: 84px; padding-top: 14px; padding-bottom: 14px; }
.parent-listing-table .parent-group-row.expanded > td { background: #f6f9ff; border-bottom-color: #e5ecf9; }
.parent-group-trigger { display: flex; align-items: center; gap: 10px; width: 245px; padding: 0; text-align: left; border: 0; background: transparent; font: inherit; cursor: pointer; }
.parent-group-trigger > span:last-child { min-width: 0; }
.parent-group-trigger strong { display: block; margin-top: 5px; color: #345f9f; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.parent-kind-label { color: #92a1b5; font-size: 9px; letter-spacing: .3px; }
.parent-chevron { width: 13px; height: 13px; flex-shrink: 0; stroke: #8297b6; fill: none; stroke-width: 1.4; }
.parent-chevron.expanded { transform: rotate(90deg); }
.parent-group-icon { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; border: 1px solid #dfe9fc; border-radius: 9px; color: #6890db; background: #edf3ff; }
.parent-group-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.parent-group-icon.standalone { color: #91a1b8; border-color: #e5eaf2; background: #f4f6fa; }
.parent-variant-count { display: flex; align-items: baseline; gap: 6px; }
.parent-variant-count strong { color: #49648c; font-size: 16px; font-weight: 600; }
.parent-variant-count span { font-size: 10px; color: #94a1b4; }
.parent-active-count { color: #39826a; font-size: 12px; }
.parent-active-count small { display: inline; margin-left: 4px; }
.parent-status-meter { display: block; width: 72px; height: 3px; margin-top: 9px; background: #eaf0f3; border-radius: 3px; overflow: hidden; }
.parent-status-meter i { display: block; height: 100%; background: #68b399; border-radius: inherit; }
.parent-listing-table .parent-price { min-width: 145px; color: #526b8f; font-size: 11px; white-space: normal; }
.parent-listing-table .parent-incomplete { color: #b1966a; font-weight: 400; font-size: 9px; }
.parent-listing-table .parent-children-row > td { padding: 0 15px 15px 40px; background: #f6f9ff; }
.parent-children-panel { border: 1px solid #dfe8f7; border-left: 2px solid #b9cef0; border-radius: 5px; background: #fff; overflow: hidden; }
.parent-children-caption { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #edf1f8; color: #6c87ad; font-size: 11px; }
.parent-children-caption small { margin: 0; }
.parent-children-table { width: 100%; border-spacing: 0; font-size: 11px; text-align: left; }
.parent-children-table th { position: static; padding: 8px 12px; border-top: 0; background: #fafbfe; font-size: 10px; }
.parent-children-table td { padding: 10px 12px; }
.parent-children-table tbody tr:last-child td { border-bottom: 0; }
.parent-child-marker { color: #a0b7da; font-size: 21px; padding: 0 10px; }
.parent-children-feedback { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px; color: #8c9bb0; font-size: 11px; }
.listing-comfortable .parent-group-row > td { padding-top: 24px; padding-bottom: 24px; }
.listing-comfortable .parent-children-table td { padding-top: 17px; padding-bottom: 17px; }
@media (max-width: 1000px) { .listing-view-caption { display: none; } }
@media (max-width: 600px) {
    .listing-navigation { flex-wrap: wrap; gap: 0; padding: 10px 12px 0; }
    .listing-asin-switch { width: 100%; }
    .listing-asin-switch button { flex: 1; }
    .listing-group-note { line-height: 18px; }
}
@media (max-width: 1100px) {
    .listing-workbench .product-filters.shop-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .listing-workbench .product-keyword { grid-column: span 2; }
}
@media (max-width: 600px) {
    .listing-workbench .product-filters.shop-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .listing-toolbar { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
    .listing-batch-actions { gap: 6px; }
    .listing-view-actions { width: 100%; justify-content: space-between; }
    .listing-workbench .product-table-wrap { max-height: 480px; }
    .listing-workbench .member-pagination-total { margin-right: 0; }
}
@media (max-width: 1100px) { .product-filters.shop-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .product-page-header { padding: 16px 12px; }
    .product-filters.shop-filter-bar { padding: 0 12px 16px; gap: 12px; }
    .product-keyword, .product-filter-actions { grid-column: 1 / -1; }
}

.listing-status-popover { height: 284px; }
.listing-status-popover .shop-picker-all { padding: 9px 14px; }
.listing-status-popover .shop-picker-option { min-height: 33px; }
.listing-status-popover .shop-picker-option label { padding: 8px 0; }

.fulfillment-field { width: 108px; max-width: 100%; }
.fulfillment-trigger { transition: border-color .15s, background .15s, box-shadow .15s; }
.fulfillment-trigger:hover { border-color: #aec5ec; background: #fafcff; }
.fulfillment-trigger:focus-visible { outline: none; border-color: #80a8ed; box-shadow: 0 0 0 3px #3977e610; }
.fulfillment-popover { position: fixed; z-index: 1050; box-sizing: border-box; padding: 5px; border: 1px solid #e2e9f3; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px #203e651a, 0 2px 5px #203e6508; }
.fulfillment-option { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #425570; font: inherit; font-size: 12px; cursor: pointer; }
.fulfillment-option:hover, .fulfillment-option:focus-visible { background: #f0f5ff; color: #3267df; outline: none; }
.fulfillment-option.selected { color: #3267df; background: #edf3ff; font-weight: 500; }
.fulfillment-option svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.listing-workbench .product-filters.shop-filter-bar { display: flex; flex-wrap: wrap; }
.listing-workbench .product-filters > .product-keyword { flex: 1 1 220px; }
.listing-workbench .product-filters > .product-country-field { flex: 0 0 120px; }
.listing-workbench .product-filters > .fulfillment-field { flex-basis: 108px; }
.listing-workbench .product-filters > .listing-date-field { flex-basis: 346px; }
.listing-date-control { display: flex; height: 33px; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.listing-date-control:focus-within { border-color: #97b5ec; box-shadow: 0 0 0 3px #3977e610; }
.listing-date-control button { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; font: inherit; }
.listing-date-control button:hover { background: #f8faff; }
.listing-date-control .listing-date-type { flex: 0 0 97px; border-right: 1px solid #e7ecf4; border-radius: 6px 0 0 6px; }
.listing-date-control .listing-date-range { flex: 1; min-width: 0; border-radius: 0 6px 6px 0; }
.listing-date-control button span { white-space: nowrap; font-size: 12px; font-weight: 400; color: #52647e; }
.listing-date-control .listing-date-range span { font-size: 11px; color: #9aa7ba; }
.listing-date-control .listing-date-range.selected span { color: #3b65ae; }
.listing-date-control svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #91a1b8; stroke-width: 1.25; }
.listing-date-popover { position: fixed; z-index: 1050; box-sizing: border-box; overflow: auto; border: 1px solid #e0e7f2; border-radius: 10px; background: #fff; box-shadow: 0 10px 36px #203e6524, 0 2px 6px #203e6508; color: #425570; font-size: 12px; }
.listing-date-type-menu { padding: 5px; border-radius: 8px; }
.listing-date-calendar-body { display: flex; }
.listing-date-presets { flex: 0 0 102px; padding: 9px 7px; border-right: 1px solid #edf1f6; background: #fbfcfe; }
.listing-date-presets button { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 5px; background: transparent; color: #64748b; text-align: left; cursor: pointer; font: inherit; }
.listing-date-presets button[aria-pressed="true"], .listing-date-presets button:hover, .listing-date-presets button:focus-visible { background: #edf3ff; color: #3267df; }
.listing-date-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; min-width: 0; }
.listing-date-month { min-width: 0; padding: 10px 11px 12px; }
.listing-date-month + .listing-date-month { border-left: 1px solid #f0f3f8; }
.listing-date-month header { display: flex; align-items: center; gap: 1px; height: 33px; margin-bottom: 7px; }
.listing-date-month header strong { flex: 1; text-align: center; font-weight: 600; color: #33435e; font-size: 13px; }
.listing-date-month header button { width: 23px; height: 27px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #94a3b8; font: inherit; font-size: 18px; cursor: pointer; }
.listing-date-month header button:hover { color: #3267df; background: #f0f5ff; }
.listing-date-week, .listing-date-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.listing-date-week { padding: 8px 0; color: #8b99ad; font-size: 11px; }
.listing-date-days { row-gap: 4px; }
.listing-date-days button { height: 33px; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #506079; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.listing-date-days button:disabled { color: #bac3d0; cursor: default; }
.listing-date-days .in-range { border-radius: 0; background: #edf3ff; color: #4075d9; }
.listing-date-days button.today { border-color: #90b0eb; color: #3267df; }
.listing-date-days button:hover:enabled { background: #e4edff; color: #3267df; }
.listing-date-days button.endpoint { border-radius: 5px; background: #3973e6; color: #fff; }
.listing-date-footer { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-top: 1px solid #edf1f6; }
.listing-date-footer > div { margin-right: auto; font-size: 11px; color: #6f829d; }
.listing-date-footer small { display: block; margin-top: 4px; color: #a3afc0; font-size: 10px; }
.listing-date-footer button { padding: 6px 11px; border-radius: 5px; font: inherit; font-size: 11px; cursor: pointer; }
.listing-date-footer button:disabled { opacity: .45; cursor: default; }
.listing-date-popover button:focus-visible { outline: 2px solid #9ab8ed; outline-offset: -2px; }
@media (max-width: 600px) {
    .listing-workbench .product-filters > .product-keyword { flex-basis: 100%; }
    .listing-workbench .product-filters > .product-country-field { flex: 1 1 calc(50% - 5px); }
    .listing-workbench .product-filters > .fulfillment-field { flex: 0 0 108px; margin-right: calc(50% - 113px); }
    .listing-workbench .product-filters > .listing-date-field { flex: 1 1 100%; }
    .listing-date-control .listing-date-type { flex-basis: 87px; }
    .listing-date-control button { padding: 0 6px; gap: 3px; }
    .listing-date-control .listing-date-range.selected span { font-size: 10px; }
    .listing-date-calendar-body { flex-direction: column; }
    .listing-date-presets { display: grid; grid-template-columns: repeat(3, 1fr); flex-basis: auto; padding: 6px; border-right: 0; border-bottom: 1px solid #edf1f6; }
    .listing-date-presets button { text-align: center; padding: 6px; font-size: 11px; }
    .listing-date-months { grid-template-columns: 1fr; }
    .listing-date-month:nth-child(2) { display: none; }
    .listing-date-month { padding: 5px 12px 8px; }
    .listing-date-days button { height: 29px; }
    .listing-date-footer { flex-wrap: wrap; padding: 9px 12px; }
    .listing-date-footer > div { flex: 1 1 100%; }
    .listing-date-footer small { display: inline; margin-left: 8px; font-size: 9px; }
    .listing-date-footer button:first-of-type { margin-left: auto; }
}

.listing-query-group { display: flex; align-items: end; gap: 10px; flex: 1 1 596px; min-width: 0; }
.listing-query-group > .listing-date-field { flex: 0 0 316px; }
.listing-query-group > .listing-keyword-field { flex: 1 1 270px; min-width: 260px; }
.listing-keyword-control { display: flex; align-items: center; height: 33px; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.listing-keyword-control:focus-within { border-color: #93b2eb; box-shadow: 0 0 0 3px #3977e610; }
.listing-keyword-control button { display: flex; align-items: center; justify-content: space-between; gap: 5px; align-self: stretch; padding: 0 8px; border: 0; background: transparent; font: inherit; cursor: pointer; }
.listing-keyword-control button:hover, .listing-keyword-control button[aria-expanded="true"] { background: #f0f5ff; }
.listing-keyword-control .listing-search-mode { flex: 0 0 60px; border-right: 1px solid #e5ecf6; background: #f8faff; }
.listing-keyword-control .listing-search-field { flex: 0 0 84px; border-right: 1px solid #e5ecf6; }
.listing-keyword-control button span { font-size: 11px; font-weight: 400; white-space: nowrap; color: #506887; }
.listing-keyword-control .listing-search-mode span { color: #3971d7; }
.listing-keyword-control svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: #91a1b8; stroke-width: 1.3; }
.listing-workbench .product-filters .listing-keyword-control input { flex: 1; width: 0; min-width: 0; height: 31px; padding: 0 9px; border: 0; border-radius: 0; font-size: 11px; outline: none; box-shadow: none; }
.listing-keyword-control input::placeholder { color: #a3afc0; }
.listing-keyword-control .listing-keyword-submit { flex: 0 0 30px; justify-content: center; padding: 0; }
.listing-keyword-submit svg { width: 16px; height: 16px; stroke: #5279b2; }
@media (max-width: 760px) {
    .listing-query-group { flex: 1 1 100%; flex-direction: column; align-items: stretch; }
    .listing-query-group > .listing-date-field, .listing-query-group > .listing-keyword-field { flex: none; min-width: 0; width: 100%; }
}

.listing-workbench .product-filters .product-country-label { display: none; }

.listing-workbench .product-filters.listing-main-filters { align-items: center; gap: 10px; padding: 12px 16px; }
.listing-main-filters > .listing-asin-switch { align-self: center; margin: 0; }
.listing-main-filters .listing-asin-switch button { padding: 5px 9px; white-space: nowrap; }
.listing-workbench .listing-main-filters > .product-country-field { flex: 0 1 110px; }
.listing-main-filters > .listing-query-group { flex: 1 1 596px; }
.listing-main-filters > .product-filter-actions { flex-shrink: 0; align-items: center; padding: 0; }
.listing-more-trigger { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.listing-more-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.listing-more-trigger.open svg { transform: rotate(180deg); }
.listing-more-trigger.selected, .listing-more-trigger.open { color: #3971d7; border-color: #abc4ed; background: #f5f8ff; }
.listing-more-popover { height: auto; border-radius: 5px; color: #303641; }
.listing-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px 16px 22px; overflow-y: auto; }
.listing-more-field { display: grid; gap: 6px; min-width: 0; font-size: 13px; }
.listing-more-select { position: relative; display: block; }
.listing-more-select select { appearance: none; width: 100%; height: 35px; padding: 0 28px 0 10px; border: 1px solid #e0e4eb; border-radius: 4px; background: #fff; color: #303641; font: inherit; outline: none; }
.listing-more-select select:focus-visible { border-color: #477aff; box-shadow: 0 0 0 2px #477aff18; }
.listing-more-select select:disabled { background: #fafbfc; color: #a6aebd; cursor: not-allowed; }
.listing-more-error { margin: 0; padding: 0 16px 12px; color: #c44141; }
.listing-more-error button { margin-left: 8px; border: 0; background: none; color: #316bff; cursor: pointer; }
.listing-more-select svg { position: absolute; right: 10px; top: 11px; width: 13px; height: 13px; fill: none; stroke: #a6aebd; stroke-width: 2; pointer-events: none; }
.listing-more-footer { justify-content: flex-end; flex-shrink: 0; padding: 8px 6px; border-top-color: #e2e5ea; }
.listing-more-footer button { min-width: 54px; height: 32px; padding: 0 12px; font-size: 12px; }
.listing-more-footer .country-picker-confirm { border: 1px solid #316bff; background: #fff; color: #316bff; }
.listing-more-footer .country-picker-confirm:hover { background: #f0f5ff; }
@media (max-width: 760px) {
    .listing-main-filters > .listing-asin-switch { flex-basis: 100%; width: fit-content; flex-grow: 0; }
    .listing-workbench .listing-main-filters > .product-country-field { flex: 1 1 calc(50% - 5px); }
    .listing-main-filters > .listing-query-group { flex-basis: 100%; }
    .listing-main-filters > .product-filter-actions { flex-wrap: wrap; }
    .listing-more-grid { gap: 16px 12px; padding: 16px 12px 20px; }
}

.filter-clear-wrap, .listing-date-control { position: relative; min-width: 0; }
.filter-clear-wrap.has-value .country-picker-trigger { padding-right: 31px; }
.filter-clear-wrap.has-value .country-picker-trigger > svg { display: none; }
.product-filter-clear { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9aa9bf; cursor: pointer; transition: background .15s, color .15s; }
.filter-clear-wrap > .product-filter-clear, .listing-date-control > .product-filter-clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); padding: 0; }
.product-filter-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.product-filter-clear:hover { color: #4277d3; background: #e8f0ff; }
.product-filter-clear:disabled { cursor: default; opacity: .4; }
.listing-date-control.has-value .listing-date-range { padding-right: 29px; }
.listing-date-control.has-value .listing-date-range > svg { display: none; }
.listing-keyword-control .keyword-clear { flex: 0 0 22px; align-self: center; height: 22px; padding: 0; justify-content: center; }
.listing-keyword-control .keyword-clear svg { stroke: currentColor; }

.order-section-heading { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 20px; border-bottom: 1px solid #e7edf6; }
.order-section-heading h1 { display: flex; align-items: center; height: 100%; margin: 0; border-bottom: 2px solid #3973e6; color: #3267df; font-size: 12px; font-weight: 500; }
.order-section-heading > span { color: #a0adbf; font-size: 11px; }
.order-status-field .has-value select { appearance: none; padding-right: 30px; }
.order-table .order-number { min-width: 170px; }
.order-number > button, .order-more { padding: 0; border: 0; background: transparent; color: #3575df; font: inherit; cursor: pointer; }
.order-number > button:hover { text-decoration: underline; }
.order-channel { display: inline-block; padding: 1px 6px; border: 1px solid #dce5f2; border-radius: 4px; color: #7185a0; background: #f8faff; font-size: 10px; }
.order-channel.amazon { color: #329876; background: #f0faf5; border-color: #cce8da; }
.order-table .order-products { min-width: 370px; max-width: 440px; }
.order-config-table td.order-column-text { white-space:normal; overflow-wrap:anywhere; }
.order-column-local+.order-column-local { margin-top:8px; }
.order-column-local small { display:block; color:#8b99ad; margin-top:3px; }
.order-review-popover { display:flex; flex-direction:column; overflow:hidden; }
.order-review-panes { display:grid; grid-template-columns:1fr 1fr; min-height:245px; overflow:auto; }
.order-review-options { padding:5px 0; min-width:0; }
.order-review-options label,.order-review-error-group { display:flex; align-items:center; gap:10px; min-height:35px; padding:5px 12px; color:#344054; font-size:13px; cursor:pointer; }
.order-review-options label:hover,.order-review-options label.selected,.order-review-error-group.active { background:#f0f5ff; color:#1677ff; }
.order-review-options input { width:15px; height:15px; margin:0; flex-shrink:0; accent-color:#1677ff; }
.order-review-error-group button { display:flex; align-items:center; justify-content:space-between; flex:1; border:0; background:transparent; color:inherit; font:inherit; padding:0; cursor:pointer; }
.order-review-error-group button span { font-size:22px; line-height:20px; }
.order-review-details { border-left:1px solid #e4e9f1; }
.order-review-details p { padding:12px; color:#8b99ad; font-size:12px; line-height:1.8; margin:0; }
.order-review-popover .country-picker-footer { flex-shrink:0; }
.order-column-detail-link { border:0; background:none; color:#2869db; font:inherit; padding:0; cursor:pointer; }
.order-product { display: flex; align-items: center; gap: 9px; padding: 3px 0; }
.order-product + .order-product { margin-top: 7px; padding-top: 9px; border-top: 1px dashed #eaf0f7; }
.order-product img, .order-image-placeholder { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; border: 1px solid #edf1f6; border-radius: 6px; background: #f8fafd; }
.order-image-placeholder svg { width: 24px; height: 24px; stroke: #9bb1cf; fill: none; stroke-width: 1; }
.order-product > div { flex: 1; min-width: 0; }
.order-product strong { display: block; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: #345373; }
.order-product small { display: flex; gap: 10px; font-size: 10px; }
.order-product small span { max-width: 175px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-product .order-asin-link, .order-detail .order-asin-link { color: #2869db; text-decoration: none; }
.order-asin-link:hover, .order-asin-link:focus-visible { text-decoration: underline; }
.order-product b { font-weight: 500; font-size: 11px; color: #7e91aa; }
.order-more { margin-top: 6px; font-size: 10px; }
.order-no-items { font-size: 11px; color: #a2aec0; }
.order-table .order-total { color: #304c6e; font-weight: 500; white-space: nowrap; }
.order-detail-dialog { width:min(1680px, calc(100vw - 48px)); max-width:none; max-height:calc(100dvh - 48px); padding:0; border:1px solid #ffffff80; border-radius:8px; color:var(--text); background:#fff; box-shadow:0 32px 100px #14233d40; overflow:hidden; }
.order-detail-dialog::backdrop { background:rgba(24,36,56,.5); backdrop-filter:blur(3px); }
.order-detail { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); background:#fff; font-size:13px; text-align:left; }
.order-detail header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; padding:12px 20px; border-bottom:1px solid #e8edf4; }
.order-detail-heading-main { display:flex; align-items:center; gap:14px; min-width:0; }
.order-detail-icon { display:grid; place-items:center; width:46px; height:46px; flex-shrink:0; border:1px solid #dde7fb; border-radius:13px; background:#edf3ff; color:#4169be; }
.order-detail-icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.order-detail header h3 { margin:0; color:#23334e; font-size:16px; font-weight:650; }
.order-detail-id { margin:0 6px 0 0; color:#23334e; font-size:18px; font-weight:650; letter-spacing:.2px; overflow-wrap:anywhere; }
.order-detail-close { display:grid; place-items:center; flex-shrink:0; width:34px; height:34px; border:1px solid #e8edf4; border-radius:10px; background:#fff; color:#7b899d; cursor:pointer; }
.order-detail-close svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.order-detail-close:hover { background:#e2e8f0; }
.order-detail-close:focus-visible { outline:2px solid #3973e6; outline-offset:2px; }
.order-detail-body { padding:16px; overflow-y:auto; min-height:0; overscroll-behavior:contain; background:#f1f4f8; scrollbar-width:thin; scrollbar-color:#c9d3e2 transparent; }
.order-detail-overview { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; padding:0 4px; }
.order-overview-identity { min-width:0; }
.order-detail-note { display:flex; gap:18px; align-items:baseline; padding:12px 18px; margin-bottom:14px; background:#fff; border:1px solid #e5eaf3; border-radius:6px; font-size:12px; }
.order-detail-note>span { color:#b67a20; flex-shrink:0; }
.order-detail-note p { margin:0; color:#61748d; overflow-wrap:anywhere; white-space:pre-wrap; }
.order-note-edit { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:26px; height:26px; padding:4px; border:0; border-radius:4px; background:transparent; color:#7f95b0; cursor:pointer; }
.order-note-edit svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.order-note-edit:hover { color:#2869db; background:#edf3ff; }
.order-note-edit:focus-visible { outline:2px solid #3973e6; }
.order-note-form { flex:1; min-width:0; }
.order-note-form textarea { display:block; box-sizing:border-box; width:100%; min-height:80px; resize:vertical; border:1px solid #dce4ef; border-radius:5px; padding:9px 12px; color:#344660; background:#fff; font:inherit; line-height:1.7; }
.order-note-form textarea:focus { outline:2px solid #3973e630; border-color:#7eabfa; }
.order-note-form textarea:disabled { background:#f7f9fc; }
.order-note-form .order-note-error { color:#bc4f43; margin-top:8px; }
.order-note-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:8px; }
.order-note-actions small { margin-right:auto; color:#98a3b3; }
.order-note-actions button { border:1px solid #dce4ef; border-radius:5px; background:#fff; color:#61748d; padding:6px 12px; font:inherit; cursor:pointer; }
.order-note-actions button.primary { background:#2869db; color:#fff; border-color:#2869db; }
.order-note-actions button:disabled { opacity:.55; cursor:not-allowed; }
.order-detail-info { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:14px; margin-bottom:14px; }
.order-detail-info.is-mcf { grid-template-columns:minmax(0,1fr); }
.order-overview-badges { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.order-detail-status,.order-detail-badge { display:inline-flex; align-items:center; gap:6px; min-height:25px; padding:3px 9px; border-radius:6px; background:#f0f3f8; color:#63738b; font-size:11px; font-weight:500; }
.order-detail-status { color:#97721c; background:#fff7e4; }
.order-detail-status i { width:5px; height:5px; border-radius:50%; background:currentColor; }
.order-detail-status.is-shipped { color:#238268; background:#e9f7f1; }
.order-detail-status.is-cancelled { color:#858c97; background:#f0f1f4; }
.order-detail-badge.is-promo { color:#5a63b8; background:#f0effd; }
.order-detail-badge.is-refund { color:#b77444; background:#fff1e8; }
.order-overview-identity p { margin:12px 0 0; color:#586a83; font-size:12px; overflow-wrap:anywhere; }
.order-overview-separator { padding:0 10px; color:#c6cfdc; }
.order-overview-amount { flex-shrink:0; text-align:right; }
.order-overview-amount>span { display:block; color:#8491a4; font-size:11px; margin-bottom:5px; }
.order-overview-amount strong { color:#253954; font-size:20px; font-weight:650; font-variant-numeric:tabular-nums; }
.order-detail-main { min-width:0; border:1px solid #e5eaf3; border-radius:6px; background:#fff; overflow:hidden; }
.order-detail-tabs { display:flex; gap:24px; padding:0 20px; border-bottom:1px solid #e5eaf3; background:#fff; }
.order-detail-tabs [role=tab] { border:0; border-bottom:3px solid transparent; padding:15px 2px 12px; background:transparent; color:#697b93; font:inherit; font-weight:500; cursor:pointer; }
.order-detail-tabs [role=tab]:hover { color:#2869db; background:#f5f8ff; }
.order-detail-tabs [aria-selected=true] { color:#2869db; border-bottom-color:#2869db; }
.order-detail-tabs [role=tab]:focus-visible { outline:2px solid #3973e6; outline-offset:1px; }
.order-detail-panel,.order-detail .order-recipient,.order-detail .order-business { border:1px solid #e5eaf3; border-radius:6px; background:#fff; overflow:hidden; }
.order-detail-main>.order-detail-panel,.order-detail-main>.order-business { border:0; border-radius:0; }
.order-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px; }
.order-panel-heading h4 { margin:0; font-size:13px; color:#344660; }
.order-panel-heading h4 span { display:inline-block; margin-left:5px; padding:2px 6px; border-radius:5px; background:#f1f4f9; color:#8290a3; font-size:10px; font-weight:500; }
.order-panel-heading>small { color:#98a3b3; font-size:10px; }
.order-detail .order-recipient { margin:0; padding:18px; }
.order-detail .order-recipient h4,.order-metadata h4 { margin:0 0 16px; padding-left:10px; border-left:3px solid #4381f8; color:#344660; font-size:13px; }
.order-detail .order-recipient p { color:#5e7088; font-size:12px; line-height:1.8; }
.order-detail .order-recipient .order-recipient-note { color:#92a0b2; font-size:11px; }
.order-metadata { padding:18px; }
.order-metadata dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; margin:0; }
.order-metadata dl>div { display:grid; grid-template-columns:80px minmax(0,1fr); gap:4px; align-items:baseline; }
.order-metadata dt { color:#8191a6; font-size:12px; }
.order-metadata dd { margin:0; color:#566982; font-size:12px; line-height:1.6; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.order-detail .order-business { padding:0 20px 16px; }
.order-business>.order-panel-heading { padding:18px 0; }
.order-business>.order-panel-heading h4 { margin:0; }
.order-detail-empty { padding:24px 16px 30px; margin:0; text-align:center; color:#929fb1; font-size:12px; }
.order-detail-product { display:flex; align-items:flex-start; gap:10px; min-width:220px; max-width:310px; }
.order-detail-product>img,.order-detail-product-placeholder { width:40px; height:46px; object-fit:contain; flex-shrink:0; border:1px solid #edf0f6; border-radius:7px; background:#f8fafd; }
.order-detail-product-placeholder { display:grid; place-items:center; color:#b1bed0; }
.order-detail-product-placeholder svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linejoin:round; }
.order-detail-product strong { display:block; font-size:12px; font-weight:500; line-height:1.65; overflow-wrap:anywhere; }
.order-detail-product small span { color:#546d8b; overflow-wrap:anywhere; }
.order-detail-pairing { min-width:170px; max-width:250px; overflow-wrap:anywhere; }
.order-detail-pairing strong { color:#3f5571; font-weight:500; }
.order-detail-pairing>div+div { margin-top:8px; }
.order-detail-sales { min-width:120px; }
.order-detail-sales p { display:flex; gap:12px; justify-content:space-between; margin:0 0 5px; }
.order-detail-sales b { padding:0 8px; border-radius:4px; background:#eaf3ff; color:#2869db; font-weight:500; }
.order-detail-money { white-space:nowrap; min-width:110px; }
.order-detail-muted { color:#98a3b3; }
.order-products-total { display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; padding:16px 20px; border-top:1px solid #e8edf4; color:#8191a6; font-size:12px; }
.order-products-total>div { display:flex; flex-wrap:wrap; gap:14px 28px; }
.order-products-total strong { margin-left:8px; color:#2869db; font-size:14px; font-weight:500; }
.order-detail .order-business-card { padding:16px; border-color:#e8edf5; background:#f6f8fc; border-radius:10px; }
.order-detail .order-business-card.is-net { background:#f1f9f6; border-color:#e0eee8; }
.order-detail .order-business-card.is-profit { background:#f2f6ff; border-color:#e3eafa; }
.order-detail .order-business-card.is-pending { background:#f7f8fb; border-color:#e9edf4; }
.order-detail .order-business-card>small { color:#718299; font-size:11px; }
.order-detail .order-business-card>strong { margin:10px 0 12px; color:#2b405f; font-size:25px; font-weight:600; font-variant-numeric:tabular-nums; }
.order-detail .order-business-card.is-net>strong { color:#26735e; }
.order-detail .order-business-card p { font-size:12px; color:#7b8a9f; }
.order-detail .order-business-cards { margin-bottom:18px; }
.order-detail .order-business-section { padding:0; border:1px solid #e8edf4; border-radius:9px; margin-top:10px; overflow:hidden; }
.order-detail .order-business-section summary { display:flex; align-items:center; gap:10px; padding:13px 14px; list-style:none; font-size:12px; font-weight:550; color:#536781; background:#fff; }
.order-detail .order-business-section summary::-webkit-details-marker { display:none; }
.order-detail .order-business-section summary::after { content:''; width:6px; height:6px; margin-left:auto; border-right:1.5px solid #8c9ab0; border-bottom:1.5px solid #8c9ab0; transform:rotate(-45deg); transition:transform .15s; }
.order-detail .order-business-section[open]>summary { background:#f8fafd; border-bottom:1px solid #edf1f6; }
.order-detail .order-business-section[open]>summary::after { transform:rotate(45deg); }
.order-detail .order-business-section summary em { padding:2px 6px; border-radius:4px; font-size:10px; font-style:normal; font-weight:400; color:#8a99ae; background:#edf1f7; }
.order-detail .order-business-event { margin:0 14px; padding:14px 0; border-bottom:1px solid #edf1f6; font-size:12px; }
.order-detail .order-business-event:last-child { border-bottom:0; }
.order-detail .order-business-event>strong { color:#415775; font-size:12px; font-weight:550; }
.order-detail .order-business-event p,.order-detail .order-business-section>p { color:#798aa1; font-size:12px; line-height:1.8; }
.order-detail .order-business-section>p { margin:12px 14px; }
.order-detail .order-business-event small { color:#8d9bb0; font-size:10px; }
.order-calculation-note { margin-top:16px; color:#92a0b3; font-size:11px; line-height:1.8; }
.order-calculation-note summary { cursor:pointer; }
.order-amount-line { display:flex; justify-content:space-between; gap:14px; margin:10px 14px; color:#647791; font-size:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-amount-line strong { white-space:nowrap; font-weight:500; }
.order-amount-line.is-child { margin-left:26px; font-size:11px; color:#8b99ac; }
.order-more-region { border-top:1px solid #e5ebf4; }
.order-more-region h4 { margin:14px 16px 0; color:#627591; font-size:12px; }
.order-more-grid input { min-width:0; width:100%; height:32px; border:1px solid #dce4ef; border-radius:5px; padding:0 8px; font:inherit; font-size:12px; color:#50637e; background:#fff; }
.order-more-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.order-more-body .order-more-grid { overflow:visible; }
.order-more-footer { position:sticky; bottom:0; background:#fff; }
.order-items-scroll { overflow-x:auto; }
.order-items-scroll .order-items-table { min-width:640px; }
.order-recipient { margin-bottom: 14px; padding: 12px 14px; background: #f8faff; border-radius: 6px; overflow-wrap: anywhere; }
.order-recipient h4 { margin: 0 0 8px; font-size: 12px; color: #334155; }
.order-recipient p { margin: 4px 0; font-size: 12px; line-height: 1.6; }
.order-recipient .order-recipient-note { color: #64748b; font-size: 11px; }
.order-business { padding:16px; border-top:1px solid #e5e7eb; background:#fff; color:#334155; }
.order-business h4,.order-analysis-panel h4 { margin:0 0 12px; font-size:14px; }
.order-business p,.order-analysis-panel p { margin:6px 0; line-height:1.6; overflow-wrap:anywhere; }
.order-business-cards { display:flex; flex-wrap:wrap; gap:12px; }
.order-business-card { flex:1 1 230px; min-width:0; border:1px solid #e2e8f0; border-radius:8px; padding:14px; background:#f8fafc; }
.order-business-card>strong { display:block; margin:8px 0; font-size:20px; color:#0f172a; }
.order-business-note { color:#64748b; font-size:12px; }
.order-finance-summary { display:grid; grid-template-columns:1.2fr repeat(3,1fr); border:1px solid #e5ebf3; border-radius:7px; background:#f9fbfe; margin-bottom:10px; }
.order-finance-summary>div { min-width:0; padding:16px 20px; }
.order-finance-summary>div+div { border-left:1px solid #e5ebf3; }
.order-finance-summary span { display:block; color:#7c8ca3; font-size:12px; }
.order-finance-summary strong { display:block; margin-top:9px; color:#344b67; font-size:20px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.order-finance-summary .is-net { background:#eff6ff; border-radius:7px 0 0 7px; }
.order-finance-summary .is-net strong { color:#2869db; }
.order-profit-summary { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; padding:4px 2px 18px; color:#7c8ca3; font-size:12px; }
.order-profit-summary>strong { color:#344b67; font-size:15px; font-weight:600; }
.order-profit-reasons { color:#94a0b2; }
.order-transactions { border:1px solid #e5ebf3; border-radius:7px; overflow:hidden; }
.order-transactions-heading { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:8px; padding:14px 16px; }
.order-transactions-heading h4 { margin:0; color:#344660; font-size:13px; }
.order-transactions-heading h4 span { margin-left:8px; color:#91a0b4; font-size:11px; font-weight:400; }
.order-transactions-heading>small { color:#91a0b4; font-size:11px; }
.order-transactions-scroll { overflow-x:auto; }
.order-transactions-table { width:100%; min-width:760px; border-collapse:collapse; font-size:12px; }
.order-transactions-table th { padding:11px 16px; background:#f5f8fc; color:#7b8ba2; font-size:11px; font-weight:500; text-align:left; border-top:1px solid #eaf0f7; }
.order-transactions-table td { padding:14px 16px; border-top:1px solid #eaf0f7; color:#536982; vertical-align:top; font-variant-numeric:tabular-nums; }
.order-transactions-table .is-amount { text-align:right; white-space:nowrap; color:#344b67; }
.order-transactions-table tr.is-expanded>td { background:#f8faff; }
.order-transaction-type { white-space:nowrap; color:#3065b0; }
.order-transaction-type.is-refund { color:#ad693a; }
.order-transaction-status { display:inline-block; padding:2px 7px; border-radius:4px; background:#f0f4f9; color:#6c809b; white-space:nowrap; font-size:11px; }
.order-transaction-reference { display:block; margin-top:6px; color:#99a5b6; font-size:10px; }
.order-transaction-id { max-width:240px; overflow-wrap:anywhere; }
.order-transaction-toggle { display:flex; align-items:center; gap:10px; border:0; border-radius:3px; background:transparent; color:#2869db; padding:3px 0; font:inherit; cursor:pointer; white-space:nowrap; }
.order-transaction-toggle:focus-visible { outline:2px solid #3973e6; outline-offset:3px; }
.order-transactions-table .order-transaction-detail-row>td { padding:16px; background:#fafcff; }
.order-transaction-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 28px; }
.order-transaction-details>.order-business-note { grid-column:1/-1; }
.order-transaction-details h5 { margin:0 0 10px; color:#627896; font-size:12px; font-weight:500; }
.order-fee-list { margin:0; font-size:12px; }
.order-fee-list>div { display:flex; justify-content:space-between; gap:20px; padding:7px 0; border-bottom:1px solid #eaf0f7; }
.order-fee-list dt { color:#7f8fa6; overflow-wrap:anywhere; }
.order-fee-list dd { margin:0; color:#3f5571; flex-shrink:0; font-variant-numeric:tabular-nums; }
.order-transaction-product { color:#6b809a; font-size:11px; }
.order-business .order-transactions-empty { padding:28px 16px; margin:0; text-align:center; color:#8b9bb1; font-size:12px; border-top:1px solid #eaf0f7; }
.order-supporting-heading { display:flex; align-items:baseline; gap:12px; padding:22px 0 12px; }
.order-supporting-heading h4 { margin:0; color:#62738b; font-size:13px; }
.order-supporting-heading>span { color:#9aa6b7; font-size:11px; }
.order-supporting-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.order-supporting-group { min-width:0; border:1px solid #e5ebf3; border-radius:7px; overflow:hidden; }
.order-supporting-group>h5 { margin:0; padding:12px 14px; background:#f8fafd; font-size:12px; font-weight:500; color:#697e99; }
.order-detail .order-supporting-group>.order-business-section { margin:0; border:0; border-top:1px solid #eaf0f7; border-radius:0; }
.order-detail .order-supporting-group>.order-business-section>summary { padding:12px 14px; font-weight:400; }
@media (max-width:1000px) { .order-supporting-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:600px) {
    .order-finance-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .order-finance-summary>div { padding:12px; }
    .order-finance-summary>div:nth-child(3) { border-left:0; }
    .order-finance-summary>div:nth-child(n+3) { border-top:1px solid #e5ebf3; }
    .order-finance-summary strong { font-size:16px; }
    .order-profit-reasons { flex-basis:100%; }
    .order-transactions-heading>small { flex-basis:100%; }
}
.order-business-section { border-top:1px solid #e2e8f0; padding:12px 0; }
.order-business-section summary { cursor:pointer; font-weight:600; }
.order-business-event { padding:10px 0; border-bottom:1px dashed #e2e8f0; overflow-wrap:anywhere; }
.mcf-detail { padding:16px; overflow-wrap:anywhere; min-width:0; }
.mcf-detail>h4 { margin:0 0 12px; }
.mcf-detail p { color:#63748b; font-size:12px; line-height:1.8; }
.mcf-detail .order-business-event { margin:0 8px; }
.mcf-detail a { color:#246bd1; margin-right:12px; }
.mcf-detail button { background:#eef4ff; color:#246bd1; border:1px solid #dbe6fa; border-radius:6px; padding:6px 10px; cursor:pointer; }
.mcf-detail button:disabled { opacity:.6; cursor:wait; }
.mcf-create-dialog { width:min(1320px,calc(100vw - 24px)); }
.mcf-shop-field { display:flex; flex-direction:column; gap:7px; color:#536784; font-size:12px; min-width:0; }
.mcf-shop-field .country-picker-trigger { height:36px; }
.mcf-shop-field .country-picker-trigger>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mcf-shop-picker { margin:0; padding:0; right:auto; bottom:auto; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }
.mcf-shop-picker::backdrop { background:transparent; }
.mcf-shop-picker-caption { display:flex; gap:10px; padding:10px 14px; border-bottom:1px solid #edf1f6; color:#8b9bb1; font-size:11px; }
.mcf-shop-picker-caption>span { margin-left:auto; white-space:nowrap; }
.mcf-shop-picker input[type=radio] { width:13px; height:13px; margin:0; accent-color:#3671e8; }
.mcf-shop-picker .country-picker-confirm:disabled { opacity:.5; cursor:default; }
.mcf-create-product { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.mcf-create-product img,.mcf-order-image-placeholder { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.mcf-create-product>div { min-width:0; }
.mcf-create-product strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:20px; color:#18263c; font-size:13px; }
.mcf-order-image-placeholder { display:grid; place-items:center; background:#f6f8fb; color:#a2adbb; border-radius:3px; }
.mcf-order-product-identifiers { display:flex; flex-wrap:wrap; column-gap:12px; margin-top:3px; font-size:12px; line-height:19px; overflow-wrap:anywhere; }
.mcf-order-meta-label { color:#9aa4b3; }
.mcf-order-asin { color:#2563eb; }
.mcf-order-products-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.mcf-order-products-actions .mini-button { background:#fff; border:1px solid #cbd7e7; color:#253858; border-radius:3px; }
.mcf-order-products-scroll { max-width:100%; overflow-x:auto; border-radius:4px; }
.mcf-order-products-table { width:100%; min-width:1040px; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.mcf-order-products-table th { background:#f2f5fa; font-weight:600; color:#18263c; text-align:left; white-space:nowrap; }
.mcf-order-products-table th,.mcf-order-products-table td { padding:10px 12px; border-bottom:1px solid #e3e8f0; vertical-align:top; }
.mcf-order-info-col { width:46%; }
.mcf-order-local-col { width:16%; }
.mcf-order-stock-col { width:7%; }
.mcf-order-quantity-col { width:10%; }
.mcf-order-action-col { width:7%; }
.mcf-order-products-table .mcf-order-stock,.mcf-order-products-table th:nth-child(n+3):nth-child(-n+5) { text-align:right; font-variant-numeric:tabular-nums; }
.mcf-order-products-table th:last-child,.mcf-order-products-table td:last-child { text-align:center; }
.mcf-order-local-sku { display:block; color:#8b96a6; overflow-wrap:anywhere; line-height:20px; }
.mcf-order-local-product+.mcf-order-local-product { margin-top:6px; }
.mcf-order-remove { border:0; background:transparent; padding:2px 0; color:#2563eb; cursor:pointer; font:inherit; }
.mcf-order-remove:disabled { opacity:.5; cursor:default; }
.mcf-order-products-table .mcf-order-products-empty { text-align:center; color:#8b96a6; padding:28px 12px; }
.mcf-products-dialog { width:min(1160px,calc(100vw - 24px)); padding:0; }
.mcf-products-shell { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); min-height:min(640px,calc(100dvh - 48px)); }
.mcf-products-search { display:flex; align-items:center; gap:10px; padding:22px 20px 14px; flex-wrap:wrap; }
.mcf-products-search select,.mcf-products-search input,.mcf-products-pagination select { border:1px solid #d6deeb; background:#fff; border-radius:4px; height:34px; padding:0 10px; color:#334155; min-width:0; font:inherit; font-size:13px; }
.mcf-products-query { display:flex; gap:8px; flex:1; max-width:500px; min-width:240px; }
.mcf-products-query input { flex:1; }
.mcf-products-note { color:#8b96a6; font-size:12px; }
.mcf-products-search>.mcf-products-note { margin-left:auto; }
.mcf-products-table { overflow:auto; margin:0 20px; border:1px solid #e1e6ef; flex:1; min-height:160px; }
.mcf-products-table table { width:100%; min-width:1020px; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:13px; }
.mcf-products-table th { position:sticky; top:0; z-index:1; background:#f8fafc; color:#26334a; font-weight:600; text-align:left; height:38px; }
.mcf-products-table td,.mcf-products-table th { padding:8px; border-bottom:1px solid #e5e9f0; vertical-align:middle; }
.mcf-products-table tbody tr:hover { background:#f7faff; }
.mcf-products-table tr.is-selected { background:#eff5ff; }
.mcf-products-table tr.is-added { color:#8b96a6; }
.mcf-products-table input[type=checkbox] { width:15px; height:15px; accent-color:#2563eb; cursor:pointer; }
.mcf-products-table img { width:42px; height:42px; object-fit:contain; display:block; }
.mcf-products-check { width:32px; }
.mcf-products-image { width:58px; }
.mcf-products-title { width:24%; }
.mcf-products-asin { width:112px; }
.mcf-products-stock { width:76px; }
.mcf-products-sort-stock { width:96px; }
.mcf-products-sort-stock[aria-sort=ascending] .listing-stock-sort,.mcf-products-sort-stock[aria-sort=descending] .listing-stock-sort,.mcf-products-sort-stock[aria-sort=ascending] .listing-stock-sort span,.mcf-products-sort-stock[aria-sort=descending] .listing-stock-sort span { color:#3978e8; }
.mcf-products-sort-stock .listing-stock-sort:disabled { opacity:.6; cursor:wait; }
.mcf-products-number { text-align:right; font-variant-numeric:tabular-nums; }
.mcf-products-line { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:21px; }
.mcf-products-clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:21px; overflow-wrap:anywhere; }
.mcf-products-table td.mcf-products-empty { text-align:center; padding:70px 16px; color:#8b96a6; }
.mcf-products-pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; padding:10px 20px 16px; font-size:13px; }
.mcf-products-message { margin:0 20px 12px; }
.mcf-products-selection { margin-right:auto; color:#64748b; font-size:13px; }
.mcf-products-confirm { background:#2563eb; color:white; border-color:#2563eb; }
@media(max-width:600px) { .mcf-products-search { padding:14px 12px; } .mcf-products-query { flex-basis:100%; order:2; max-width:none; min-width:0; } .mcf-products-search>.mcf-products-note { font-size:11px; } .mcf-products-table { margin:0 12px; } .mcf-products-pagination { padding:10px 12px; gap:8px; } .mcf-products-dialog .mcf-create-footer { flex-wrap:wrap; gap:10px; } .mcf-products-selection { flex-basis:100%; } }
.mcf-create-form { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); }
.mcf-create-content { padding:18px 24px; overflow:auto; }
.mcf-create-form fieldset { border:1px solid #e1e8f2; border-radius:10px; margin:0 0 18px; padding:16px; min-width:0; }
.mcf-create-form legend { font-size:13px; font-weight:600; color:#344d71; padding:0 6px; }
.mcf-create-form .mcf-order-products { border:0; padding:10px 0 0; }
.mcf-order-products legend { border-left:3px solid #4d86ff; padding-left:10px; color:#18263c; }
.mcf-create-form .mcf-order-products-table input { padding:7px 8px; border-radius:3px; }
.mcf-create-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mcf-create-form label { display:flex; flex-direction:column; gap:7px; color:#536784; font-size:12px; min-width:0; }
.mcf-create-form input,.mcf-create-form select { width:100%; min-width:0; box-sizing:border-box; border:1px solid #d9e2ef; border-radius:6px; padding:9px; background:#fff; font:inherit; color:#253858; }
.mcf-create-wide { grid-column:1/-1; }
.mcf-create-footer { display:flex; justify-content:flex-end; gap:12px; padding:14px 24px; border-top:1px solid #e6ecf4; }
.mcf-create-footer button[type=submit] { background:#2866d5; color:#fff; }
.mcf-create-error { color:#b33e43; font-size:13px; }
.mcf-create-success { color:#167443; font-size:13px; }
@media(max-width:600px) { .mcf-create-grid { grid-template-columns:1fr; } .mcf-create-content { padding:14px 12px; } }
.order-business-item { margin:8px 0 8px 12px; padding-left:10px; border-left:2px solid #e2e8f0; }
.order-analysis-panel { min-width:0; max-width:100%; margin:12px 0; padding:16px; background:#fff; border:1px solid #e2e8f0; border-radius:10px; }
.order-analysis-panel header,.order-analysis-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.order-analysis-controls { justify-content:flex-start; flex-wrap:wrap; }
.order-analysis-scroll { overflow-x:auto; }
.order-analysis-panel table { width:100%; border-collapse:collapse; }
.order-analysis-panel th,.order-analysis-panel td { padding:10px; text-align:left; border-bottom:1px solid #e2e8f0; white-space:nowrap; }
.order-analysis-panel td small { display:block; }
.order-analysis-dialog { width:min(1240px,calc(100vw - 48px)); }
.order-analysis-shell { display:flex; flex-direction:column; max-height:calc(100dvh - 50px); }
.order-analysis-heading { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; padding:20px 26px; border-bottom:1px solid #e6edf6; }
.order-analysis-heading h4 { margin:0; font-size:17px; color:#243955; }
.order-analysis-content.order-analysis-panel { overflow-y:auto; overscroll-behavior:contain; margin:0; border:0; border-radius:0; padding:22px 26px; min-height:0; background:#f7f9fc; }
.order-analysis-controls label { display:flex; align-items:center; gap:10px; color:#5a6c83; font-size:12px; }
.order-analysis-controls select { padding:8px 30px 8px 10px; border:1px solid #d9e3f0; border-radius:7px; color:#344b6b; background:#fff; }
.order-analysis-status { padding:60px 20px; text-align:center; color:#71839d; }
.order-region-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:18px 0; }
.order-region-metrics>div { padding:16px 20px; border:1px solid #e1e8f2; border-radius:12px; background:#fff; }
.order-region-metrics span { display:block; font-size:12px; color:#7b8ba0; }
.order-region-metrics strong { display:block; margin-top:7px; font-size:26px; color:#284b77; font-variant-numeric:tabular-nums; }
.order-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; border:1px solid #dce6f2; border-radius:14px; overflow:hidden; background:#fff; }
.order-map-canvas { position:relative; min-width:0; background:#edf4fb; }
.order-map-caption { position:absolute; top:18px; left:18px; z-index:1; pointer-events:none; }
.order-map-caption strong { display:block; font-size:13px; color:#405e7d; }
.order-map-caption span { display:block; margin-top:5px; font-size:11px; color:#7d91a7; }
.order-map-controls { position:absolute; right:14px; top:14px; display:flex; gap:4px; z-index:1; }
.order-map-controls button { height:29px; min-width:29px; border:1px solid #d7e2ee; border-radius:6px; background:#ffffffed; color:#3f638b; cursor:pointer; }
.order-region-map { display:block; width:100%; height:390px; touch-action:none; cursor:grab; }
.order-region-map:active { cursor:grabbing; }
.order-map-land { fill:#d4e1ed; stroke:#fff; stroke-width:.6; vector-effect:non-scaling-stroke; }
.order-map-marker { cursor:pointer; outline:none; }
.order-map-marker circle { fill:#3b82d4; fill-opacity:.6; stroke:#fff; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.order-map-marker .order-map-core { fill:#fff; stroke:none; fill-opacity:1; pointer-events:none; }
.order-map-marker:hover circle,.order-map-marker:focus circle,.order-map-marker.is-selected circle { fill:#1751a0; fill-opacity:.95; stroke:#183e74; stroke-width:2; }
.order-map-marker.is-selected .order-map-core { fill:#fff; stroke:none; }
.order-map-credit { position:absolute; bottom:8px; left:12px; color:#7d91a7; font-size:10px; pointer-events:none; }
.order-map-inspector { padding:22px 20px; min-width:0; border-left:1px solid #e1e9f3; }
.order-map-eyebrow { font-size:11px; color:#8394a9; }
.order-map-inspector h4 { margin:12px 0; line-height:1.6; color:#294464; overflow-wrap:anywhere; }
.order-map-inspector p { color:#8796a8; font-size:12px; }
.order-map-empty-icon { margin-top:35px; color:#c9d9ed; font-size:70px; text-align:center; }
.order-map-total { font-size:29px; color:#2763ad; font-weight:650; }
.order-map-total small { font-size:11px; font-weight:400; }
.order-map-point-rows { max-height:230px; overflow:auto; margin-top:14px; }
.order-map-point-row { display:grid; gap:6px; padding:12px 0; border-top:1px solid #edf1f7; font-size:12px; overflow-wrap:anywhere; }
.order-map-point-row span,.order-map-point-row small { color:#7b8fa6; font-size:11px; }
.order-region-locate { margin-right:8px; padding:2px 5px; color:#3977ba; background:#edf4fd; border:0; border-radius:4px; cursor:pointer; font-size:11px; }
@media(max-width:700px) {
    .order-analysis-dialog { width:calc(100vw - 20px); }
    .order-analysis-shell { max-height:calc(100dvh - 26px); }
    .order-analysis-heading { padding:16px; }
    .order-analysis-heading h4 { font-size:15px; }
    .order-analysis-content.order-analysis-panel { padding:14px; }
    .order-region-metrics { gap:7px; }
    .order-region-metrics>div { padding:12px 9px; }
    .order-region-metrics strong { font-size:22px; }
    .order-region-metrics span { font-size:10px; }
    .order-map-layout { grid-template-columns:minmax(0,1fr); }
    .order-region-map { height:300px; }
    .order-map-caption { top:12px; left:10px; }
    .order-map-caption span { display:none; }
    .order-map-inspector { border-left:0; border-top:1px solid #e1e9f3; padding:14px; }
    .order-map-empty-icon { display:none; }
}
@media (max-width:600px) {
    .order-detail-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); border-radius:10px; }
    .order-detail { max-height:calc(100dvh - 24px); }
    .order-detail header { padding:16px; gap:8px; }
    .order-detail-id { font-size:15px; }
    .order-detail-heading-main { gap:10px; }
    .order-detail-icon { width:36px; height:36px; border-radius:10px; }
    .order-detail-icon svg { width:21px; height:21px; }
    .order-detail-body { padding:12px; }
    .order-detail-overview { padding:2px; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
    .order-overview-amount { text-align:left; }
    .order-overview-amount strong { font-size:23px; }
    .order-detail-info { gap:12px; }
    .order-metadata dl { grid-template-columns:minmax(0,1fr); }
    .order-detail .order-business { padding:0 14px 14px; }
    .order-panel-heading { padding:16px; }
    .order-panel-heading>small { display:none; }
    .order-business { padding:12px 0; white-space:normal; }
    .order-business-card { flex-basis:100%; }
    .order-analysis-panel { padding:12px; }
}
@media (max-width:900px) {
    .order-detail-info { grid-template-columns:minmax(0,1fr); }
}
.order-detail .order-items-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.order-items-table th, .order-items-table td { padding: 9px 12px; border-top: 1px solid #edf2f8; }
.order-items-table td:first-child { max-width: 360px; }
.order-detail .order-items-table th { padding:10px 16px; background:#f8fafd; color:#94a0b2; font-size:10px; font-weight:500; text-align:left; white-space:nowrap; }
.order-detail .order-items-table td { padding:16px; color:#667b94; font-size:11px; line-height:1.7; vertical-align:top; font-variant-numeric:tabular-nums; }
.order-detail .order-items-table td small { display:block; color:#9aa6b7; font-size:10px; }
.order-detail .order-items-table td:first-child { min-width:180px; color:#3f5571; }
.order-detail .order-items-table td[colspan] { text-align:center; padding:28px; color:#a0acbd; }
.listing-comfortable .order-table > tbody > tr.listing-data-row > td { padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 600px) { .order-section-heading { padding: 0 12px; } .order-toolbar .listing-batch-actions { flex-wrap: wrap; } }

.order-status-popover { height: 424px; }
.order-status-popover .shop-picker-option label { flex-wrap: wrap; column-gap: 8px; row-gap: 3px; }
.order-status-popover .shop-picker-option small { max-width: none; }
.order-status-popover .shop-picker-option label > span { font-size: 11px; }

.order-section-heading > button { height: 100%; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #71849f; cursor: pointer; font: inherit; font-size: 12px; }
.order-section-heading > button.active { color: #3267df; border-bottom-color: #3973e6; }
.order-section-heading > button:hover { color: #3267df; }
.order-hold-badge { margin-left: 5px; padding: 1px 5px; border: 1px solid #efdcac; border-radius: 3px; color: #b38b3c; background: #fffbef; font-size: 10px; }
.order-amazon-number { min-width: 170px; color: #607a9c; font-size: 11px; }

.dashboard-page { min-width: 0; }
.dashboard-filter-card { --sticky-gap: 10px; position: sticky; top: calc(var(--topbar-height) + var(--sticky-gap)); z-index: 20; margin-bottom: 16px; border: 1px solid #e1e8f3; border-radius: 10px; background: #fff; }
.dashboard-filter-card::before { content: ''; position: absolute; bottom: 100%; left: -1px; right: -1px; height: calc(var(--sticky-gap) + 1px); background: var(--workspace-bg); pointer-events: none; }
.dashboard-filter-card.is-stuck { box-shadow: 0 5px 14px #234a781a; }
.dashboard-filter-summary { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 4px 16px; min-height: 30px; padding: 0 18px 12px; color: #7a8da6; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.dashboard-refresh-status { min-height: 18px; color: #517ac0; text-align: right; }
.dashboard-refresh-status.has-pending-filters { color: #986425; }
.dashboard-mobile-filter-bar { display: none; }
.dashboard-refresh-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 18px 12px; color: #b75656; font-size: 12px; }
.performance-table-card { position: relative; }
.performance-refresh-status { position: absolute; top: 4px; right: 12px; color: #517ac0; font-size: 11px; }
.dashboard-filters.shop-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 18px; align-items: end; }
.dashboard-filters > .product-country-field { flex: 0 1 172px; }
.dashboard-filters > .dashboard-currency { flex: 0 0 108px; }
.dashboard-filters > .listing-date-field { flex: 0 1 346px; }
.dashboard-filters label > span { color: #8390a2; font-size: 11px; font-weight: 400; }
.dashboard-filters select { height: 33px; border-color: #e0e6ef; font-size: 12px; }
.dashboard-filters .mini-button { height: 33px; min-height: 33px; padding: 0 14px; border-radius: 6px; font-size: 12px; }
.dashboard-metrics .metric { padding: 22px; border-color: #e1e8f3; border-radius: 10px; }
.dashboard-metrics strong { color: #304c70; font-size: 28px; font-variant-numeric: tabular-nums; }
.dashboard-metrics strong small { margin-left: 8px; font-size: 12px; font-weight: 400; color: #9baabd; }
.dashboard-metrics .metric p { margin: 10px 0 0; color: #a29579; font-size: 11px; }
.dashboard-message { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 150px; border: 1px solid #e1e8f3; border-radius: 10px; background: #fff; color: #8b9cb3; font-size: 13px; }
@media (max-width: 600px) {
    .dashboard-filters.shop-filter-bar { padding: 12px; gap: 10px; }
    .dashboard-filter-card { --sticky-gap: 8px; }
    .dashboard-filter-summary, .dashboard-refresh-error { padding-left: 12px; padding-right: 12px; }
    .dashboard-filter-summary { grid-template-columns: minmax(0, 1fr); }
    .dashboard-refresh-status { text-align: left; }
    .dashboard-filters > .product-country-field { flex: 1 1 calc(50% - 5px); }
    .dashboard-filters > .listing-date-field { flex: 1 1 100%; }
    .dashboard-metrics .metric { padding: 16px; }
}

.dashboard-filters .mini-button.ghost { color: #637996; background: #fff; border: 1px solid #dfe7f3; }

.dashboard-filters .product-country-label, .dashboard-filters .dashboard-currency > span { display: none; }

.dashboard-analysis { padding: 22px; border: 1px solid #e1e8f3; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #234a7810; }
.dashboard-analysis-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dashboard-analysis-header h2 { margin: 0; color: #304765; font-size: 15px; font-weight: 600; }
.dashboard-analysis .dashboard-metrics { margin: 22px 0 16px; gap: 14px; }
.dashboard-metrics .dashboard-metric { position: relative; min-width: 0; text-align: left; cursor: pointer; background: #fff; box-shadow: none; transition: background .15s, border-color .15s; }
.dashboard-metrics .dashboard-metric::before { content: ''; position: absolute; top: -1px; left: 16px; right: 16px; height: 3px; border-radius: 0 0 3px 3px; background: transparent; }
.dashboard-metrics .dashboard-metric:hover { background: #f8faff; border-color: #cbdaf0; }
.dashboard-metrics .dashboard-metric.active { border-color: #c9d9ec; background: #f8fbff; }
.dashboard-metrics .dashboard-metric.active::before { background: var(--metric-color); }
.dashboard-metrics .dashboard-metric.active strong { color: var(--metric-color); }
.dashboard-metric:focus-visible, .dashboard-trend-svg:focus-visible { outline: 2px solid #729bfa; outline-offset: 3px; }
.dashboard-trend-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0 0; font-size: 11px; color: #8b9cb3; }
.dashboard-trend-legend { display: inline-flex; align-items: center; gap: 7px; color: #60758e; font-size: 12px; }
.dashboard-trend-legend i { width: 16px; height: 3px; border-radius: 3px; background: var(--trend-color); }
.dashboard-trend-previous-legend i { height: 0; border-top: 2px dashed #8a9bb3; border-radius: 0; background: none; }
.dashboard-previous-readout { margin-top: 4px; }
.dashboard-trend-readout.dashboard-previous-readout strong { color: #637996; }
.dashboard-decline-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0; color: #8390a2; font-size: 11px; }
.dashboard-decline-sort button { padding: 6px 9px; border: 1px solid #e1e8f3; border-radius: 5px; background: #fff; color: #637996; font: inherit; cursor: pointer; }
.dashboard-decline-sort button[aria-pressed="true"] { background: #edf4ff; border-color: #cbdaf0; color: #3267df; }
.dashboard-decline-sort button:focus-visible { outline: 2px solid #729bfa; outline-offset: 2px; }
.dashboard-decline-sort button:disabled { opacity: .6; cursor: wait; }
.dashboard-chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.dashboard-trend-svg { display: block; width: 100%; min-width: 760px; height: auto; overflow: visible; }
.trend-grid { stroke: #e7edf5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.trend-axis { fill: #90a0b5; font: 11px system-ui, sans-serif; }
.trend-crosshair { stroke: var(--trend-color); stroke-opacity: .35; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.dashboard-trend-readout { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 38px; padding: 10px 14px; border-radius: 7px; background: #f7f9fc; color: #8a9bb0; font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-trend-readout strong { color: var(--trend-color); font-weight: 500; }
.dashboard-trend-readout small { color: #a29579; }
.dashboard-trend-empty { display: grid; place-items: center; min-height: 270px; color: #9aa9bb; font-size: 13px; }
@media (max-width: 700px) {
    .dashboard-analysis { padding: 16px 12px; }
    .dashboard-analysis .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
    .dashboard-metrics strong { font-size: 24px; }
    .dashboard-trend-readout { gap: 8px 14px; }
}

.dashboard-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.dashboard-change { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12px; }
.dashboard-change small { color: #92a0b3; font-size: 11px; }
.dashboard-change b { font-weight: 500; color: #8a9bb0; }
.dashboard-change.up b, .dashboard-change.new b { color: #159a81; }
.dashboard-change.down b { color: #d67575; }
.dashboard-change.unknown b { color: #b09461; }
.dashboard-ranking { margin-top: 16px; }
.dashboard-ranking h2 small { margin-left: 7px; color: #9baabd; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.dashboard-ranking-scroll { margin-top: 18px; overflow-x: auto; }
.dashboard-ranking-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; color: #637b98; font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-ranking-table th { padding: 12px 14px; background: #f7f9fc; color: #90a0b4; text-align: left; font-weight: 400; }
.dashboard-ranking-table td { padding: 14px; border-bottom: 1px solid #edf1f7; }
.dashboard-ranking-table tr:last-child td { border-bottom: 0; }
.dashboard-ranking-table tbody tr:hover { background: #fbfcff; }
.dashboard-ranking-table th:first-child { width: 64px; }
.dashboard-ranking-table th:nth-child(2) { width: 26%; }
.dashboard-ranking-table th:nth-child(3) { width: 20%; }
.dashboard-ranking-table th:last-child { width: 22%; }
.dashboard-ranking-table .numeric { text-align: right; }
.dashboard-ranking-table strong { color: #405b7a; font-weight: 500; }
.dashboard-ranking-table small { font-size: 10px; color: #9baabd; }
.dashboard-ranking-table .dashboard-rank-missing { display: block; margin-top: 4px; color: #b09461; }
.dashboard-rank-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f3f6fa; color: #8a9cb2; font-size: 11px; }
.dashboard-rank-number.top-three { background: #edf3ff; color: #4f7fe0; font-weight: 600; }
.dashboard-shop-link { display: inline-flex; max-width: 100%; gap: 10px; padding: 4px 0; border: 0; background: transparent; color: #4c73ac; font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.dashboard-shop-link > span { opacity: .5; }
.dashboard-shop-link:hover { color: #3267df; }
.dashboard-shop-link:focus-visible { outline: 2px solid #729bfa; outline-offset: 3px; border-radius: 3px; }
.dashboard-share { display: flex; align-items: center; gap: 10px; }
.dashboard-share-track { flex: 1; min-width: 25px; height: 5px; border-radius: 5px; background: #eff3f9; overflow: hidden; }
.dashboard-share-track i { display: block; height: 100%; border-radius: inherit; background: #81a8ee; }
.dashboard-share > span { min-width: 55px; text-align: right; color: #7a90ab; font-size: 11px; }
.dashboard-ranking-empty { padding: 50px 12px; text-align: center; color: #9aa9bb; font-size: 13px; }

.dashboard-details-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); align-items: start; gap: 16px; margin-top: 16px; }
.dashboard-products, .dashboard-statuses { min-width: 0; }
.dashboard-products h2 small { margin-left: 7px; color: #9baabd; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.dashboard-product-tabs { display: flex; gap: 20px; margin-top: 16px; border-bottom: 1px solid #edf1f7; }
.dashboard-product-tabs button { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8b9db6; font: inherit; font-size: 12px; cursor: pointer; }
.dashboard-product-tabs button.active { border-color: #709eea; color: #4f7fe0; }
.dashboard-product-tabs button:focus-visible { outline: 2px solid #729bfa; outline-offset: 2px; }
.dashboard-product-table { width: 100%; min-width: 550px; table-layout: fixed; border-collapse: collapse; color: #637b98; font-size: 12px; font-variant-numeric: tabular-nums; }
.dashboard-product-table th { padding: 11px 10px; color: #90a0b4; background: #f7f9fc; font-weight: 400; text-align: right; }
.dashboard-product-table th:first-child { width: 48%; text-align: left; }
.dashboard-product-table td { padding: 14px 10px; border-bottom: 1px solid #edf1f7; text-align: right; }
.dashboard-product-table tr:last-child td { border-bottom: 0; }
.dashboard-product-table small { color: #9baabd; font-size: 10px; }
.dashboard-product-name { display: flex; align-items: center; gap: 12px; text-align: left; }
.dashboard-product-name > .dashboard-rank-number { flex-shrink: 0; }
.dashboard-product-name > div { min-width: 0; }
.dashboard-product-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #405b7a; font-weight: 500; }
.dashboard-product-name div > span { display: block; margin-top: 5px; color: #7294bd; font-size: 11px; overflow-wrap: anywhere; }
.dashboard-product-name div > small { display: block; margin-top: 4px; }
.dashboard-product-decline { color: #d67575; }
.dashboard-product-decline > small { display: block; margin-top: 5px; }
.dashboard-status-ring { display: grid; place-items: center; width: 166px; height: 166px; border-radius: 50%; margin: 28px auto; }
.dashboard-status-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%; background: #fff; }
.dashboard-status-ring strong { color: #405b7a; font-size: 28px; font-variant-numeric: tabular-nums; }
.dashboard-status-ring span { margin-top: 5px; font-size: 11px; color: #92a3b9; }
.dashboard-status-list { list-style: none; margin: 0; padding: 0; }
.dashboard-status-list li { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf1f7; color: #738ba8; font-size: 12px; }
.dashboard-status-list li:last-child { border-bottom: 0; }
.dashboard-status-list i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dashboard-status-list li > span { flex: 1; }
.dashboard-status-list strong { font-weight: 500; color: #4d6785; }
.dashboard-status-list small { font-size: 10px; color: #99a9be; }
.dashboard-status-list li > small { min-width: 42px; text-align: right; }
.dashboard-sync-time { margin: 16px 2px 0; text-align: right; font-size: 11px; color: #9aaabd; }
@media (max-width: 1000px) { .dashboard-details-grid { grid-template-columns: minmax(0, 1fr); } }

.dashboard-product-link { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: #4c73ac; font: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dashboard-status-list li > button { flex: 1; padding: 0; border: 0; background: transparent; color: #4c73ac; font: inherit; text-align: left; cursor: pointer; }
.dashboard-product-link:hover, .dashboard-status-list li > button:hover { color: #3267df; text-decoration: underline; }
.dashboard-product-link:focus-visible, .dashboard-status-list li > button:focus-visible { outline: 2px solid #729bfa; outline-offset: 3px; border-radius: 2px; }
.order-currency-filter { display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 7px 0 10px; border: 1px solid #dce6f5; border-radius: 6px; color: #6080ac; background: #f8faff; font-size: 12px; white-space: nowrap; }
.order-currency-filter button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8aa0bc; cursor: pointer; }
.order-currency-filter button:hover { color: #3267df; background: #eaf1ff; }
.order-currency-filter button:focus-visible { outline: 2px solid #729bfa; }
.order-currency-filter svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.performance-table-card h2 > small { margin-left: 8px; font-size: 11px; color: #94a5ba; font-weight: 400; }
.performance-period { color: #98a8bd; font-size: 11px; }
.performance-table { min-width: 1050px; width: 100%; border-collapse: collapse; color: #637b98; font-size: 12px; font-variant-numeric: tabular-nums; }
.performance-table th { padding: 12px; background: #f7f9fc; color: #8a9db6; font-weight: 400; text-align: right; white-space: nowrap; }
.performance-table th:nth-child(2), .performance-table td:nth-child(2) { text-align: left; min-width: 185px; }
.performance-table th:first-child, .performance-table td:first-child { text-align: center; }
.performance-table th button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.performance-table th[aria-sort="ascending"] button, .performance-table th[aria-sort="descending"] button { color: #4f7fe0; }
.performance-table th button:focus-visible { outline: 2px solid #729bfa; outline-offset: 4px; }
.performance-table td { padding: 17px 12px; text-align: right; border-bottom: 1px solid #edf1f7; }
.performance-table tr:last-child td { border-bottom: 0; }
.performance-table tbody tr:hover { background: #fbfcff; }
.performance-table strong { color: #476280; font-weight: 500; }
.performance-table small { font-size: 10px; color: #9aaabd; }
.performance-shop small, .performance-previous, .performance-missing { display: block; margin-top: 5px; }
.performance-table .performance-missing { color: #b09461; }
.performance-table .dashboard-change { justify-content: flex-end; margin: 0; }
.performance-table .dashboard-change.up, .performance-table .dashboard-change.new { color: #159a81; }
.performance-table .dashboard-change.down { color: #d67575; }
.performance-table-card .member-pagination { margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf1f7; }
.order-more-field { display: flex; }
.order-more-trigger.selected, .order-more-trigger.open { color: #2563eb; border-color: #6093ff; background: #eff5ff; }
.order-more-count { display: inline-flex; min-width: 16px; height: 16px; align-items: center; justify-content: center; margin-left: 4px; border-radius: 8px; color: #fff; background: #3671e8; font-size: 10px; }
.order-more-popover { height: auto; border-radius: 5px; }
.order-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 18px 16px 12px; overflow: auto; }
.order-more-grid label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #334155; font-size: 12px; }
.order-more-grid select { width: 100%; min-width: 0; height: 33px; padding: 0 9px; border: 1px solid #dfe6f1; border-radius: 4px; color: #425570; background: white; font: inherit; }
.order-more-grid select:focus-visible { outline: 2px solid #84a6e7; outline-offset: 1px; }
.order-more-note { margin: 0; padding: 2px 16px 14px; color: #7c8ca2; font-size: 11px; line-height: 1.6; }
.order-more-footer { flex-shrink: 0; padding: 10px 16px; }
.order-more-footer > span { flex: 1; }
@media (max-width: 600px) { .order-more-grid { gap: 14px 10px; padding: 14px 12px 10px; } .product-filter-actions { flex-wrap: wrap; } }

.order-number > .order-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.order-fact-tag { display: inline-block; padding: 1px 5px; border: 1px solid; border-radius: 3px; font-size: 10px; line-height: 15px; white-space: nowrap; }
.order-fact-tag.is-promotion { color: #c72b78; border-color: #efacd0; background: #fff3f9; }
.order-fact-tag.is-refund { color: #b45309; border-color: #f2c58c; background: #fff8eb; }
.order-fact-tag.is-business { color: #2563b9; border-color: #aacaf2; background: #f0f6ff; }

.listing-stock-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.listing-stock-sort span { color: #99a8bd; }
.listing-table th[aria-sort="ascending"] .listing-stock-sort, .listing-table th[aria-sort="descending"] .listing-stock-sort, .listing-table th[aria-sort="ascending"] .listing-stock-sort span, .listing-table th[aria-sort="descending"] .listing-stock-sort span { color: #3978e8; }
.listing-stock-sort:focus-visible { outline: 2px solid #729bfa; outline-offset: 4px; }

/* Advertising navigation landing pages; data integration is separate. */
.advertising-page { padding: 24px; min-width: 0; }
.portfolio-drawer{position:fixed;inset:0 0 0 auto;width:min(500px,100%);height:100dvh;max-height:100dvh;max-width:100%;margin:0;padding:0;border:0;border-left:1px solid #e2e8f0;color:#263a54;box-shadow:-15px 0 60px #172d5220;background:#fff}.portfolio-drawer::backdrop{background:#172b4a55}.portfolio-drawer>header{display:flex;justify-content:space-between;align-items:center;padding:25px 28px;border-bottom:1px solid #e8edf5}.portfolio-drawer h2{font-size:18px;margin:6px 0 0}.portfolio-drawer-body{padding:28px}.portfolio-drawer h3{font-size:21px;line-height:1.5;margin:0 0 13px;overflow-wrap:anywhere}.portfolio-detail-summary{display:grid;grid-template-columns:100px minmax(0,1fr);margin:28px 0;font-size:12px;line-height:1.8}.portfolio-detail-summary dt,.portfolio-detail-summary dd{padding:13px 0;margin:0;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere}.portfolio-detail-summary dt{color:#8997aa}.portfolio-source{border:1px solid #e4eaf2;border-radius:8px;padding:15px;font-size:12px}.portfolio-source summary{cursor:pointer;color:#6b809b}.portfolio-source dl{margin-bottom:0}.portfolio-source dt{font-size:11px;color:#8997aa;margin:15px 0 5px}.portfolio-source dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.ads-portfolios button:focus-visible,.ads-portfolios select:focus-visible,.portfolio-drawer button:focus-visible,.portfolio-source summary:focus-visible{outline:2px solid #76aafb;outline-offset:3px}.ads-portfolios button:disabled{cursor:default;opacity:.5}
.advertising-heading span { color: #7d8ba0; font-size: 12px; }
.advertising-heading h1 { margin: 8px 0 24px; color: #273b59; font-size: 22px; font-weight: 600; }
.advertising-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; border: 1px solid #e6ebf3; border-radius: 12px; background: #fff; text-align: center; }
.advertising-empty svg { width: 56px; height: 56px; margin-bottom: 18px; color: #8aa6d2; }
.advertising-empty strong { color: #536782; font-size: 15px; font-weight: 500; }
.advertising-empty p { margin: 10px 0 0; color: #8795a8; font-size: 12px; line-height: 1.7; }
@media (max-width: 600px) { .advertising-page { padding: 16px 10px; } .advertising-empty { min-height: 240px; } }
/* Advertising lists and profile-scoped reporting. */
.ads-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.ads-coverage{display:flex;gap:26px;flex-wrap:wrap;padding:20px 0;color:#627088}.ads-coverage strong{font-size:22px;color:#1e293b;margin-right:5px}.ads-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;padding:16px;border:1px solid #e5eaf1;border-radius:10px}.ads-filters input,.ads-filters select,.ads-report-select select{border:1px solid #dce3ec;border-radius:6px;padding:8px 10px;background:#fff;color:#26364c;max-width:280px}.ads-filters label{font-size:12px;color:#627088}.ads-sync-strip{display:flex;gap:18px;flex-wrap:wrap;padding:12px 2px;font-size:12px;color:#5c6b80}.ads-sync-strip small{margin-left:auto}.ads-resource-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:18px 0 12px;border-bottom:1px solid #e1e7ee}.ads-resource-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:12px 14px;cursor:pointer;color:#64748b}.ads-resource-tabs button.active{color:#2563eb;border-bottom-color:#2563eb;font-weight:600}.ads-table-wrap{overflow:auto;background:#fff;border:1px solid #e5eaf1;border-radius:9px}.ads-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.ads-table th{background:#f8fafc;color:#64748b;font-weight:500;white-space:nowrap}.ads-table th,.ads-table td{padding:14px 16px;border-bottom:1px solid #edf1f6}.ads-table td strong{font-weight:500;display:block;max-width:400px;overflow-wrap:anywhere}.ads-table td small{display:block;color:#8693a4;margin-top:5px}.ads-table td .text-button{margin-right:12px;white-space:nowrap}.ads-table-empty{text-align:center;padding:55px!important;color:#94a3b8}.ads-pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:16px 0;font-size:13px;color:#64748b}.ads-pagination>span:first-child{margin-right:auto}.ads-note{font-size:12px;color:#64748b;margin:15px 0;line-height:1.8}.ads-error,.ads-errors{color:#a54a24;background:#fff5ec;padding:14px;border-radius:8px}.ads-errors p{font-size:12px;line-height:1.6}.ads-metric-card{background:#fff;padding:22px;border:1px solid #e5eaf1;border-radius:10px;margin:15px 0}.ads-metric-card h2{font-size:15px;margin:0 0 20px;color:#64748b}.ads-metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.ads-metric-grid span{font-size:12px;color:#64748b}.ads-metric-grid strong{display:block;margin-top:8px;font-size:23px;color:#1e293b;font-weight:600}.ads-detail-overlay{position:fixed;inset:0;z-index:2000;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:30px}.ads-detail-dialog{background:#fff;border-radius:12px;padding:24px;width:min(900px,95vw);max-height:85vh;overflow:auto;box-shadow:0 20px 70px #0f172a33}.ads-detail-dialog header{display:flex;justify-content:space-between;gap:20px}.ads-detail-dialog h2{font-size:18px}.ads-detail-dialog dl{display:grid;grid-template-columns:170px 1fr;gap:0;font-size:13px}.ads-detail-dialog dt,.ads-detail-dialog dd{margin:0;padding:12px;border-bottom:1px solid #edf1f6;white-space:pre-wrap;overflow-wrap:anywhere}.ads-detail-dialog dt{color:#64748b}.ads-report-select{display:block;margin:12px 0;font-size:13px}@media(max-width:1000px){.ads-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ads-filters select{max-width:220px}.ads-detail-dialog dl{grid-template-columns:110px 1fr}}@media(max-width:600px){.ads-coverage{gap:14px}.ads-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ads-detail-overlay{padding:12px}.ads-filters input,.ads-filters select{max-width:100%}}
.adboard{--ad-ink:#193748;--ad-muted:#788a96;--ad-teal:#147d92;color:var(--ad-ink);width:100%;min-width:0}
.adboard button:disabled{opacity:.5;cursor:wait}.adboard button:focus-visible,.adboard select:focus-visible,.adboard input:focus-visible{outline:2px solid #147d92;outline-offset:3px}

.adboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.adboard-card{min-width:0;background:#fff;border:1px solid #e1e8ec;border-radius:14px;padding:21px 22px 14px;box-shadow:0 3px 12px #1c3d5003;overflow:hidden}.adboard-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:24px}.adboard-card-heading>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.adboard-number{font-size:11px;color:#8da1af;font-variant-numeric:tabular-nums}.adboard-card h2{font-size:14px;margin:0;font-weight:650;letter-spacing:.2px}.adboard-subtitle{font-size:10px;color:#93a0a9}.adboard-grain{display:flex;background:#f2f5f7;border-radius:6px;padding:3px;flex-shrink:0}.adboard-grain button{border:0;background:transparent;border-radius:4px;padding:3px 9px;color:#8a9aa5;font-size:11px;cursor:pointer}.adboard-grain button[aria-pressed=true]{background:#fff;color:#193748;box-shadow:0 1px 4px #203b5010}.adboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.adboard-metric>span{font-size:11px;color:#748894}.adboard-metric i{font-size:10px;font-style:normal;color:#a3b1ba}.adboard-metric>strong{display:block;font-size:clamp(18px,1.8vw,28px);font-weight:550;letter-spacing:-.8px;line-height:1.55;font-variant-numeric:tabular-nums;white-space:nowrap}.adboard-change{font-size:10px;display:flex;flex-wrap:wrap;gap:5px 10px;font-variant-numeric:tabular-nums}.adboard-change small{color:#98a5ae;font-size:10px}.adboard-change.positive{color:#258571}.adboard-change.negative{color:#c78460}.adboard-change.neutral{color:#8b9aa4}.adboard-legend{display:flex;align-items:center;gap:14px;min-height:20px;padding:0 0 4px}.adboard-legend button{display:flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;font-size:10px;color:#708491;cursor:pointer}.adboard-legend button[aria-pressed=false]{opacity:.4;text-decoration:line-through}.adboard-legend i{display:inline-block;width:7px;height:7px;border-radius:2px}.adboard-legend>span{margin-left:auto;font-size:9px;color:#a0adb6}.adboard-chart{position:relative;min-width:0}.adboard-chart svg{width:100%;display:block;overflow:visible}.adboard-chart-grid line{stroke:#eaf0f3;stroke-dasharray:3 4}.adboard-chart-grid text,.adboard-axis-label{fill:#93a2ad;font-size:10px;font-family:inherit}.adboard-chart rect[tabindex]:focus{outline:none;stroke:#147d92;stroke-width:1;stroke-dasharray:3 4}.adboard-chart-empty{height:clamp(165px,17vw,270px);display:flex;flex-direction:column;align-items:center;justify-content:center;background:repeating-linear-gradient(0deg,transparent,transparent 43px,#eef3f6 44px);color:#98a7b0}.adboard-chart-empty>span{font-size:28px;color:#bad0d6;margin-bottom:10px}.adboard-chart-empty strong{font-size:12px;font-weight:500;background:#fff;padding:4px}.adboard-chart-empty p{font-size:10px;margin:4px;background:#fff}.adboard-tooltip{position:absolute;top:15%;min-width:165px;padding:13px;border-radius:9px;background:#193748f5;color:#fff;box-shadow:0 8px 24px #18354524;pointer-events:none;z-index:2;font-size:11px}.adboard-tooltip>strong{display:block;font-size:10px;font-weight:500;color:#b6cbd5;padding-bottom:9px}.adboard-tooltip>div{display:flex;gap:14px;justify-content:space-between;line-height:1.9}.adboard-tooltip b{font-weight:550;font-variant-numeric:tabular-nums}
.adboard-tag{font-size:10px;color:#7b8e9b;background:#f3f6f8;padding:4px 8px;border-radius:4px}.adboard-contribution-summary{display:grid;grid-template-columns:1fr 1fr;background:#f1f6f7;border-radius:9px;padding:16px 20px;margin-bottom:20px}.adboard-contribution-summary>div{display:flex;flex-direction:column;gap:5px}.adboard-contribution-summary>div+div{padding-left:24px;border-left:1px solid #dce7eb}.adboard-contribution-summary span{font-size:11px;color:#6c8692}.adboard-contribution-summary strong{font-size:30px;font-weight:500;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.adboard-contribution-summary small{font-size:10px;color:#8ba0aa}.adboard-share-label{display:flex;justify-content:space-between;font-size:10px;color:#7f939f;margin-bottom:10px}.adboard-share-label>span+span{font-size:9px;letter-spacing:1px;color:#a1afb8}.adboard-share{display:flex;gap:3px;height:9px;overflow:hidden;border-radius:3px;background:#eef3f6;margin-bottom:15px}.adboard-share span{height:100%;flex-shrink:1}.adboard-mix-table{overflow-x:auto}.adboard-mix-table table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:right;font-size:11px;font-variant-numeric:tabular-nums}.adboard-mix-table th{color:#93a3ae;font-weight:400;font-size:10px;padding:6px 0 9px}.adboard-mix-table td{padding:10px 0;border-top:1px solid #f0f4f6}.adboard-mix-table th:first-child,.adboard-mix-table td:first-child{text-align:left}.adboard-mix-table td:first-child i{display:inline-block;width:6px;height:6px;border-radius:2px;margin-right:8px}.adboard-mix-table td:first-child b{font-weight:600}.adboard-mix-table td:first-child span{font-size:10px;color:#8b9ba6;margin-left:9px}.adboard-mix-table td small{display:block;font-size:9px;color:#96a7b1;margin-top:3px}.adboard-card-note{margin:12px 0 0;font-size:10px;color:#9aabb4}.adboard-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:16px 2px;color:#8b9da8;font-size:10px}.adboard-footer p{margin:0;line-height:1.8}.adboard-footer p i{display:inline-block;width:5px;height:5px;background:#91c7bc;border-radius:50%;margin-right:7px}.adboard-footer>div{display:flex;gap:12px;flex-wrap:wrap}.adboard-footer b{font-weight:500}
@media(min-width:1600px){.adboard-metric>strong{font-size:28px}}
@media(max-width:1150px){.adboard-card{padding:18px 16px 12px}.adboard-subtitle{display:none}.adboard-metric>strong{font-size:21px}.adboard-change small{display:block}.adboard-mix-table td:first-child span{display:none}}
@media(max-width:800px){.adboard-grid{grid-template-columns:1fr}.adboard-metric>strong{font-size:26px}.adboard-chart-empty{height:210px}.adboard-mix-table td:first-child span{display:inline}.adboard-tooltip{font-size:10px;min-width:135px;padding:10px}}
@media(max-width:500px){.adboard-metrics{grid-template-columns:1fr;gap:13px}.adboard-metric{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 10px}.adboard-metric>strong{font-size:24px;text-align:right}.adboard-metric>span{font-size:11px;max-width:100px}.adboard-change{grid-column:1/-1;justify-content:flex-end}.adboard-card{padding:16px 12px 12px}.adboard-legend{gap:10px}.adboard-legend>span{display:none}.adboard-contribution-summary{padding:14px}.adboard-contribution-summary small{font-size:9px}.adboard-mix-table td:first-child span{display:none}.adboard-chart-grid text,.adboard-axis-label{font-size:15px}.adboard-axis-label{display:none}.adboard-axis-label:first-of-type,.adboard-axis-label:last-of-type{display:block}.adboard-chart-grid:nth-child(even) text{display:none}.adboard-tooltip{left:5%!important;top:0;font-size:10px;min-width:180px}}
.adboard-metric { position: relative; min-width: 0; }
.adboard-metric > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.adboard-metric-label { display: flex; align-items: center; gap: 4px; }
.adboard-help { display: inline-flex; }
.adboard-help button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8ba0ae; font: inherit; cursor: help; }
.adboard-help button:hover, .adboard-help button:focus-visible { background: #eaf3f5; color: #147d92; }
.adboard-help [role=tooltip] { display: none; position: absolute; top: 25px; left: 0; z-index: 5; width: 230px; max-width: calc(100vw - 136px); padding: 10px 12px; border-radius: 7px; background: #193748; color: #edf5f8; font-size: 11px; font-weight: 400; line-height: 1.7; box-shadow: 0 5px 18px #19374822; pointer-events: none; }
.adboard-help:hover [role=tooltip], .adboard-help:focus-within [role=tooltip] { display: block; }
.adboard-metric:last-child .adboard-help [role=tooltip] { left: auto; right: 0; }
.adboard-tooltip { max-width: 94%; box-sizing: border-box; }
.adboard-tooltip p { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid #ffffff26; color: #c0d4dd; font-size: 10px; }
.adboard-legend { flex-wrap: wrap; }
.adboard :is(.adboard-legend button, .adboard-grain button, .adboard-help button):focus-visible { outline: 2px solid #147d92; outline-offset: 3px; }
.adboard[aria-busy=true] .adboard-grid { opacity: .6; transition: opacity .15s; }
@media(max-width:500px) {
    .adboard-metric:last-child .adboard-help [role=tooltip] { left: 0; right: auto; }
    .adboard-tooltip { right: 5% !important; }
}
@media(prefers-reduced-motion:reduce) { .adboard[aria-busy=true] .adboard-grid { transition: none; } }
.adboard-breakdown .adboard-card-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.adboard-breakdown-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-left: auto; }
.adboard-breakdown-controls label { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #748894; white-space: nowrap; }
.adboard-breakdown-controls input { accent-color: #147d92; }
.adboard-breakdown-controls select { border: 1px solid #dce5ed; border-radius: 5px; padding: 5px 7px; background: #fff; color: #526780; font-size: 11px; max-width: 110px; }
.adboard-breakdown-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.adboard-breakdown-summary span { color: #8298a5; font-size: 11px; }
.adboard-breakdown-summary strong { font-size: 23px; font-weight: 550; font-variant-numeric: tabular-nums; }
.adboard-horizontal { min-height: 220px; max-height: 300px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b7c8d6 transparent; }
.adboard-horizontal-row { display: grid; grid-template-columns: minmax(45px,110px) minmax(0,1fr) minmax(50px,auto); align-items: center; gap: 10px; min-height: 47px; font-size: 10px; color: #748894; }
.adboard-horizontal-row>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adboard-horizontal-row>b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.adboard-horizontal-track { display: flex; height: 26px; border-radius: 4px; background: repeating-linear-gradient(90deg,#edf2f6 0 1px,transparent 1px 25%); }
.adboard-horizontal-track button { min-width: 0; padding: 0; border: 0; height: 26px; flex-shrink: 0; cursor: default; }
.adboard-horizontal-track button:first-child { border-radius: 4px 0 0 4px; }
.adboard-horizontal-track button:last-child { border-radius: 0 4px 4px 0; }
.adboard-horizontal-track button:hover, .adboard-horizontal-track button:focus-visible { filter: brightness(.92); outline: 2px solid #193748; outline-offset: 2px; }
.adboard-breakdown-legend { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-top: 12px; color: #8298a5; font-size: 10px; }
.adboard-breakdown-legend span { display: flex; align-items: center; gap: 5px; }
.adboard-breakdown-legend i, .adboard-donut-layout li i { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.adboard-donut-layout { display: flex; align-items: center; gap: 24px; min-height: 220px; }
.adboard-donut { flex: 0 0 170px; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; }
.adboard-donut>span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 128px; height: 128px; border-radius: 50%; background: white; font-size: 10px; color: #748894; }
.adboard-donut b { color: #193748; font-size: 15px; font-weight: 500; }
.adboard-donut-layout ul { flex: 1; min-width: 0; max-height: 240px; overflow: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: thin; }
.adboard-donut-layout li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #748894; padding: 7px 0; }
.adboard-donut-layout li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adboard-donut-layout li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.adboard-breakdown-table { min-height: 220px; max-height: 300px; overflow: auto; scrollbar-width: thin; }
.adboard-breakdown-table th { position: sticky; top: 0; background: #fff; }
.adboard-breakdown-table td:first-child { max-width: 240px; white-space: normal; overflow-wrap: anywhere; padding-right: 10px; }
@media(max-width:600px) {
    .adboard-breakdown-controls { margin-left: 0; }
    .adboard-horizontal-row { grid-template-columns: 60px minmax(0,1fr) auto; gap: 6px; }
    .adboard-donut-layout { flex-direction: column; gap: 15px; }
    .adboard-donut-layout ul { width: 100%; flex: auto; }
    .adboard-breakdown-summary { flex-wrap: wrap; gap: 5px 10px; }
}
.adboard-analysis .adboard-card-heading { margin-bottom: 15px; flex-wrap: wrap; }
.adboard-analysis-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.adboard-analysis-actions label { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: #748894; font-size: 10px; }
.adboard-analysis-actions input { accent-color: #147d92; }
.adboard-analysis-icon { display: grid; place-items: center; width: 29px; height: 28px; border: 1px solid #dbe4ec; border-radius: 5px; background: #fff; color: #718995; cursor: pointer; }
.adboard-analysis-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.adboard-analysis-icon.active, .adboard-analysis-icon:hover { color: #147d92; background: #edf5f6; }
.adboard-analysis-icon:disabled { opacity: .4; cursor: default; }
.adboard-analysis-filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px; background: #f6f9fb; border: 1px solid #e6edf2; border-radius: 7px; margin-bottom: 12px; }
.adboard-analysis-filters input { width: 100px; min-width: 0; padding: 6px 8px; border: 1px solid #dce5ec; border-radius: 5px; font-size: 11px; color: #526780; background: #fff; }
.adboard-analysis-filters input[type=search] { flex: 1 1 160px; }
.adboard-analysis-scroll { height: 292px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bacbd8 #f5f8fa; border: 1px solid #e6edf2; border-radius: 7px; }
.adboard-analysis-scroll table { width: 100%; min-width: 1090px; border-collapse: separate; border-spacing: 0; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.adboard-analysis-scroll th { position: sticky; top: 0; z-index: 2; background: #f6f9fc; border-bottom: 1px solid #dde7ee; font-weight: 500; white-space: nowrap; }
.adboard-analysis-scroll th button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 8px; border: 0; background: transparent; font: inherit; color: #607b8e; cursor: pointer; }
.adboard-analysis-scroll th button span { color: #adbdc9; font-size: 10px; }
.adboard-analysis-scroll th[aria-sort=ascending] button, .adboard-analysis-scroll th[aria-sort=descending] button { color: #147d92; }
.adboard-analysis-scroll th:first-child { z-index: 3; }
.adboard-analysis-scroll :is(th,td):first-child { position: sticky; left: 0; text-align: left; width: 200px; min-width: 200px; max-width: 200px; }
.adboard-analysis-scroll td { padding: 9px 10px; height: 35px; box-sizing: border-box; border-bottom: 1px solid #edf2f6; color: #3c596c; white-space: nowrap; }
.adboard-analysis-scroll td:first-child { z-index: 1; background: #fff; box-shadow: 1px 0 #e6edf2; color: #327f97; overflow: hidden; text-overflow: ellipsis; }
.adboard-analysis-scroll tr:hover td { background: #f2f7fa; }
.adboard-analysis-scroll tr.child td { background: #f8fafc; color: #6b8394; }
.adboard-analysis-scroll tr.child td:first-child { padding-left: 26px; }
.adboard-analysis-expand { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.adboard-analysis-expand>span { color: #9db0be; margin-right: 6px; }
.adboard-analysis-expand small { font-size: 10px; color: #8ba1b0; }
.adboard-analysis-scroll .adboard-analysis-empty:first-child { position: static; height: 245px; text-align: left; padding-left: 18px; color: #91a4b2; white-space: normal; }
.adboard-analysis-footer { display: flex; justify-content: space-between; gap: 7px 14px; flex-wrap: wrap; color: #91a4b2; font-size: 10px; line-height: 1.7; padding-top: 10px; }
.adboard-word-cloud { height: 292px; box-sizing: border-box; padding: 18px; display: flex; align-items: center; justify-content: center; align-content: center; flex-wrap: wrap; gap: 8px 14px; overflow: auto; border: 1px solid #e6edf2; border-radius: 7px; scrollbar-width: thin; }
.adboard-word-cloud span { color: #397f93; overflow-wrap: anywhere; }
.adboard-word-cloud span:nth-child(3n) { color: #7398bc; }
.adboard-word-cloud span:nth-child(3n+2) { color: #c39c64; }
.adboard-analysis[aria-busy=true] :is(.adboard-analysis-scroll,.adboard-word-cloud) { opacity: .6; }
.adboard-analysis button:focus-visible { outline: 2px solid #147d92; outline-offset: 2px; }
@media(max-width:600px) {
    .adboard-analysis-actions { margin-left: 0; }
    .adboard-analysis-scroll :is(th,td):first-child { width: 155px; min-width: 155px; max-width: 155px; }
    .adboard-analysis-filters input { flex: 1 1 90px; }
}
.adboard-data-note{margin:-3px 0 16px;padding:9px 12px;border-left:2px solid #91c7bc;background:#eaf2f480;border-radius:0 5px 5px 0;font-size:11px;line-height:1.7;color:#718b99}
.adboard-filters > .adboard-type-field{flex:0 1 128px}
.adboard-filters select{min-width:0;max-width:100%;text-overflow:ellipsis}
.adboard-filters select.selected{border-color:#9db9ef;background:#f8faff}
.adboard-filters .adboard-date-control{min-width:0}
.adboard-filters .adboard-period-select{width:88px;flex:0 0 88px;height:31px;border:0;border-right:1px solid #e7ecf4;border-radius:6px 0 0 6px;padding:0 7px;color:#52647e;font-size:11px}
.adboard-date-inputs{display:flex;align-items:center;gap:5px;flex:1;min-width:0;padding:0 7px}
.adboard-filters .adboard-date-inputs input{flex:1;width:0;min-width:0;height:31px;padding:0;border:0;background:transparent;border-radius:0;font-size:11px;color:#3b65ae;box-shadow:none}
.adboard-filters .adboard-date-inputs span{font-size:10px;font-weight:400;color:#9aa7ba}
.adboard-comparison{margin-left:14px;color:#94a2b6}
.adboard-filters :is(button,select,input):focus-visible{outline:2px solid #84a6e7;outline-offset:2px}
@media(max-width:600px){.adboard-filters>.adboard-type-field,.adboard-filters>.dashboard-currency{flex:1 1 calc(50% - 5px)}.adboard-filters .listing-date-field{min-width:0}.adboard-filters .adboard-date-control{height:auto;flex-wrap:wrap}.adboard-filters .adboard-period-select{flex-basis:100%;width:100%;border:0;border-bottom:1px solid #e7ecf4;border-radius:6px 6px 0 0}.adboard-date-inputs{flex-basis:100%}.adboard-comparison{display:block;margin-left:0}.adboard-filter-card .dashboard-filter-summary{font-size:10px}}
.shop-picker-columns{display:grid;grid-template-columns:minmax(0,56%) minmax(0,44%);flex:1;min-height:0}
.shop-picker-shop-column,.shop-picker-country-column{min-width:0;overflow-y:auto;padding:6px;scrollbar-width:thin;scrollbar-color:#d5dfed transparent}
.shop-picker-shop-column{background:#fafbfd;border-right:1px solid #edf1f6}
.shop-picker-shop-row.active{background:#edf3ff;color:#3267df}
.shop-picker-shop-name{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:11px 0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.shop-picker-shop-name>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-picker-shop-name>small{display:flex;align-items:center;gap:4px;flex-shrink:0;max-width:none;font-size:10px}
.shop-picker-shop-name svg{width:12px;height:12px;fill:none;stroke:#91a5c0;stroke-width:1.3}
.shop-picker-country-column header{display:flex;align-items:center;gap:8px;padding:8px 9px;color:#7188a7;font-size:11px}
.shop-picker-country-column header>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-picker-country-column header>small{white-space:nowrap;color:#9baabe;font-size:10px}
.shop-picker-country-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 9px 9px;font-size:10px;color:#94a2b6}
.shop-picker-country-actions .shop-picker-only{opacity:1;font-size:10px;padding:0}
.shop-picker-country-column .country-picker-option.selected{background:#f2f6ff;color:#3267df}
@media(max-width:500px){.shop-picker-columns{grid-template-columns:minmax(0,53%) minmax(0,47%)}.shop-picker-shop-column,.shop-picker-country-column{padding:4px}.shop-picker-shop-name{font-size:11px}.shop-picker-country-column header{flex-wrap:wrap;padding:7px 5px}.shop-picker-country-column header>span{flex-basis:100%}.shop-picker-country-actions{flex-wrap:wrap;padding:4px 5px 7px}.shop-picker-country-column .country-picker-option{padding:7px 5px;font-size:11px}}

/* Filter popovers are teleported outside .app-shell; give their lists the same quiet scroll treatment. */
.adboard-filters .adboard-asin-field { flex: 0 1 172px; min-width: 110px; }
.adboard-filters .adboard-entity-field { flex: 0 1 172px; min-width: 110px; }
.adboard-filters .adboard-currency-field { flex: 0 0 108px; min-width: 0; }
.ads-currency-trigger > span { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.ads-currency-popover { height: auto; }
.ads-currency-popover .shop-picker-options { flex: 0 1 auto; }
.ads-currency-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #526780; text-align: left; font: inherit; cursor: pointer; }
.ads-currency-option strong { min-width: 34px; font-size: 12px; font-weight: 500; letter-spacing: .3px; }
.ads-currency-option > span { flex: 1; font-size: 11px; color: #8999af; }
.ads-currency-option:hover, .ads-currency-option:focus-visible { background: #f3f7ff; }
.ads-currency-option[aria-selected="true"] { background: #edf3ff; color: #3267df; }
.ads-currency-option[aria-selected="true"] > span { color: #678ac5; }
.ads-currency-option svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ads-currency-note { flex-shrink: 0; padding: 10px 12px; border-top: 1px solid #e9eef6; font-size: 10px; color: #92a1b7; }
@media(max-width:600px) { .adboard-filters .adboard-currency-field { flex: 1 1 calc(50% - 5px); } }
.adboard-filters .listing-date-control .listing-date-range { border-radius: 6px; }
.ads-date-popover .listing-date-footer button { flex-shrink: 0; min-width: 56px; height: 32px; white-space: nowrap; }
.ads-entity-option > span { display: block; min-width: 0; flex: 1; }
.ads-entity-option b { display: block; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-entity-option > span > small { display: block; margin: 3px 0 0; font-size: 10px; letter-spacing: 0; }
@media(max-width:600px) { .adboard-filters .adboard-entity-field { flex: 1 1 calc(50% - 5px); } }
.ads-asin-popover { height: 380px; }
.ads-asin-popover .country-picker-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px 56px;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 12px;
}
.ads-asin-popover .country-picker-footer > div { display: contents; }
.ads-asin-popover .country-picker-footer > div > span { grid-column: 1; grid-row: 1; min-width: 0; }
.ads-asin-popover .country-picker-footer small { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 0; line-height: 15px; }
.ads-asin-popover .country-picker-footer button {
    grid-row: 1;
    width: 56px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.ads-asin-popover .country-picker-cancel { grid-column: 2; }
.ads-asin-popover .country-picker-confirm { grid-column: 3; }
.ads-asin-popover .country-picker-cancel:hover { background: #f4f7fc; border-color: #bbcee8; color: #3c638f; }
.ads-asin-popover .country-picker-confirm:hover { background: #2861d0; border-color: #2861d0; }
.ads-asin-popover .country-picker-confirm:active { background: #2055bd; }
.ads-asin-popover .country-picker-option { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.ads-asin-popover .country-picker-option.selected { background: #f2f6ff; color: #3267df; }
@media(max-width:600px) { .adboard-filters .adboard-asin-field { flex: 1 1 calc(50% - 5px); } }
.country-picker-popover :is(.country-picker-regions, .country-picker-countries, .shop-picker-options, .shop-picker-shop-column, .shop-picker-country-column) {
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c4d1e2 transparent;
}
.country-picker-popover :is(.country-picker-regions, .country-picker-countries, .shop-picker-options, .shop-picker-shop-column, .shop-picker-country-column):is(:hover, :focus-within) {
    scrollbar-color: #9eb3ce transparent;
}
@supports selector(::-webkit-scrollbar) {
    .country-picker-popover * {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
    .country-picker-popover :is(.country-picker-regions, .country-picker-countries, .shop-picker-options, .shop-picker-shop-column, .shop-picker-country-column),
    .country-picker-popover :is(.country-picker-regions, .country-picker-countries, .shop-picker-options, .shop-picker-shop-column, .shop-picker-country-column):is(:hover, :focus-within) {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
    .country-picker-popover ::-webkit-scrollbar { width: 8px; height: 8px; }
    .country-picker-popover ::-webkit-scrollbar-track { margin-block: 5px; background: transparent; }
    .country-picker-popover ::-webkit-scrollbar-thumb {
        min-height: 32px;
        border: 2px solid transparent;
        border-radius: 8px;
        background: #c4d1e2;
        background-clip: padding-box;
    }
    .country-picker-popover :is(:hover, :focus-within)::-webkit-scrollbar-thumb { background-color: #9eb3ce; }
    .country-picker-popover ::-webkit-scrollbar-thumb:hover { border-width: 1px; background-color: #829fbe; }
    .country-picker-popover ::-webkit-scrollbar-thumb:active { background-color: #6485ad; }
    .country-picker-popover ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
    .country-picker-popover ::-webkit-scrollbar-corner { background: transparent; }
}
@media (forced-colors: active) {
    .country-picker-popover ::-webkit-scrollbar-thumb { background-color: ButtonText; }
}

/* Searchable order timezone picker, shared by orders and dashboard. */
.order-timezone-field { flex: 0 0 168px; min-width: 0; height: 33px; }
.order-timezone-trigger { display: flex; align-items: center; gap: 7px; width: 100%; height: 33px; padding: 0 10px; border: 1px solid #e0e6ef; border-radius: 6px; background: #fff; color: #52647e; font: inherit; cursor: pointer; }
.order-timezone-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 11px; }
.order-timezone-trigger svg, .order-timezone-popover svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.order-timezone-trigger .order-timezone-clock { color: #8798b0; }
.order-timezone-trigger .order-timezone-chevron { width: 12px; transition: transform .15s; }
.order-timezone-trigger[aria-expanded="true"] { border-color: #88aaf0; background: #f8faff; box-shadow: 0 0 0 3px #3977e610; }
.order-timezone-trigger[aria-expanded="true"] .order-timezone-chevron { transform: rotate(180deg); }
.order-timezone-trigger:hover { border-color: #adc2e5; }
.order-timezone-trigger:disabled { opacity: .6; cursor: wait; }
.order-timezone-popover { position: fixed; z-index: 1055; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; border: 1px solid #dde5f0; border-radius: 10px; background: #fff; box-shadow: 0 12px 36px #203e6526, 0 2px 6px #203e6508; color: #425570; font-size: 12px; }
.order-timezone-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; scrollbar-width: thin; scrollbar-color: #cbd7e6 transparent; }
.order-timezone-search { flex: none; padding: 8px 8px 4px; }
.order-timezone-search input { box-sizing: border-box; width: 100%; height: 30px; padding: 0 8px; border: 1px solid #e0e7f1; border-radius: 5px; background: #fff; color: #354b68; font: inherit; outline: none; }
.order-timezone-search input:focus { border-color: #97b5ec; }
.order-timezone-search input::placeholder { color: #97a4b6; }
.order-timezone-empty { margin: 16px 8px; text-align: center; color: #8795a8; }
.order-timezone-options h3 { margin: 8px 8px 5px; font-size: 10px; font-weight: 500; color: #8d9cb0; }
.order-timezone-options [role="option"] { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 6px 8px; border: 0; border-radius: 6px; background: #fff; color: #435774; font: inherit; text-align: left; cursor: pointer; }
.order-timezone-options [role="option"]:hover { background: #f5f8fc; }
.order-timezone-options [aria-selected="true"] { background: #edf4ff; color: #2e66d4; }
.order-timezone-name { flex: 1; min-width: 0; }
.order-timezone-options .order-timezone-check { width: 13px; height: 13px; color: #3977e6; }
.order-timezone-popover button:focus-visible, .order-timezone-trigger:focus-visible { outline: 2px solid #7da6f0; outline-offset: -2px; }
.listing-query-group:has(> .order-timezone-field) { flex-wrap: wrap; }
@media (max-width: 760px) { .product-filters .listing-query-group > .order-timezone-field { flex: none; width: 100%; height: 33px; } }

/* Dashboard totals have three distinct measures; unknown data stays explicit. */
.dashboard-analysis .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.dashboard-definition, .dashboard-period-note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: #637996; }
.dashboard-period-note { color: #986425; }
.dashboard-data-notice { margin: 10px 0; padding: 8px 12px; border-radius: 6px; background: #fff8e9; color: #805719; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dashboard-metrics .dashboard-period-badge { display: inline; margin: 0; color: #986425; font-size: inherit; line-height: inherit; }
.dashboard-excluded-scopes summary { cursor: pointer; }
.dashboard-excluded-scopes p { margin: 8px 0; }
.dashboard-excluded-scopes ul { margin: 6px 0; padding-left: 20px; max-height: 180px; overflow: auto; }
.dashboard-sync-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0; }
.dashboard-refresh-time { margin: 5px 2px 0; text-align: right; font-size: 11px; color: #637996; }
.dashboard-comparison-select { flex: 0 1 180px; }
.dashboard-comparison-select > span { display: none; }
.dashboard-freshness { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 0 18px 8px; font-size: 11px; color: #637996; }
.dashboard-freshness label { display: inline-flex; align-items: center; gap: 5px; }
.dashboard-freshness input { width: 14px; height: 14px; margin: 0; }
.dashboard-freshness > span { color: #986425; }
.dashboard-trend-heading { position: relative; }
.dashboard-comparison-help { margin-left: auto; font-size: 12px; color: #637996; }
.dashboard-comparison-help > summary { padding: 4px 0 4px 8px; cursor: pointer; list-style: none; }
.dashboard-comparison-help > summary::-webkit-details-marker { display: none; }
.dashboard-comparison-help > summary:hover, .dashboard-comparison-help[open] > summary { color: #3978e8; }
.dashboard-comparison-help > summary:focus-visible, .dashboard-sync-coverage > summary:focus-visible { outline: 2px solid #729bfa; outline-offset: 3px; border-radius: 3px; }
.dashboard-comparison-content { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(360px, 100%); box-sizing: border-box; padding: 14px 16px; border: 1px solid #dfe7f3; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #234a7820; line-height: 1.7; overflow-wrap: anywhere; }
.dashboard-comparison-content p { margin: 8px 0 0; }
.dashboard-comparison-content p:first-child { margin-top: 0; }
.dashboard-comparison-content strong { display: block; color: #304765; font-weight: 600; }
.dashboard-product-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: #b75656; font-size: 12px; }
@media (max-width: 600px) {
    .dashboard-analysis .dashboard-metrics { grid-template-columns: minmax(0, 1fr); }
    .dashboard-mobile-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
    .dashboard-mobile-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: transparent; color: #435f82; font: inherit; font-size: 12px; cursor: pointer; }
    .dashboard-mobile-filter-toggle:focus-visible { outline: 2px solid #729bfa; outline-offset: 3px; border-radius: 3px; }
    .dashboard-mobile-filter-bar .mini-button { min-height: 36px; height: 36px; padding: 0 12px; font-size: 12px; }
    .dashboard-filter-dot { width: 6px; height: 6px; border-radius: 50%; background: #b48034; }
    .dashboard-filter-card:not(.filters-expanded) .dashboard-filters { display: none; }
    .dashboard-filter-card.filters-expanded .dashboard-filters { max-height: calc(100dvh - 240px); overflow-y: auto; border-top: 1px solid #edf2f8; }
    .dashboard-filters .dashboard-actions { display: none; }
    .dashboard-filter-summary { min-height: 0; gap: 2px; padding-bottom: 8px; }
    .dashboard-filter-card:not(.filters-expanded) .dashboard-filter-summary > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .dashboard-refresh-status { font-size: 10px; white-space: nowrap; }
    .dashboard-analysis .dashboard-metrics { gap: 8px; margin-bottom: 10px; }
    .dashboard-metrics .dashboard-metric { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 4px 8px; min-height: 72px; padding: 12px; }
    .dashboard-metrics .dashboard-metric > span { margin-bottom: 0; font-size: 12px; line-height: 1.5; }
    .dashboard-metrics .dashboard-metric > strong { margin-top: 0; font-size: 22px; text-align: right; overflow-wrap: anywhere; }
    .dashboard-metrics .dashboard-metric > strong small { margin-left: 4px; }
    .dashboard-metrics .dashboard-change { grid-column: 1 / -1; margin-top: 0; justify-content: flex-end; }
    .dashboard-metrics .dashboard-metric > p { grid-column: 1 / -1; margin: 2px 0 0; text-align: right; }
}

.dashboard-sync-coverage { margin: 18px 0 8px; padding: 12px 16px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; color: #526174; font-size: 13px; }
.dashboard-sync-coverage summary { cursor: pointer; line-height: 1.8; }
.dashboard-sync-coverage > p { line-height: 1.7; color: #68778c; }
.dashboard-sync-shop { padding: 10px 0; border-top: 1px solid #edf0f5; }
.dashboard-sync-shop > span { margin-left: 12px; }
.dashboard-sync-shop ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.8; }
.dashboard-sync-coverage .needs-attention { color: #966013; }
.dashboard-trend-empty .dashboard-shop-link { margin-left: 14px; }
#dashboard-sync { scroll-margin-top: 160px; }

.dashboard-module-period { display:block; margin:6px 0 10px; font-size:11px; font-weight:400; color:#71839b; line-height:1.6; }
.dashboard-stock-freshness { display:block; margin-top:6px; color:#478075; font-size:10px; }
.dashboard-stock-freshness.needs-attention { color:#9d6120; }
.dashboard-stock-time { display:block; margin-top:4px; line-height:1.5; }
