:root {
    --bg: #f8f9ff;
    --surface: #fff;
    --surface-soft: #f0f4ff;
    --surface-low: #eff4ff;
    --text: #0b1c30;
    --muted: #647084;
    --line: #d8e0ef;
    --line-soft: #edf1f8;
    --primary: #3525cd;
    --primary-2: #4f46e5;
    --primary-soft: #e5e4ff;
    --ok: #10b981;
    --ok-soft: #dcfce7;
    --warn: #d97706;
    --warn-soft: #fff4cc;
    --bad: #dc2626;
    --bad-soft: #ffe4e6;
    --disabled: #6b7280;
    --disabled-soft: #e5e7eb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px
}

button, input, select {
    font: inherit
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed;
    opacity: .55
}

[v-cloak] {
    display: none !important
}

.material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
    vertical-align: middle
}

.isv-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #070719
}

.login-shader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .9
}

.isv-login-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 74px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px
}

.isv-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px
}

.isv-login-logo {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6156ff, #3b2bd6);
    box-shadow: 0 22px 60px rgba(79, 70, 229, .32)
}

.isv-login-logo span {
    font-size: 54px;
    color: #dad7ff
}

.isv-login-brand h1 {
    margin: 30px 0 10px;
    font-size: 22px
}

.isv-login-brand p {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 20px;
    letter-spacing: .24em
}

.isv-login-card {
    width: min(100%, 548px);
    padding: 64px 60px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .36);
    backdrop-filter: blur(18px)
}

.isv-login-card header {
    margin-bottom: 36px
}

.isv-login-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600
}

.isv-login-card p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 18px
}

.isv-dark-field {
    display: block;
    margin-bottom: 26px
}

.isv-dark-field > span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    font-weight: 600
}

.isv-dark-field div {
    position: relative
}

.isv-dark-field div > span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .42);
    pointer-events: none
}

.isv-dark-field input {
    width: 100%;
    height: 72px;
    padding: 0 58px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-size: 16px
}

.isv-dark-field input::placeholder {
    color: rgba(255, 255, 255, .32)
}

.isv-dark-field input:focus {
    border-color: #c3c0ff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .2)
}

.isv-dark-field button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .45)
}

.isv-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px
}

.isv-login-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .64);
    font-size: 18px
}

.isv-login-options input {
    width: 24px;
    height: 24px
}

.isv-login-options a {
    color: #c3c0ff;
    text-decoration: none;
    font-weight: 600
}

.isv-login-submit {
    width: 100%;
    height: 70px;
    border: 0;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 18px 36px rgba(79, 70, 229, .22);
    transition: transform .18s ease
}

.isv-login-submit:hover {
    transform: translateY(-1px) scale(1.01)
}

.isv-login-more {
    margin-top: 50px;
    padding-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    color: rgba(255, 255, 255, .42)
}

.isv-login-more > div {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 26px
}

.isv-login-more button {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: rgba(255, 255, 255, .58)
}

.isv-login-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 42px;
    padding: 0 20px 28px;
    color: rgba(255, 255, 255, .25);
    font-size: 16px
}

.isv-dark-error, .isv-form-error {
    padding: 12px 14px;
    border-radius: 8px;
    color: #fecaca;
    background: rgba(220, 38, 38, .16);
    margin: -8px 0 18px
}

.fade-up {
    opacity: 0;
    animation: fadeInUp .8s cubic-bezier(.16, 1, .3, 1) forwards
}

.delay-100 {
    animation-delay: .1s
}

.breathe {
    animation: breathe 4s ease-in-out infinite
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(79, 70, 229, .4))
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(79, 70, 229, .6))
    }
}

.isv-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:260px 1fr;
    background: var(--bg)
}

.isv-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 16px;
    background: #f8f9ff;
    border-right: 1px solid var(--line-soft)
}

.isv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 54px
}

.isv-brand-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary-2);
    color: #fff
}

.isv-brand h1 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800
}

.isv-brand p {
    margin: 4px 0 0;
    color: #596174;
    font-size: 13px
}

.isv-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1
}

.isv-nav button, .isv-logout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2c3345;
    padding: 0 16px;
    font-size: 16px;
    text-align: left
}

.isv-nav button.active {
    background: #e7e5ff;
    color: var(--primary);
    font-weight: 800;
    border-right: 4px solid var(--primary)
}

.isv-nav button:hover, .isv-logout:hover {
    background: #eef2ff
}

.isv-nav i {
    position: absolute;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bd1b2d
}

.isv-sidebar-foot {
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.isv-logout {
    width: 100%;
    margin-top: 18px;
    color: #4b5563
}

.isv-main {
    min-width: 0
}

.isv-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
    padding: 0 28px;
    background: rgba(248, 249, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px)
}

.isv-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #6b7280
}

.isv-crumb strong {
    color: var(--primary)
}

.isv-search {
    position: relative;
    display: block;
    min-width: 320px;
    max-width: 420px;
    flex: 1
}

.isv-search span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280
}

.isv-search input {
    width: 100%;
    height: 38px;
    padding: 0 16px 0 48px;
    border: 0;
    border-radius: 8px;
    background: #eef3ff;
    outline: none;
    color: var(--text)
}

.isv-top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px
}

.isv-primary, .isv-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800
}

.isv-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff
}

.isv-secondary {
    border: 1px solid #c7cfe1;
    background: #fff;
    color: #30384b
}

.isv-primary.wide {
    width: 100%;
    height: 56px;
    font-size: 17px
}

.isv-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d9e1f0;
    border-radius: 8px;
    background: #fff;
    color: #424b5e
}

.isv-profile {
    display: flex;
    align-items: center;
    gap: 12px
}

.profile-img {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d7dce8;
    color: #596174
}

.isv-profile strong {
    display: block
}

.isv-profile span {
    font-size: 11px;
    color: #6b7280
}

.isv-content {
    padding: 34px 32px
}

.metric-strip {
    display: grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap: 16px
}

.metric-card, .panel, .site-card, .expiry-card {
    background: #fff;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(28, 39, 70, .04)
}

.metric-card {
    min-height: 124px;
    padding: 20px;
    display: flex;
    justify-content: space-between
}

.metric-card span {
    color: #566176
}

.metric-card strong {
    display: block;
    margin: 14px 0 4px;
    font-size: 28px
}

.metric-card small {
    font-size: 12px;
    color: #6b7280
}

.metric-card.ok strong, .metric-card.ok .material-symbols-outlined {
    color: var(--ok)
}

.metric-card.warn strong, .metric-card.warn .material-symbols-outlined {
    color: var(--warn)
}

.metric-card.bad {
    border-left: 4px solid var(--bad)
}

.metric-card.bad strong, .metric-card.bad .material-symbols-outlined {
    color: var(--bad)
}

.metric-card.info strong, .metric-card.info .material-symbols-outlined {
    color: var(--primary)
}

.dashboard-grid {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 24px;
    margin-top: 32px
}

.panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line)
}

.panel h2 {
    margin: 0;
    font-size: 18px
}

.panel p {
    margin: 4px 0 0;
    color: #6b7280
}

.panel header button, .quota-panel button, .risk-mini-grid button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 800
}

.risk-panel {
    grid-column: 1
}

.risk-mini-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 16px;
    padding: 24px
}

.risk-mini-grid article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #fee2e2;
    border-radius: 10px
}

.risk-mini-grid article > span {
    color: var(--bad);
    background: #fff1f2;
    padding: 10px;
    border-radius: 8px
}

.risk-mini-grid strong {
    display: block
}

.risk-mini-grid p {
    margin: 3px 0
}

.status-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 28px
}

.donut {
    width: 178px;
    height: 178px;
    margin: 34px auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--primary) 0 70%, var(--ok) 70% 88%, #e7edf6 88%)
}

.donut:before {
    content: "";
    position: absolute
}

.donut strong, .donut span {
    grid-area: 1/1
}

.donut strong {
    font-size: 26px
}

.donut span {
    margin-top: 42px;
    color: #6b7280
}

.status-panel ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.status-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0
}

.status-panel b {
    margin-left: auto
}

.status-panel i {
    width: 8px;
    height: 8px;
    border-radius: 50%
}

.status-panel .ok {
    background: var(--ok)
}

.status-panel .trial {
    background: var(--primary)
}

.status-panel .bad {
    background: var(--bad)
}

.quota-panel {
    grid-column: 1
}

.quota-panel table, .isv-table {
    width: 100%;
    border-collapse: collapse
}

.quota-panel th, .quota-panel td, .isv-table th, .isv-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left
}

.quota-panel th, .isv-table th {
    background: #eef3ff;
    color: #465167;
    font-size: 13px
}

.mini-bar, .progress {
    display: inline-block;
    height: 7px;
    border-radius: 99px;
    background: #dfe7f6;
    overflow: hidden
}

.mini-bar {
    width: 140px;
    margin-right: 12px
}

.mini-bar i, .progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-2))
}

.activity-panel {
    padding: 24px
}

.activity-panel h2 {
    margin: 0 0 22px
}

.timeline article {
    display: flex;
    gap: 12px;
    margin: 18px 0
}

.timeline span {
    color: var(--primary)
}

.timeline strong {
    display: block
}

.timeline p {
    margin: 4px 0 0;
    color: #6b7280
}

.recent-panel {
    margin-top: 32px
}

.recent-panel table {
    font-size: 14px
}

.site-info {
    display: flex;
    align-items: center;
    gap: 12px
}

.site-info > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5ecff;
    color: var(--primary);
    font-weight: 800
}

.site-info strong, .site-info small {
    display: block
}

.site-info small {
    color: #8791a3
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    font-weight: 800;
    font-size: 12px
}

.status-pill.ok {
    background: var(--ok-soft);
    color: #059669
}

.status-pill.warn {
    background: var(--warn-soft);
    color: #c2410c
}

.status-pill.bad {
    background: var(--bad-soft);
    color: var(--bad)
}

.status-pill.disabled {
    background: var(--disabled-soft);
    color: var(--disabled)
}

.plan-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 800;
    margin-right: 12px
}

.sites-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

.sites-head h2 {
    margin: 0 0 8px;
    font-size: 28px
}

.sites-head p {
    margin: 0;
    color: #5f6878
}

.sites-tools {
    display: flex;
    align-items: center;
    gap: 14px
}

.view-switch {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid #c7d2e8;
    border-radius: 8px;
    background: #e8f0ff
}

.view-switch button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #445066
}

.view-switch button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08)
}

.status-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 28px
}

.status-filter button {
    height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: #dbe9ff;
    color: #1f2937
}

.status-filter button.active {
    background: var(--primary);
    color: #fff
}

.status-filter em {
    margin-left: auto;
    color: #7b8495;
    font-style: normal
}

.site-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(220px, 1fr));
    gap: 28px
}

.site-card {
    overflow: hidden;
    cursor: pointer;
    border-color: #cbd3e5
}

.site-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(53, 37, 205, .12)
}

.site-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 22px;
    border-bottom: 1px solid var(--line)
}

.site-card h3 {
    margin: 0 0 8px;
    font-size: 22px
}

.site-card p {
    margin: 0;
    color: #7b8495
}

.site-card dl {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px;
    padding: 22px;
    margin: 0
}

.site-card dt {
    color: #7b8495
}

.site-card dd {
    margin: 8px 0 0;
    font-size: 17px
}

.quota-line {
    display: flex;
    justify-content: space-between;
    padding: 0 22px 8px;
    color: #7b8495
}

.quota-line b {
    color: var(--primary)
}

.site-card .progress {
    display: block;
    margin: 0 22px;
    width: calc(100% - 44px)
}

.time-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 22px 24px !important;
    color: var(--primary) !important
}

.site-card footer {
    display: flex;
    gap: 18px;
    padding: 18px 22px;
    background: #edf4ff
}

.site-card footer button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 800
}

.create-card {
    min-height: 380px;
    border: 2px dashed #c6c0df;
    border-radius: 14px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #293044
}

.create-card span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #dfeaff;
    font-size: 32px
}

.create-card strong {
    margin-top: 22px;
    font-size: 22px
}

.create-card small {
    margin-top: 8px;
    color: #7b8495
}

.site-list-panel {
    background: #fff;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    overflow: hidden
}

.site-list-table td {
    font-size: 16px
}

.site-list-table td small {
    display: block;
    color: #6b7280;
    margin-top: 5px
}

.quota-cell {
    display: grid;
    grid-template-columns:120px 1fr 42px;
    align-items: center;
    gap: 10px
}

.isv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line)
}

.isv-pagination button, .isv-pagination b {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    background: #fff
}

.isv-pagination b {
    background: var(--primary);
    color: #fff
}

.expiry-metrics {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 24px
}

.expiry-metrics article {
    height: 160px;
    padding: 28px;
    border: 1px solid #dce4f1;
    border-radius: 14px;
    background: #fff
}

.expiry-metrics span, .expiry-metrics small {
    display: block;
    color: #607088
}

.expiry-metrics strong {
    display: block;
    margin: 20px 0 10px;
    font-size: 42px
}

.expiry-metrics .danger strong {
    color: #e11d48
}

.expiry-metrics .warn strong {
    color: #d97706
}

.expiry-metrics .info strong {
    color: #2563eb
}

.expiry-metrics .ok strong {
    color: #059669
}

.expiry-section {
    margin-top: 36px
}

.expiry-section h2 {
    display: flex;
    align-items: center;
    gap: 14px
}

.expiry-section h2:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dbe3f0
}

.expiry-section b {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px
}

.expiry-card-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(260px, 1fr));
    gap: 24px
}

.expiry-card {
    padding: 24px;
    border-top: 5px solid var(--primary)
}

.expiry-card.warn {
    border-top-color: #f59e0b
}

.expiry-card.danger {
    border-top-color: #f43f5e
}

.expiry-card header {
    display: flex;
    gap: 14px;
    align-items: center
}

.expiry-card header > span {
    padding: 10px;
    border-radius: 10px;
    background: #fff1f2;
    color: #e11d48
}

.expiry-card strong {
    display: block;
    font-size: 18px
}

.expiry-card p {
    margin: 6px 0;
    color: #e11d48;
    font-weight: 700
}

.expiry-card em {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 6px;
    background: #ffe4e6;
    color: #e11d48;
    font-style: normal;
    font-weight: 800;
    font-size: 12px
}

.expiry-card dl {
    margin: 24px 0
}

.expiry-card dl div {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft)
}

.expiry-card dt {
    color: #6b7280
}

.expiry-card dd {
    margin: 0;
    font-weight: 800
}

.expiry-card footer {
    display: flex;
    gap: 10px
}

.expiry-card footer button {
    height: 36px;
    border: 1px solid #d7dfef;
    border-radius: 6px;
    background: #fff;
    padding: 0 14px
}

.expiry-card footer button:last-child {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.drawer-mask, .isv-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .34);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: flex-end
}

.site-drawer {
    width: min(100%, 610px);
    height: 100%;
    overflow: auto;
    background: #fbfcff;
    box-shadow: -18px 0 44px rgba(15, 23, 42, .16);
    padding: 34px
}

.site-drawer > header {
    display: flex;
    justify-content: space-between
}

.drawer-title {
    display: flex;
    gap: 16px
}

.drawer-logo {
    display: grid !important;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #e8e6ff;
    color: var(--primary)
}

.drawer-title h2 {
    margin: 0 0 8px
}

.drawer-title p {
    display: flex;
    gap: 14px;
    margin: 0
}

.drawer-title b {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8e6ff;
    color: var(--primary)
}

.site-drawer header button, .isv-modal-card header button {
    border: 0;
    background: transparent
}

.drawer-actions {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0
}

.drawer-actions button {
    height: 98px;
    border: 0;
    border-radius: 12px;
    background: #eef3ff;
    color: var(--primary);
    font-size: 16px
}

.drawer-actions span {
    display: block;
    margin: 0 auto 10px
}

.site-drawer section {
    margin-top: 30px
}

.site-drawer h3 {
    padding-left: 16px;
    border-left: 5px solid var(--primary);
    font-size: 17px;
    font-weight: 600
}

.info-box {
    padding: 20px;
    border: 1px solid #dce4f1;
    border-radius: 14px;
    background: #fff
}

.info-box dl {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 22px;
    margin: 0
}

.info-box dt {
    color: #6b7280
}

.info-box dd {
    margin: 8px 0 0;
    font-size: 16px
}

.info-box.manager {
    display: grid;
    grid-template-columns:56px 1fr 1fr;
    align-items: center
}

.drawer-quota {
    display: flex;
    justify-content: space-between
}

.quota-split {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px;
    margin-top: 8px
}

.quota-split div {
    padding: 16px;
    border-radius: 10px;
    background: #eef3ff
}

.site-drawer footer {
    position: sticky;
    bottom: -34px;
    margin: 34px -34px -34px;
    padding: 24px 34px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

.danger-outline {
    border: 1px solid var(--bad);
    border-radius: 8px;
    background: #fff;
    color: var(--bad);
    font-weight: 800
}

.wide-delete {
    grid-column: 1/3;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1f2937
}

.isv-modal-mask {
    justify-content: center;
    align-items: center;
    padding: 24px
}

.isv-modal-card {
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22)
}

.isv-modal-card header, .isv-modal-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.isv-modal-card h2 {
    margin: 0
}

.isv-modal-card p {
    margin: 6px 0 0;
    color: #6b7280
}

.modal-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px;
    margin: 28px 0
}

.modal-grid label {
    display: block
}

.modal-grid span {
    display: block;
    margin-bottom: 8px;
    font-weight: 800
}

.modal-grid input {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    outline: none
}

.modal-grid input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .14)
}

.isv-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 130;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-weight: 800
}

.isv-toast.success {
    background: #059669
}

.isv-toast.error {
    background: #dc2626
}

@media (max-width: 1200px) {
    .metric-strip {
        grid-template-columns:repeat(3, 1fr)
    }

    .site-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .dashboard-grid {
        grid-template-columns:1fr
    }

    .status-panel {
        grid-column: auto;
        grid-row: auto
    }

    .expiry-card-grid, .expiry-metrics {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 760px) {
    .isv-shell {
        grid-template-columns:1fr
    }

    .isv-sidebar {
        position: static;
        height: auto
    }

    .isv-topbar {
        height: auto;
        flex-wrap: wrap;
        padding: 14px
    }

    .isv-content {
        padding: 18px
    }

    .metric-strip, .site-grid, .expiry-card-grid, .expiry-metrics, .modal-grid {
        grid-template-columns:1fr
    }

    .sites-head, .status-filter {
        flex-direction: column;
        align-items: flex-start
    }

    .isv-login-card {
        padding: 34px 24px
    }

    .isv-login-brand p {
        font-size: 14px
    }

    .site-drawer {
        width: 100%
    }
}

.metric-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: #b7c4ff;
    box-shadow: 0 12px 28px rgba(53, 37, 205, .12)
}

.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.dashboard-head h2 {
    margin: 0 0 8px;
    font-size: 28px
}

.dashboard-head p {
    margin: 0;
    color: #5f6878
}

.dashboard-head-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.dashboard-head-actions > span {
    color: #7b8495;
    font-size: 13px;
    white-space: nowrap
}

.refresh-overview-btn b {
    font: inherit
}

.refresh-overview-btn .spinning {
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media (max-width: 760px) {
    .dashboard-head {
        flex-direction: column
    }

    .dashboard-head-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap
    }
}

.site-card {
    display: flex;
    flex-direction: column
}

.site-card .time-left {
    margin-top: auto
}

.site-drawer > header {
    align-items: flex-start
}

.drawer-title {
    align-items: flex-start
}

.drawer-title h2 {
    line-height: 1.25
}

.drawer-title p {
    align-items: center;
    min-height: 30px
}

.drawer-title b.ok {
    background: var(--ok-soft);
    color: #059669
}

.drawer-title b.warn {
    background: var(--warn-soft);
    color: #c2410c
}

.drawer-title b.bad {
    background: var(--bad-soft);
    color: var(--bad)
}

.drawer-title b.disabled {
    background: var(--disabled-soft);
    color: var(--disabled)
}

.drawer-loading {
    margin: 24px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--primary) !important;
    font-weight: 800
}

.site-drawer > header {
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--line-soft)
}

.drawer-title {
    gap: 18px;
    min-width: 0
}

.drawer-title > div {
    min-width: 0
}

.drawer-title h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
    color: #172033;
    word-break: break-word
}

.drawer-title p {
    gap: 10px;
    flex-wrap: wrap
}

.drawer-title p > span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #596174;
    font-size: 12px;
    font-weight: 800
}

.drawer-title b {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 12px
}

.drawer-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ebe9ff, #eef5ff);
    box-shadow: inset 0 0 0 1px #d9ddff
}

.drawer-quota {
    align-items: center;
    margin-bottom: 8px
}

.drawer-quota + .progress {
    display: block;
    width: 100%;
    margin-bottom: 0
}

.drawer-quota span {
    color: #5f6878;
    font-weight: 800
}

.drawer-quota b {
    font-size: 16px;
    color: var(--primary)
}

.quota-split div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #dce4f1;
    background: linear-gradient(180deg, #f8fbff, #eef3ff)
}

.quota-split div:first-child:after {
    content: "";
    position: absolute;
    right: -8px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #d8e1f0
}

.quota-split span {
    color: #607088;
    font-size: 13px
}

.quota-split b {
    font-size: 26px;
    color: #172033
}

.quota-split small {
    color: #8791a3
}

.wide-delete:hover {
    border-color: var(--bad);
    color: var(--bad);
    background: #fff1f2
}

.confirm-modal-card {
    width: min(100%, 460px)
}

.danger-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--bad);
    border-radius: 8px;
    background: var(--bad);
    color: #fff;
    font-weight: 800
}

.refresh-sites-btn b {
    font: inherit
}

.refresh-sites-btn .spinning {
    animation: spin .8s linear infinite
}

.status-filter .view-switch {
    flex: 0 0 auto
}

.status-filter .view-switch button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #445066;
    padding: 0
}

.status-filter .view-switch button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08)
}

.drawer-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0
}

.drawer-title-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.drawer-title-main h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.25;
    color: #172033;
    word-break: break-word
}

.drawer-open-site {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 10px;
    color: var(--primary);
    background: rgba(37, 99, 235, .08);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.drawer-open-site:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, .13);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.drawer-open-site:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
    box-shadow: none;
}

.drawer-open-site .material-symbols-outlined {
    font-size: 18px;
}

.drawer-title-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    min-height: 30px;
    flex-wrap: wrap
}

.drawer-title-meta > span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #596174;
    font-size: 12px;
    font-weight: 800
}

.drawer-title-meta > b {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px
}

.drawer-title-meta > b.ok {
    background: var(--ok-soft);
    color: #059669
}

.drawer-title-meta > b.warn {
    background: var(--warn-soft);
    color: #c2410c
}

.drawer-title-meta > b.bad {
    background: var(--bad-soft);
    color: var(--bad)
}

.drawer-title-meta > b.disabled {
    background: var(--disabled-soft);
    color: var(--disabled)
}

@media (max-width: 760px) {
    .drawer-title-meta {
        padding-left: 0
    }

    .status-filter .view-switch {
        margin-bottom: 4px
    }
}

.site-list-table .clickable-row {
    cursor: pointer
}

.site-list-table .clickable-row:hover {
    background: #f7f9ff
}

.site-list-table .quota-cell {
    display: grid;
    grid-template-columns:minmax(150px, 1fr) 58px;
    align-items: center;
    gap: 16px;
    max-width: 260px
}

.quota-cell-main {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.quota-cell-main .mini-bar {
    width: 100%;
    margin: 0
}

.quota-cell-main small {
    color: #64748b;
    font-size: 13px
}

.site-list-table .quota-cell > b {
    display: grid;
    place-items: center;
    min-width: 50px;
    height: 34px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--primary);
    font-size: 13px
}

.site-grid .site-card .time-left {
    margin-top: 0;
    padding: 14px 22px 22px !important
}

.site-grid .site-card .progress {
    margin-top: 4px
}

.site-grid .site-card .quota-line {
    padding-top: 2px
}

.site-grid {
    align-items: start
}

.site-grid .site-card {
    min-height: 0
}

.site-grid .create-card {
    min-height: 292px
}

.drawer-manager-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e5ecff;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px
}

.expiry-metrics {
    align-items: stretch
}

.expiry-metrics article {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 138px;
    padding: 24px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.expiry-metrics article:after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(79, 70, 229, .06)
}

.expiry-metrics article:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(28, 39, 70, .1)
}

.expiry-metrics article > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 28px
}

.expiry-metrics article em {
    display: block;
    color: #607088;
    font-style: normal;
    font-weight: 800
}

.expiry-metrics article strong {
    margin: 10px 0 4px;
    font-size: 34px;
    line-height: 1
}

.expiry-metrics article small {
    color: #7b8495
}

.expiry-metrics .danger > span {
    background: #fff1f2;
    color: #e11d48
}

.expiry-metrics .warn > span {
    background: #fffbeb;
    color: #d97706
}

.expiry-metrics .info > span {
    background: #eff6ff;
    color: #2563eb
}

.expiry-metrics .ok > span {
    background: #ecfdf5;
    color: #059669
}

.expiry-card-grid {
    gap: 16px
}

.expiry-card {
    padding: 17px
}

.expiry-card-title {
    gap: 9px;
    padding-right: 76px
}

.expiry-card-title > span {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 19px
}

.expiry-card strong {
    font-size: 16px
}

.expiry-card header p {
    margin: 9px 0 0;
    padding-left: 0;
    text-align: left
}

.expiry-card em {
    padding: 5px 9px;
    font-size: 11px
}

.expiry-card dl {
    margin: 16px 0
}

.expiry-card dl div {
    padding: 9px 0
}

.expiry-card footer button {
    height: 32px;
    padding: 0 11px
}

.quota-normal i {
    background: linear-gradient(90deg, var(--primary), var(--primary-2)) !important
}

.quota-warning i {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important
}

.quota-danger i {
    background: linear-gradient(90deg, #e11d48, #fb7185) !important
}

.site-card h3, .site-info strong, .expiry-card-title strong {
    max-width: 17em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.site-card header > div {
    min-width: 0
}

.site-list-table .site-info > div {
    min-width: 0
}

.site-grid .site-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.site-grid .site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(53, 37, 205, .12)
}

.site-list-table .clickable-row {
    transition: background .16s ease, transform .16s ease
}

.site-list-table .clickable-row:hover {
    transform: translateX(3px)
}

.drawer-mask {
    animation: drawerMaskIn .22s ease both
}

.site-drawer {
    animation: drawerSlideIn .32s cubic-bezier(.16, 1, .3, 1) both
}

@keyframes drawerMaskIn {
    from {
        background: rgba(15, 23, 42, 0);
        backdrop-filter: blur(0)
    }
    to {
        background: rgba(15, 23, 42, .34);
        backdrop-filter: blur(5px)
    }
}

@keyframes drawerSlideIn {
    from {
        opacity: .7;
        transform: translateX(36px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.timeline {
    position: relative
}

.timeline article {
    position: relative
}

.timeline article:not(:last-child):after {
    content: "";
    position: absolute;
    left: 10px;
    top: 26px;
    bottom: -18px;
    width: 1px;
    background: #dfe7f6
}

.timeline article > span {
    position: relative;
    z-index: 1;
    background: #fff
}

.risk-panel header h2 .material-symbols-outlined {
    color: var(--bad)
}

.risk-mini-grid {
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px
}

.risk-mini-grid article {
    min-width: 0;
    padding: 14px
}

.risk-mini-grid .risk-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffe4e6;
    color: #e11d48;
    font-weight: 800
}

.risk-mini-grid button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px;
    background: #fff !important;
    color: var(--primary) !important
}

.risk-mini-grid strong {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.risk-mini-grid article {
    transition: transform .18s ease, box-shadow .18s ease
}

.risk-mini-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(225, 29, 72, .08)
}

.dashboard-grid .panel {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.dashboard-grid .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(28, 39, 70, .08);
    border-color: #c8d3ef
}

.expiry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.expiry-head h2 {
    margin: 0 0 8px;
    font-size: 28px
}

.expiry-head p {
    margin: 0;
    color: #5f6878
}

.refresh-expiry-btn b {
    font: inherit
}

.refresh-expiry-btn .spinning {
    animation: spin .8s linear infinite
}

.expiry-card-grid {
    grid-template-columns:repeat(auto-fill, minmax(205px, 235px));
    align-items: start
}

.expiry-card {
    cursor: pointer
}

.expiry-card-title {
    padding-right: 68px
}

.expiry-avatar {
    display: grid !important;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5ecff !important;
    color: var(--primary) !important;
    font-weight: 800
}

.mobile-toggle button {
    transition: background .16s ease, border-color .16s ease, transform .16s ease
}

.mobile-toggle button:hover {
    transform: translateY(-1px);
    border-color: #b7c4ff;
    background: #eef3ff
}

.table-mobile {
    justify-content: flex-start
}

.isv-pagination label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280
}

.isv-pagination select {
    height: 34px;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    background: #fff;
    padding: 0 28px 0 10px;
    color: #283044;
    outline: none
}

.expiry-loading {
    margin: 22px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--primary) !important;
    font-weight: 800
}

.expiry-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.expiry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(28, 39, 70, .09)
}

.expiry-card header {
    display: block;
    position: relative
}

.expiry-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 92px
}

.expiry-card-title > span {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff1f2;
    color: #e11d48
}

.expiry-card header p {
    margin: 12px 0 0;
    padding-left: 54px;
    color: #e11d48;
    font-weight: 800
}

.expiry-card header em {
    position: absolute;
    right: 0;
    top: 4px
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px
}

.mobile-toggle button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    padding: 0
}

.mobile-toggle .material-symbols-outlined {
    font-size: 18px
}

.expiry-metrics {
    gap: 18px
}

.expiry-metrics article {
    height: 126px;
    padding: 20px 20px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(28, 39, 70, .04);
    overflow: hidden
}

.expiry-metrics article:after {
    display: none
}

.expiry-metrics article:before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 99px 99px 0;
    background: var(--primary)
}

.expiry-metrics article:hover {
    transform: translateY(-3px);
    border-color: #c8d3ef;
    box-shadow: 0 10px 24px rgba(28, 39, 70, .08)
}

.expiry-metrics article > span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 22px
}

.expiry-metrics article div {
    min-width: 0
}

.expiry-metrics article em {
    font-size: 13px;
    color: #64748b
}

.expiry-metrics article strong {
    margin: 8px 0 5px;
    font-size: 32px;
    font-weight: 900;
    color: #172033
}

.expiry-metrics article small {
    font-size: 12px;
    color: #7b8495
}

.expiry-metrics .danger {
    border-color: #fecdd3
}

.expiry-metrics .danger:before {
    background: #e11d48
}

.expiry-metrics .danger strong {
    color: #e11d48
}

.expiry-metrics .warn {
    border-color: #fde68a
}

.expiry-metrics .warn:before {
    background: #d97706
}

.expiry-metrics .warn strong {
    color: #d97706
}

.expiry-metrics .info {
    border-color: #bfdbfe
}

.expiry-metrics .info:before {
    background: #2563eb
}

.expiry-metrics .info strong {
    color: #2563eb
}

.expiry-metrics .ok {
    border-color: #bbf7d0
}

.expiry-metrics .ok:before {
    background: #059669
}

.expiry-metrics .ok strong {
    color: #059669
}

.expiry-metrics .danger > span {
    background: #fff1f2;
    color: #e11d48
}

.expiry-metrics .warn > span {
    background: #fffbeb;
    color: #d97706
}

.expiry-metrics .info > span {
    background: #eff6ff;
    color: #2563eb
}

.expiry-metrics .ok > span {
    background: #ecfdf5;
    color: #059669
}

.metric-card > .material-symbols-outlined {
    transition: transform .18s ease
}

.metric-card:hover > .material-symbols-outlined {
    transform: scale(1.12) rotate(-4deg)
}

.metric-card.info {
    border-left: 4px solid var(--primary)
}

.metric-card.ok {
    border-left: 4px solid var(--ok)
}

.metric-card.warn {
    border-left: 4px solid var(--warn)
}

.metric-card:not(.info):not(.ok):not(.warn):not(.bad) {
    border-left: 4px solid #9aa6b8
}

.svg-donut {
    width: 190px;
    height: 190px;
    margin: 28px auto 24px;
    display: grid;
    place-items: center;
    position: relative;
    background: none !important
}

.svg-donut svg {
    grid-area: 1/1;
    width: 190px;
    height: 190px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 8px 18px rgba(53, 37, 205, .08))
}

.donut-track, .donut-segment {
    fill: none;
    stroke-width: 18;
    stroke-linecap: round
}

.donut-track {
    stroke: #e5ebf4
}

.donut-segment {
    transition: stroke-dasharray .4s ease, stroke-dashoffset .4s ease
}

.donut-segment.ok {
    stroke: var(--ok)
}

.donut-segment.trial {
    stroke: var(--primary)
}

.donut-segment.bad {
    stroke: var(--bad)
}

.svg-donut > div {
    grid-area: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eef2f7;
    z-index: 1
}

.svg-donut strong {
    font-size: 26px
}

.svg-donut span {
    margin-top: 3px;
    color: #6b7280
}

.action-modal-card {
    width: min(100%, 460px)
}

.action-field {
    display: block;
    margin: 26px 0
}

.action-field span {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #283044
}

.action-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    outline: none
}

.activity-panel header {
    padding: 0 0 18px;
    border-bottom: 0
}

.activity-panel header button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 800
}

.activity-panel h2 {
    margin: 0
}

.log-modal-card {
    width: min(100%, 980px);
    padding: 0;
    overflow: hidden
}

.log-modal-card > header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line)
}

.log-toolbar {
    display: flex;
    gap: 12px;
    padding: 18px 28px;
    background: #f7f9ff;
    border-bottom: 1px solid var(--line-soft)
}

.log-toolbar label {
    position: relative;
    flex: 1
}

.log-toolbar label span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280
}

.log-toolbar input {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px 0 44px;
    outline: none;
    background: #fff
}

.log-toolbar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12)
}

.log-table-wrap {
    max-height: 520px;
    overflow: auto
}

.log-table td {
    vertical-align: top
}

.log-table strong, .log-table small {
    display: block
}

.log-table small {
    margin-top: 5px;
    color: #6b7280
}

.log-action-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.log-pagination {
    padding: 16px 28px;
    border-top: 1px solid var(--line);
    background: #fff
}

.log-pagination span {
    color: #6b7280
}

.log-pagination div {
    display: flex;
    align-items: center;
    gap: 8px
}

.log-pagination button, .log-pagination b {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    background: #fff
}

.log-pagination b {
    background: var(--primary);
    color: #fff
}

.action-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .14)
}

/* ISV page refinement overrides */
.expiry-card-grid {
    grid-template-columns:repeat(auto-fill, minmax(280px, 320px)) !important;
    gap: 18px !important;
    align-items: start
}

.expiry-card {
    padding: 18px !important
}

.expiry-card-title {
    gap: 10px !important;
    padding-right: 78px !important
}

.expiry-card-title strong {
    max-width: 14em !important
}

.expiry-card header p {
    margin: 11px 0 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    color: #e11d48;
    font-weight: 800
}

.expiry-card.warn {
    border-top-color: #d97706 !important
}

.expiry-card.warn em {
    background: #fffbeb !important;
    color: #d97706 !important
}

.expiry-card.info {
    border-top-color: #2563eb !important
}

.expiry-card.info em {
    background: #eff6ff !important;
    color: #2563eb !important
}

.risk-mini-grid {
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 14px !important
}

.risk-mini-grid article {
    padding: 15px 16px !important
}

.risk-mini-grid strong {
    max-width: 11em !important
}

.timeline {
    padding-left: 2px;
    padding-top: 12px;
}

.timeline article {
    gap: 14px;
    margin: 0;
    padding: 0 0 20px 0
}

.timeline article:last-child {
    padding-bottom: 0
}

.timeline article:not(:last-child):after {
    left: 11px !important;
    top: 27px !important;
    bottom: 0 !important;
    width: 2px !important;
    background: linear-gradient(180deg, #dbe4f3, #eef3ff) !important
}

.timeline article > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--primary);
    font-size: 17px;
    box-shadow: 0 0 0 4px #fff
}

.isv-pagination label {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d7dfef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(28, 39, 70, .04)
}

.isv-pagination select {
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: #eef3ff;
    padding: 0 26px 0 10px;
    color: var(--primary);
    font-weight: 800
}

/* ISV expiry and pagination polish */
.isv-pagination label {
    height: 42px !important;
    padding: 0 10px 0 14px !important;
    border: 1px solid #cfd9ec !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #fff, #f8faff) !important;
    color: #64748b !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(28, 39, 70, .06) !important
}

.isv-pagination select {
    height: 30px !important;
    min-width: 68px !important;
    margin-left: 4px !important;
    border: 1px solid #dbe4f3 !important;
    border-radius: 9px !important;
    background: #eef4ff !important;
    color: var(--primary) !important;
    font-weight: 900 !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7) !important
}

.isv-pagination select:focus {
    border-color: #b7c4ff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12) !important
}

.expiry-card header p {
    background: transparent !important;
    color: #e11d48 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important
}

.expiry-card header p b {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important
}

.expiry-card footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-top: 14px !important
}

.expiry-card footer button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-width: 82px !important;
    padding: 0 15px !important;
    border: 1px solid #b7c4ff !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--primary) !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 14px rgba(53, 37, 205, .08) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important
}

.expiry-card footer button:hover {
    transform: translateY(-1px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 20px rgba(53, 37, 205, .14) !important
}

/* ISV site list pagination */
.isv-pagination label {
    height: 38px !important;
    padding: 0 8px 0 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important
}

.isv-pagination select {
    height: 28px !important;
    min-width: 54px !important;
    width: 54px !important;
    margin-left: 4px !important;
    padding: 0 18px 0 8px !important
}

.site-page-links {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important
}

.site-page-links button {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #d7dfef !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 800 !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important
}

.site-page-links button:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    border-color: #b7c4ff !important;
    box-shadow: 0 8px 16px rgba(53, 37, 205, .1) !important
}

.site-page-links button.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(53, 37, 205, .2) !important
}

.site-page-links button:disabled {
    background: #f3f6fb !important;
    color: #a8b2c3 !important
}

.log-page-links {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important
}

.log-page-links button {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #d7dfef !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 800 !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important
}

.log-page-links button:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    border-color: #b7c4ff !important;
    box-shadow: 0 8px 16px rgba(53, 37, 205, .1) !important
}

.log-page-links button.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(53, 37, 205, .2) !important
}

.log-page-links button:disabled {
    background: #f3f6fb !important;
    color: #a8b2c3 !important
}

.status-filter {
    flex-wrap: wrap
}

.site-filter-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    height: 38px;
    margin-left: 2px
}

.site-filter-search .material-symbols-outlined {
    position: absolute;
    left: 13px;
    color: #7b8495;
    font-size: 20px;
    pointer-events: none
}

.site-filter-search input {
    width: 100%;
    height: 38px;
    border: 1px solid #d7dfef;
    border-radius: 999px;
    background: #fff;
    padding: 0 14px 0 40px;
    outline: none;
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(28, 39, 70, .04);
    transition: border-color .16s ease, box-shadow .16s ease
}

.site-filter-search input:focus {
    border-color: #b7c4ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12)
}

.site-filter-query {
    height: 38px !important;
    border: 1px solid var(--primary) !important;
    border-radius: 999px !important;
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0 20px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 18px rgba(53, 37, 205, .14);
    transition: transform .16s ease, box-shadow .16s ease !important
}

.site-filter-query:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(53, 37, 205, .18)
}

/* ISV login compact layout */
.isv-login-main {
    min-height: calc(100vh - 42px) !important;
    padding: 20px 24px !important
}

.isv-login-brand {
    margin-bottom: 20px !important
}

.isv-login-logo {
    width: 68px !important;
    height: 68px !important;
    border-radius: 18px !important
}

.isv-login-logo span {
    font-size: 38px !important
}

.isv-login-brand h1 {
    margin: 18px 0 6px !important;
    font-size: 20px !important
}

.isv-login-brand p {
    font-size: 14px !important;
    letter-spacing: .16em !important
}

.isv-login-card {
    width: min(100%, 430px) !important;
    padding: 34px 38px !important;
    border-radius: 20px !important
}

.isv-login-card header {
    margin-bottom: 22px !important
}

.isv-login-card h2 {
    margin-bottom: 8px !important;
    font-size: 21px !important
}

.isv-login-card p {
    font-size: 14px !important
}

.isv-dark-field {
    margin-bottom: 16px !important
}

.isv-dark-field > span {
    margin-bottom: 8px !important;
    font-size: 15px !important
}

.isv-dark-field input {
    height: 50px !important;
    padding: 0 52px !important;
    font-size: 14px !important
}

.isv-dark-field div > span {
    left: 16px !important;
    font-size: 21px !important
}

.isv-dark-field button {
    right: 8px !important;
    width: 38px !important;
    height: 38px !important
}

.isv-login-options {
    margin-bottom: 20px !important
}

.isv-login-options label, .isv-login-options a {
    font-size: 14px !important
}

.isv-login-options input {
    width: 18px !important;
    height: 18px !important
}

.isv-login-submit {
    height: 52px !important;
    border-radius: 10px !important;
    font-size: 17px !important
}

.isv-login-more {
    margin-top: 24px !important;
    padding-top: 22px !important
}

.isv-login-more > div {
    gap: 16px !important;
    margin-top: 14px !important
}

.isv-login-more button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important
}

.isv-login-footer {
    padding: 0 16px 14px !important;
    font-size: 12px !important
}

.isv-login-more {
    display: none !important
}

.isv-login-options {
    display: none !important;
    margin: 0 !important
}

.isv-login-brand-head {
    position: fixed;
    left: 34px;
    top: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(520px, calc(100vw - 68px));
    color: #fff
}

.isv-login-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6156ff, #3b2bd6);
    box-shadow: 0 18px 46px rgba(79, 70, 229, .32)
}

.isv-login-brand-mark span {
    font-size: 28px;
    color: #dad7ff
}

.isv-login-brand-head h1 {
    max-width: 430px;
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.isv-login-brand-head p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em
}

.isv-brand h1 {
    max-width: 156px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* ISV dashboard visual system polish */
.isv-shell {
    --bg: #f6f8fc;
    --surface: #fff;
    --surface-soft: #f4f7ff;
    --surface-low: #edf3ff;
    --text: #172033;
    --muted: #687386;
    --line: #d9e1ee;
    --line-soft: #edf1f7;
    --primary: #3f35d0;
    --primary-2: #5a54e8;
    --primary-soft: #ecebff;
    --ok: #059669;
    --ok-soft: #e8f8f0;
    --warn: #d97706;
    --warn-soft: #fff7db;
    --bad: #dc2626;
    --bad-soft: #fff0f2;
    --disabled: #64748b;
    --disabled-soft: #eef2f7;
    color: var(--text);
    font-size: 13px
}

.isv-shell button, .isv-shell input, .isv-shell select {
    font-size: 13px
}

.isv-sidebar {
    width: 260px;
    background: #fbfcff;
    border-right-color: #e5ebf5;
    padding: 24px 14px
}

.isv-brand {
    gap: 12px;
    margin-bottom: 34px;
    padding: 0 6px
}

.isv-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(63, 53, 208, .12)
}

.isv-brand-icon .material-symbols-outlined {
    font-size: 23px
}

.isv-brand h1 {
    max-width: 160px;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #1f2a44
}

.isv-brand p {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a8597
}

.isv-nav {
    gap: 8px
}

.isv-nav button, .isv-logout {
    min-height: 44px;
    border-radius: 10px;
    padding: 0 12px;
    gap: 12px;
    color: #485366;
    font-size: 13px;
    font-weight: 700
}

.isv-nav button .material-symbols-outlined, .isv-logout .material-symbols-outlined {
    font-size: 20px;
    color: #768196
}

.isv-nav button.active {
    background: #eeedff;
    color: var(--primary);
    border-right: 0;
    box-shadow: inset 3px 0 0 var(--primary)
}

.isv-nav button.active .material-symbols-outlined {
    color: var(--primary)
}

.isv-nav button:hover, .isv-logout:hover {
    background: #f0f4ff;
    color: #25304a
}

.isv-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.isv-nav-parent {
    cursor: pointer
}

.isv-nav-parent em.material-symbols-outlined {
    margin-left: auto;
    font-size: 18px;
    color: #94a3b8;
    transition: transform .22s ease, color .22s ease
}

.isv-nav-group.active .isv-nav-parent {
    background: #f8f7ff;
    color: #25304a
}

.isv-nav-group.open .isv-nav-parent em.material-symbols-outlined {
    color: var(--primary);
    transform: rotate(180deg)
}

.isv-nav-sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 16px;
    padding-left: 12px;
    border-left: 1px solid #e4e9f3
}

.isv-nav-sub button {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px
}

.isv-nav-sub button .material-symbols-outlined {
    font-size: 18px
}

.isv-sidebar-foot {
    padding-top: 18px
}

.isv-primary, .isv-secondary, .link-btn, .site-filter-query {
    min-height: 34px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1
}

.isv-primary {
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(63, 53, 208, .14)
}

.isv-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(63, 53, 208, .18)
}

.isv-secondary {
    border-color: #d6deec;
    background: #fff;
    color: #334155;
    box-shadow: 0 2px 6px rgba(28, 39, 70, .04)
}

.isv-secondary:hover:not(:disabled) {
    border-color: #bdc9dc;
    background: #f8fbff;
    transform: translateY(-1px)
}

.isv-primary.wide {
    height: 42px;
    font-size: 13px;
    border-radius: 10px
}

.isv-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border-color: #dbe3ef;
    color: #5d6678
}

.isv-topbar {
    height: 58px;
    padding: 0 26px;
    background: rgba(248, 250, 253, .94);
    border-bottom-color: #e4eaf3
}

.isv-crumb {
    font-size: 13px;
    color: #7a8597
}

.isv-crumb strong {
    font-size: 13px;
    color: #334155
}

.isv-top-actions {
    gap: 12px
}

.isv-profile {
    gap: 10px
}

.profile-img {
    width: 32px;
    height: 32px;
    font-size: 12px;
    background: #e8edf7;
    color: #64748b
}

.profile-img .material-symbols-outlined {
    font-size: 19px;
    color: #64748b
}

.isv-profile strong {
    font-size: 13px
}

.isv-profile span {
    font-size: 10px;
    letter-spacing: .08em;
    color: #8a94a6
}

.isv-content {
    padding: 28px 30px
}

.dashboard-head, .sites-head, .expiry-head {
    margin-bottom: 20px
}

.dashboard-head h2, .sites-head h2, .expiry-head h2 {
    margin: 0 0 6px;
    font-size: 24px !important;
    line-height: 1.2;
    font-weight: 900;
    color: #152033;
    letter-spacing: 0
}

.dashboard-head p, .sites-head p, .expiry-head p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted)
}

.dashboard-head-actions span {
    font-size: 12px;
    color: #7a8597
}

.metric-strip {
    gap: 14px
}

.metric-card, .panel, .site-card, .expiry-card, .site-list-panel {
    border-color: #dfe6f2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(28, 39, 70, .035)
}

.metric-card {
    min-height: 104px;
    padding: 17px 18px;
    border-left-width: 3px !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(28, 39, 70, .08)
}

.metric-card span {
    font-size: 12px;
    color: #697589;
    font-weight: 700
}

.metric-card strong {
    margin: 10px 0 3px;
    font-size: 24px;
    line-height: 1.05
}

.metric-card small {
    font-size: 11px;
    color: #8a94a6
}

.metric-card > .material-symbols-outlined {
    font-size: 24px
}

.dashboard-grid {
    gap: 20px;
    margin-top: 24px
}

.panel header {
    padding: 18px 20px;
    border-bottom-color: #edf1f7
}

.panel h2, .activity-panel h2, .status-panel h2 {
    font-size: 16px !important;
    line-height: 1.3;
    font-weight: 900;
    color: #1f2a44
}

.panel p {
    font-size: 12px;
    color: #748096
}

.panel header button, .quota-panel button, .activity-panel header button {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d6deec !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--primary) !important;
    font-size: 12px;
    font-weight: 900 !important
}

.risk-mini-grid {
    gap: 12px !important;
    padding: 18px !important
}

.risk-mini-grid article {
    padding: 14px !important;
    border-color: #fee4e8;
    border-radius: 10px;
    background: #fff
}

.risk-mini-grid strong {
    font-size: 13px
}

.risk-mini-grid p, .risk-mini-grid small {
    font-size: 12px
}

.risk-mini-grid button {
    height: 30px !important;
    font-size: 12px !important
}

.status-panel {
    padding: 22px
}

.status-panel li {
    margin: 12px 0;
    font-size: 13px;
    color: #586477
}

.status-panel b {
    font-size: 12px;
    color: #344054
}

.svg-donut {
    width: 170px;
    height: 170px;
    margin: 22px auto 18px
}

.svg-donut svg {
    width: 170px;
    height: 170px
}

.svg-donut > div {
    width: 106px;
    height: 106px
}

.svg-donut strong {
    font-size: 24px
}

.svg-donut span {
    font-size: 12px
}

.quota-panel th, .quota-panel td, .isv-table th, .isv-table td {
    padding: 13px 18px;
    font-size: 13px
}

.quota-panel th, .isv-table th {
    background: #f2f6ff;
    color: #5d6678;
    font-size: 12px;
    font-weight: 900
}

.isv-table td small {
    font-size: 12px;
    color: #8a94a6
}

.site-info > span, .expiry-avatar, .drawer-manager-avatar, .risk-avatar {
    font-size: 13px;
    font-weight: 900
}

.site-info strong {
    font-size: 13px;
    color: #1f2a44
}

.status-pill {
    min-width: 52px;
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 900
}

.status-pill.ok {
    background: #e9f8f1;
    color: #047857
}

.status-pill.warn {
    background: #fff4d6;
    color: #b45309
}

.status-pill.bad {
    background: #fff0f2;
    color: #be123c
}

.status-pill.disabled {
    background: #eef2f7;
    color: #64748b
}

.link-btn {
    height: 30px;
    margin-right: 8px;
    padding: 0 10px;
    border: 1px solid #d8e0ef;
    background: #fff;
    border-radius: 8px;
    color: var(--primary)
}

.sites-head {
    gap: 18px
}

.sites-tools {
    gap: 10px
}

.status-filter {
    gap: 10px;
    margin: 18px 0 22px;
    font-size: 13px
}

.status-filter > span {
    color: #687386;
    font-weight: 800
}

.status-filter button {
    height: 34px;
    padding: 0 16px;
    background: #eef4ff;
    color: #334155;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800
}

.status-filter button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px rgba(63, 53, 208, .14)
}

.status-filter em {
    font-size: 12px;
    color: #8a94a6
}

.view-switch {
    height: 36px;
    padding: 3px;
    border-color: #d6deec;
    border-radius: 10px;
    background: #edf3ff
}

.view-switch button, .status-filter .view-switch button {
    width: 30px !important;
    height: 28px !important;
    border-radius: 8px !important;
    padding: 0 !important
}

.view-switch .material-symbols-outlined {
    font-size: 18px
}

.site-filter-search {
    width: 238px;
    height: 34px
}

.site-filter-search input {
    height: 34px;
    border-radius: 999px;
    font-size: 12px
}

.site-filter-search .material-symbols-outlined {
    font-size: 18px
}

.site-filter-query {
    height: 34px !important;
    padding: 0 17px !important;
    font-size: 12px !important
}

.site-grid {
    gap: 18px
}

.site-card header {
    padding: 17px 18px
}

.site-card h3 {
    font-size: 16px !important;
    line-height: 1.25
}

.site-card p {
    font-size: 12px
}

.site-card dl {
    gap: 12px;
    padding: 16px 18px
}

.site-card dt {
    font-size: 12px
}

.site-card dd {
    font-size: 13px
}

.quota-line {
    padding: 0 18px 7px;
    font-size: 12px
}

.site-card .progress {
    margin: 0 18px;
    width: calc(100% - 36px)
}

.time-left {
    padding: 14px 18px 18px !important;
    font-size: 12px
}

.create-card {
    min-height: 300px;
    border-radius: 12px
}

.create-card span {
    width: 44px;
    height: 44px;
    font-size: 26px
}

.create-card strong {
    margin-top: 16px;
    font-size: 16px
}

.create-card small {
    font-size: 12px
}

.quota-cell {
    grid-template-columns:minmax(150px, 1fr) 48px;
    gap: 12px
}

.quota-cell b {
    font-size: 12px
}

.mini-bar, .progress {
    height: 6px
}

.isv-pagination {
    margin-top: 26px;
    padding-top: 20px
}

.isv-pagination label {
    height: 34px !important;
    font-size: 12px !important
}

.isv-pagination select {
    height: 26px !important;
    font-size: 12px !important
}

.site-page-links button, .log-page-links button {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important
}

.expiry-metrics {
    gap: 14px
}

.expiry-metrics article {
    height: 108px;
    padding: 17px 18px;
    border-radius: 12px
}

.expiry-metrics article > span {
    width: 34px;
    height: 34px;
    font-size: 20px
}

.expiry-metrics article em {
    font-size: 12px
}

.expiry-metrics article strong {
    font-size: 28px
}

.expiry-metrics article small {
    font-size: 11px
}

.expiry-section {
    margin-top: 28px
}

.expiry-section h2 {
    font-size: 16px;
    color: #1f2a44
}

.expiry-section b {
    font-size: 11px;
    padding: 5px 11px
}

.expiry-card-grid {
    grid-template-columns:repeat(auto-fill, minmax(286px, 320px)) !important;
    gap: 16px !important
}

.expiry-card {
    padding: 16px !important;
    border-top-width: 4px !important
}

.expiry-card-title strong {
    font-size: 14px !important
}

.expiry-card header p {
    font-size: 12px !important
}

.expiry-card em {
    font-size: 10px !important;
    border-radius: 999px
}

.expiry-card dl {
    margin: 14px 0 !important
}

.expiry-card dl div {
    padding: 9px 0 !important
}

.expiry-card dt, .expiry-card dd {
    font-size: 12px
}

.expiry-card footer button {
    height: 32px !important;
    font-size: 12px !important
}

.site-drawer {
    width: min(100%, 580px);
    padding: 28px
}

.drawer-title-main h2 {
    font-size: 22px !important
}

.drawer-title-meta span, .drawer-title-meta b {
    font-size: 12px
}

.drawer-logo {
    width: 48px;
    height: 48px
}

.drawer-actions {
    gap: 12px;
    margin: 24px 0
}

.drawer-actions button {
    height: 82px;
    border-radius: 12px;
    font-size: 13px
}

.site-drawer h3 {
    font-size: 15px
}

.info-box {
    padding: 17px
}

.info-box dt, .info-box dd, .info-box span, .info-box b, .info-box small {
    font-size: 12px
}

.site-drawer footer {
    margin: 28px -28px -28px;
    padding: 20px 28px
}

.isv-modal-card {
    border-radius: 14px;
    padding: 24px
}

.isv-modal-card h2 {
    font-size: 18px
}

.isv-modal-card p {
    font-size: 12px
}

.modal-grid {
    gap: 16px;
    margin: 24px 0
}

.modal-grid span, .action-field span {
    font-size: 13px
}

.modal-grid input, .action-field input {
    height: 40px;
    font-size: 13px
}

.isv-toast {
    font-size: 13px;
    border-radius: 10px
}

.mobile-toggle span {
    font-size: 12px
}

.mobile-toggle button {
    width: 26px;
    height: 26px;
    border-radius: 8px
}

.mobile-toggle .material-symbols-outlined {
    font-size: 17px
}

/* ISV dashboard final alignment tweaks */
.risk-panel header {
    min-height: 68px !important;
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #edf1f7 !important
}

.activity-panel header {
    min-height: 65px !important;
    padding: 0px 0px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #edf1f7 !important
}

.risk-panel header h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    line-height: 32px !important
}

.activity-panel header h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    line-height: 32px !important
}

.risk-panel header button {
    align-self: center !important
}

.activity-panel header button {
    align-self: center !important
}

.risk-mini-grid article {
    display: grid !important;
    grid-template-columns:38px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 13px !important
}

.risk-mini-grid article button {
    justify-self: end !important;
    margin-left: 8px !important
}

/* ISV site manager mobile alignment */
.site-card dl .mobile-toggle,
.site-list-table .table-mobile,
.info-box.manager .mobile-toggle {
    justify-content: flex-start !important;
    text-align: left !important
}

.site-card dl .mobile-toggle span,
.site-list-table .table-mobile span,
.info-box.manager .mobile-toggle span {
    min-width: 0;
    text-align: left
}

/* 创建卡片只在网格视图中跟随同一行数据卡片高度，避免固定高度破坏卡片尺寸一致性。 */
.site-grid .create-card {
    align-self: stretch;
    height: 100%;
    min-height: 255px !important;
    box-sizing: border-box
}

/* 没有真实服务商动态时只展示空状态，避免用兜底日志误导运营判断。 */
.timeline-empty {
    min-height: 96px;
    justify-content: center;
    text-align: center;
    color: #7b8495
}

.timeline-empty strong {
    color: #7b8495
}

.quota-empty-text {
    display: block;
    color: #7b8495;
    text-align: center
}

/* ISV brand config */
.brand-page {
    animation: fadeUp .38s ease both
}

.brand-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px
}

.brand-config-head h2 {
    margin: 0;
    font-size: 24px;
    color: #172033
}

.brand-config-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px
}

.brand-config-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr);
    width: 100%;
    gap: 22px;
    align-items: start
}

.brand-config-form header {
    margin-bottom: 20px
}

.brand-config-form header h2 {
    margin: 0;
    font-size: 18px;
    color: #172033
}

.brand-config-form header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7
}

.brand-config-form label {
    display: block;
    margin-bottom: 16px
}

.brand-config-form label span {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 800;
    font-size: 13px
}

.brand-template-field {
    grid-column: 1/-1;
    display: block
}

.brand-template-field > span {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 800;
    font-size: 13px
}

.brand-template-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: thin
}

.brand-template-grid article {
    position: relative;
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 14px;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    background: #fff;
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease
}

.brand-template-grid article:hover {
    transform: translateY(-2px);
    border-color: #c7d7f2;
    box-shadow: 0 12px 26px rgba(30, 41, 59, .08)
}

.brand-template-grid article.active {
    border-color: var(--primary);
    background: linear-gradient(180deg, #f8f8ff, #fff);
    box-shadow: 0 14px 30px rgba(79, 70, 229, .12)
}

.brand-template-grid header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important
}

.brand-template-grid strong,
.brand-template-grid small {
    display: block
}

.brand-template-grid strong {
    color: #172033;
    font-size: 14px;
    font-weight: 900
}

.brand-template-grid small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55
}

.brand-template-grid em {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 900
}

.brand-template-grid footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px
}

.brand-template-grid button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 850;
    transition: background .18s ease, border-color .18s ease, color .18s ease
}

.brand-template-preview {
    border: 1px solid #d8e2f0;
    background: #fff;
    color: #475569
}

.brand-template-preview:hover {
    border-color: #c7d7f2;
    background: #f8fbff;
    color: var(--primary)
}

.brand-template-preview .material-symbols-outlined {
    font-size: 16px
}

.brand-template-select {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff
}

.brand-template-grid article.active .brand-template-select {
    background: #eef2ff;
    color: var(--primary)
}

.brand-template-field > small {
    display: block;
    margin-top: 9px;
    color: #64748b;
    font-size: 12px
}

.brand-config-form input,
.brand-config-form select {
    width: 100%;
    height: 42px;
    border: 1px solid #dce4f1;
    border-radius: 10px;
    padding: 0 13px;
    color: #172033;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease
}

.brand-config-form input:focus,
.brand-config-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .11)
}

.brand-upload-field input[type=file] {
    display: none
}

.brand-upload-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 96px;
    height: 96px;
    padding: 0;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease
}

.brand-upload-btn:hover {
    border-color: var(--primary);
    background: #f8fbff;
    color: var(--primary)
}

.brand-upload-btn:disabled {
    cursor: not-allowed;
    opacity: .62;
    box-shadow: none
}

.brand-upload-btn .material-symbols-outlined {
    font-size: 22px
}

.brand-upload-btn b {
    font: inherit
}

.brand-upload-field small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all
}

.upload-preview-card {
    position: relative;
    margin-top: 12px;
    width: 96px;
    height: 96px;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    overflow: hidden
}

.upload-preview-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, .62);
    opacity: 0;
    content: "";
    transition: opacity .2s ease
}

.upload-preview-card:hover::before {
    opacity: 1
}

.upload-preview-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity .2s ease
}

.upload-preview-card:hover .upload-preview-actions {
    opacity: 1
}

.upload-preview-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    transition: color .18s ease, transform .18s ease, background .18s ease
}

.upload-preview-actions button:hover {
    transform: translateY(-1px);
    background: #2563eb;
    color: #fff
}

.upload-preview-actions .material-symbols-outlined {
    display: block;
    width: 14px;
    height: 9px;
    font-size: 14px;
    line-height: 18px
}

.upload-preview-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff
}

.upload-preview-card audio,
.upload-preview-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.upload-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    color: #172033;
    text-decoration: none
}

.upload-file-card .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f5ff;
    color: var(--primary);
    font-size: 20px
}

.upload-file-card.is-excel .material-symbols-outlined {
    background: #dcfce7;
    color: #15803d
}

.upload-file-card.is-word .material-symbols-outlined {
    background: #dbeafe;
    color: #1d4ed8
}

.upload-file-card.is-audio .material-symbols-outlined {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #c2410c;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .24)
}

.upload-file-card.is-file .material-symbols-outlined {
    background: #f1f5f9;
    color: #475569
}

.upload-file-card b {
    min-width: 0;
    flex: 1;
    max-width: 100%;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.upload-preview-modal {
    width: min(92vw, 620px)
}

.upload-preview-modal > img,
.upload-preview-modal > video {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 12px;
    background: #0f172a
}

.upload-preview-modal > audio {
    display: block;
    width: 100%
}

.upload-file-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800
}

.global-upload-mask {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px)
}

.global-upload-box {
    width: min(88vw, 320px);
    padding: 26px 24px 24px;
    border: 1px solid rgba(219, 228, 240, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .26);
    text-align: center
}

.global-upload-spinner {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 14px;
    border: 3px solid #dbeafe;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

.global-upload-box b {
    display: block;
    color: #172033;
    font-size: 15px;
    font-weight: 900
}

.global-upload-box p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6
}

.brand-config-form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px
}

.brand-preview-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff, #f7faff)
}

.brand-preview-card > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef3ff;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px #dbe4ff
}

.brand-preview-card small {
    margin-top: 18px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800
}

.brand-preview-card h3 {
    max-width: 100%;
    margin: 8px 0 0;
    color: #172033;
    font-size: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.brand-preview-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px
}

.brand-preview-card em {
    margin-top: 16px;
    color: #475569;
    font-size: 12px;
    font-style: normal
}

.brand-qrcode-preview {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin-top: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff
}

.brand-qrcode-preview img {
    max-width: 112px;
    max-height: 112px;
    border-radius: 12px
}

.brand-qrcode-preview .material-symbols-outlined {
    color: #94a3b8;
    font-size: 52px
}

@media (max-width: 980px) {
    .brand-config-grid {
        grid-template-columns:1fr
    }
}

/* ISV brand config layout polish */
.brand-config-form {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 420px)) minmax(0, 1fr);
    width: 100%;
    gap: 18px;
    padding: 22px;
    overflow: hidden
}

.brand-config-form header {
    grid-column: 1/-1;
    display: block !important;
    padding: 0 22px 18px !important;
    margin: 0 -22px !important;
    border-bottom: 1px solid #edf1f7 !important
}

.brand-config-form label {
    grid-column: span 1;
    max-width: 420px;
    margin: 0 !important
}

.brand-template-field {
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px
}

.brand-upload-field,
.brand-config-form .isv-form-error,
.brand-config-form > footer {
    grid-column: 1/-1
}

.brand-config-form .brand-upload-field {
    grid-column: 1/2;
    max-width: 420px
}

.oss-config-form {
    grid-template-columns:minmax(0, 420px) minmax(0, 1fr)
}

.oss-config-form label {
    grid-column: 1/2;
    max-width: 420px
}

.brand-config-form input,
.brand-config-form select {
    box-sizing: border-box;
    display: block
}

.brand-config-form > footer {
    margin: 4px -22px 0 !important;
    padding: 18px 22px 0;
    border-top: 1px solid #edf1f7
}

.brand-preview-card {
    box-sizing: border-box;
    padding: 24px !important;
    overflow: hidden
}

.brand-preview-card .brand-qrcode-preview {
    flex: 0 0 auto
}

@media (max-width: 720px) {
    .brand-config-head {
        align-items: flex-start;
        flex-direction: column
    }

    .brand-config-form {
        grid-template-columns:1fr;
        padding: 18px
    }
}

/* ISV confirm modal spacing */
.confirm-modal-card header {
    align-items: flex-start !important;
    padding-bottom: 20px !important
}

.confirm-modal-card header p {
    margin-top: 10px !important;
    line-height: 1.7 !important
}

.confirm-modal-card footer {
    margin-top: 8px !important;
    padding-top: 18px !important;
    border-top: 1px solid #edf1f7;
    justify-content: flex-end !important
}

/* ISV official consult leads */
.consult-leads-page {
    animation: pageFadeIn .22s ease both
}

.consult-lead-panel {
    margin-top: 22px;
    padding: 0;
    overflow: hidden
}

.consult-lead-toolbar {
    display: grid;
    grid-template-columns:repeat(3, minmax(160px, 1fr)) 150px auto;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fbff)
}

.consult-lead-toolbar label {
    position: relative;
    display: block
}

.consult-lead-toolbar label span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8b96aa
}

.consult-lead-toolbar input,
.consult-lead-toolbar select {
    width: 100%;
    height: 38px;
    border: 1px solid #d7dfef;
    border-radius: 10px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease
}

.consult-lead-toolbar input {
    padding: 0 12px 0 38px
}

.consult-lead-toolbar select {
    padding: 0 12px
}

.consult-lead-toolbar input:focus,
.consult-lead-toolbar select:focus {
    border-color: #b7c4ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .11)
}

.consult-lead-table-wrap {
    overflow-x: auto
}

.consult-lead-table th,
.consult-lead-table td {
    vertical-align: top
}

.consult-lead-table th {
    text-align: center
}

.consult-lead-table td {
    text-align: center
}

.consult-lead-table td > strong {
    display: block;
    color: #182033;
    font-size: 13px;
    line-height: 1.4;
    text-align: center
}

.lead-source-pill,
.lead-status-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.lead-source-pill {
    background: #eef3ff;
    color: #3554d1;
    cursor: help;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease
}

.lead-source-pill:hover {
    transform: translateY(-1px);
    background: #e7edff;
    box-shadow: 0 8px 18px rgba(53, 84, 209, .12)
}

.consult-lead-table small {
    display: block;
    margin-top: 6px;
    max-width: 170px;
    color: #8a94a6;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.lead-status-pill.pending {
    background: #fff7ed;
    color: #c2410c
}

.lead-status-pill.followed {
    background: #ecfdf3;
    color: #047857
}

.lead-status-pill.invalid {
    background: #f2f4f7;
    color: #667085
}

.lead-content,
.lead-remark {
    max-width: 230px;
    margin: 0 auto;
    color: #475467;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.lead-content-btn {
    display: block;
    width: 230px;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    background: transparent;
    color: #475467;
    text-align: left;
    line-height: 1.6;
    cursor: pointer;
    padding: 0
}

.lead-content-btn span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.lead-content-btn:hover {
    color: var(--primary)
}

.lead-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center
}

.lead-actions button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #d7dfef;
    border-radius: 8px;
    background: #fff;
    color: #384560;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease
}

.lead-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #b7c4ff;
    color: var(--primary);
    background: #f7f9ff
}

.lead-actions button:disabled {
    cursor: not-allowed;
    opacity: .45
}

.consult-lead-pagination {
    margin-top: 0
}

.action-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid #d7dfef;
    border-radius: 10px;
    resize: vertical;
    color: #101828;
    font-size: 13px;
    line-height: 1.6;
    outline: none
}

.action-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .14)
}

.consult-content-modal {
    width: min(92vw, 620px)
}

.consult-content-full {
    margin-top: 18px;
    padding: 16px;
    max-height: 54vh;
    overflow: auto;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    background: #f8fbff;
    color: #344054;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word
}

@media (max-width: 1180px) {
    .consult-lead-toolbar {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 720px) {
    .consult-lead-toolbar {
        grid-template-columns:1fr
    }
}
