.account-positioning-main {
    height: 100dvh;
    min-height: 0;
    margin-right: 0;
    overflow: auto;
    padding: 14px 28px 24px;
    background: #f4f8f6;
    color: #172033;
}

.account-positioning-header,
.account-query-panel,
.account-status,
.account-records-panel,
.account-results {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

.account-positioning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.account-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-positioning-header p {
    margin: 0 0 4px;
    color: #69788d;
    font-size: 13px;
    font-weight: 700;
}

.account-positioning-header h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0;
}

.account-link-btn,
.account-primary-btn,
.account-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dce7e1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.account-link-btn {
    background: #fff;
    color: #304258;
}

.account-ghost-btn {
    height: 30px;
    background: #fff;
    color: #304258;
    font-size: 12px;
}

.account-primary-btn {
    border-color: #169b63;
    background: #169b63;
    color: #fff;
}

.account-primary-btn:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.account-query-panel {
    display: grid;
    grid-template-columns: minmax(132px, 160px) minmax(132px, 154px) 126px 104px 126px;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 43, 68, 0.06);
}

.account-query-panel label {
    display: grid;
    gap: 6px;
    color: #53657d;
    font-size: 13px;
    font-weight: 700;
}

.account-url-field {
    grid-column: 1 / -1;
}

.account-url-field textarea,
.account-platform-field select,
.account-count-field input {
    width: 100%;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    outline: none;
}

.account-url-field textarea {
    min-height: 58px;
    resize: vertical;
    padding: 10px 12px;
    line-height: 1.45;
}

.account-count-field input {
    height: 38px;
    padding: 0 10px;
}

.account-platform-field select {
    height: 38px;
    padding: 0 10px;
}

.account-url-field textarea:focus,
.account-platform-field select:focus,
.account-count-field input:focus {
    border-color: #169b63;
    box-shadow: 0 0 0 3px rgba(22, 155, 99, .12);
}

.account-purpose-toggle,
.account-ai-toggle {
    height: 38px;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
}

.account-purpose-toggle input,
.account-ai-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #169b63;
}

.account-status {
    min-height: 28px;
    margin-top: 10px;
    color: #5b6b80;
    font-size: 13px;
}

.account-status.status-error {
    color: #b42318;
}

.account-status.status-success {
    color: #087443;
}

.account-status.status-warning {
    color: #b54708;
}

.account-records-panel {
    margin-bottom: 12px;
    padding: 12px 14px;
}

.account-record-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.record-item {
    min-width: 230px;
    max-width: 280px;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
    color: #304258;
    text-align: left;
    cursor: pointer;
}

.record-item strong,
.record-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-item strong {
    color: #172033;
    font-size: 13px;
}

.record-item span,
.record-empty {
    color: #6d7f95;
    font-size: 12px;
}

.record-item:hover {
    border-color: #169b63;
}

.account-results {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.account-record-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #f4fbf7;
    color: #156f4a;
    font-size: 13px;
    font-weight: 800;
}

.account-record-badge small {
    color: #52647a;
    font-weight: 700;
}

.account-record-badge[hidden] {
    display: none !important;
}

.account-results[hidden] {
    display: none !important;
}

.account-profile-panel,
.analysis-panel,
.metric-card {
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 43, 68, 0.05);
}

.account-profile-panel {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) minmax(420px, auto);
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.account-avatar-shell {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #eef8f2;
    color: #60718a;
    font-size: 28px;
}

.account-avatar-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-main {
    min-width: 0;
}

.account-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-title-row h2 {
    margin: 0;
    min-width: 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.account-title-row a {
    display: inline-flex;
    color: #169b63;
    text-decoration: none;
}

.account-profile-main p {
    margin: 7px 0 8px;
    color: #52647a;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.account-link-list {
    display: grid;
    gap: 5px;
    margin: 0 0 8px;
}

.account-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    color: #156f4a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.account-inline-link small {
    min-width: 0;
    max-width: min(720px, 100%);
    overflow: hidden;
    color: #53657d;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-inline-link:hover span,
.account-inline-link:hover small {
    color: #169b63;
}

.account-identity {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.account-chip,
.hashtag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #f4fbf7;
    color: #156f4a;
    font-size: 12px;
    font-weight: 700;
}

.account-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    gap: 8px;
    margin: 0;
}

.account-kpi-strip div,
.metric-card {
    padding: 12px;
}

.account-kpi-strip div {
    border-radius: 8px;
    background: #f5faf7;
}

.account-kpi-strip dt,
.metric-card span {
    color: #65778e;
    font-size: 12px;
    font-weight: 700;
}

.account-kpi-strip dd,
.metric-card strong {
    display: block;
    margin: 4px 0 0;
    color: #172033;
    font-size: 22px;
    font-weight: 800;
}

.account-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.metric-card small {
    display: block;
    margin-top: 5px;
    color: #6d7f95;
    font-size: 12px;
}

.lifecycle-panel {
    display: grid;
    gap: 12px;
}

.lifecycle-heading {
    align-items: flex-start;
}

.lifecycle-heading > div:first-child {
    min-width: 0;
}

.lifecycle-heading h2 {
    margin-bottom: 3px;
}

.lifecycle-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.lifecycle-pin-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
    color: #51647b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.lifecycle-pin-toggle input {
    width: 14px;
    height: 14px;
    accent-color: #169b63;
}

.lifecycle-scale-tabs {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid #dce7e1;
    border-radius: 7px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(23, 32, 51, .08);
}

.lifecycle-scale-tab {
    min-height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #51647b;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.lifecycle-scale-tab.active {
    background: #172033;
    color: #fff;
}

.lifecycle-metric-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding: 3px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #f6fbf8;
}

.lifecycle-metric-tab {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #51647b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.lifecycle-metric-tab.active {
    background: #172033;
    color: #fff;
}

.lifecycle-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.lifecycle-stats article {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
}

.lifecycle-stats span,
.lifecycle-stats small {
    display: block;
    overflow: hidden;
    color: #65778e;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lifecycle-stats strong {
    display: block;
    margin: 4px 0 2px;
    overflow: hidden;
    color: #172033;
    font-size: 20px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lifecycle-body {
    position: relative;
    display: block;
    width: 100%;
}

.lifecycle-chart {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid #d7dfdc;
    border-radius: 8px;
    background: #fff;
}

.lifecycle-empty {
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #71839a;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.lifecycle-svg {
    width: 100%;
    height: 560px;
    display: block;
}

.lifecycle-plot-bg {
    fill: #fff;
}

.lifecycle-y-tick line,
.lifecycle-x-tick line {
    stroke: #e7ecea;
    stroke-width: 1;
}

.lifecycle-y-tick text,
.lifecycle-x-tick text,
.lifecycle-axis-label,
.lifecycle-y-label {
    fill: #65778e;
    font-size: 12px;
    font-weight: 700;
}

.lifecycle-y-label {
    text-anchor: start;
}

.lifecycle-y-tick text {
    text-anchor: end;
    dominant-baseline: middle;
}

.lifecycle-x-tick text {
    text-anchor: middle;
}

.lifecycle-axis,
.lifecycle-frequency-base {
    stroke: #cfd8d4;
    stroke-width: 1;
}

.lifecycle-median-line {
    fill: none;
    stroke: #273538;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.lifecycle-rhythm-area {
    fill: rgba(68, 151, 133, 0.08);
}

.lifecycle-rhythm-line {
    fill: none;
    stroke: rgba(68, 151, 133, 0.58);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    stroke-dasharray: 5 6;
}

.lifecycle-rhythm-point {
    fill: rgba(68, 151, 133, 0.72);
    stroke: #fff;
    stroke-width: 1;
    pointer-events: none;
}

.lifecycle-point {
    fill: #6f86a8;
    stroke: #fff;
    stroke-width: 1.4;
    cursor: pointer;
    opacity: .72;
}

.lifecycle-point.normal {
    fill: #6f86a8;
}

.lifecycle-point.low {
    fill: #a8b2be;
    opacity: .5;
}

.lifecycle-point.high {
    fill: #c88a3c;
    opacity: .86;
}

.lifecycle-point.hit {
    fill: #bd5144;
    opacity: .92;
}

.lifecycle-point.pinned {
    stroke: #172033;
    stroke-dasharray: 2 2;
}

.lifecycle-point:hover,
.lifecycle-point:focus,
.lifecycle-point.selected {
    outline: none;
    stroke: #172033;
    stroke-width: 2.2;
    opacity: 1;
}

.lifecycle-legend text {
    fill: #6b7a8d;
    font-size: 11px;
    font-weight: 700;
}

.lifecycle-legend-dot {
    fill: #6f86a8;
    stroke: #fff;
    stroke-width: 1;
}

.lifecycle-legend-line {
    stroke-linecap: round;
    stroke-width: 2;
}

.lifecycle-legend-line.median {
    stroke: #273538;
}

.lifecycle-legend-line.rhythm {
    stroke: rgba(68, 151, 133, 0.72);
    stroke-dasharray: 5 5;
}

.lifecycle-preview {
    position: fixed;
    z-index: 60;
    top: 50%;
    left: 50%;
    width: min(360px, calc(100vw - 32px));
    max-height: min(560px, calc(100dvh - 40px));
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #1f2929;
    box-shadow: 0 22px 70px rgba(20, 27, 31, 0.28);
    transform: translate(-50%, -50%);
}

.lifecycle-preview[hidden] {
    display: none !important;
}

.lifecycle-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lifecycle-preview-header strong {
    min-width: 0;
    overflow: hidden;
    color: #f4f7f5;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lifecycle-preview-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #dce6e1;
    font-size: 18px;
    cursor: pointer;
}

.lifecycle-preview-close:hover,
.lifecycle-preview-close:focus {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
}

.lifecycle-preview-empty {
    min-height: 220px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    color: #71839a;
    text-align: center;
}

.lifecycle-preview-empty i {
    color: #169b63;
    font-size: 28px;
}

.lifecycle-preview-empty strong {
    color: #24344a;
    font-size: 14px;
}

.lifecycle-preview-empty span {
    max-width: 260px;
    font-size: 12px;
    line-height: 1.5;
}

.lifecycle-preview-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.lifecycle-preview-content:not(:has(.lifecycle-preview-cover)) {
    grid-template-columns: minmax(0, 1fr);
}

.lifecycle-preview-cover {
    width: 96px;
    height: 128px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #9db0ad;
    font-size: 28px;
}

.lifecycle-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lifecycle-preview-main {
    min-width: 0;
}

.lifecycle-preview-meta,
.lifecycle-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lifecycle-preview-meta span,
.lifecycle-preview-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce6e1;
    font-size: 11px;
    font-weight: 800;
}

.lifecycle-preview-main h3 {
    display: -webkit-box;
    margin: 8px 0 7px;
    overflow: hidden;
    color: #f4f7f5;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lifecycle-preview-main p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #b7c4c0;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lifecycle-open-link {
    width: 100%;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #e8efec;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.lifecycle-open-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lifecycle-open-link.is-disabled {
    border-color: rgba(255, 255, 255, 0.12);
    color: #9db0ad;
}

.account-data-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 12px;
}

.analysis-panel {
    padding: 15px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.25;
}

.panel-heading span {
    color: #708198;
    font-size: 12px;
}

.posting-summary,
.duration-buckets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.posting-summary[hidden] {
    display: none !important;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef8f2;
    color: #31445c;
    font-size: 13px;
    font-weight: 700;
}

.hour-bars {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.hour-bar-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 9px;
    color: #52647a;
    font-size: 12px;
}

.hour-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4f2eb;
}

.hour-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #169b63;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.word-cloud-tabs,
.video-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #f6fbf8;
}

.word-cloud-tab,
.video-view-tab {
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #51647b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.word-cloud-tab.active,
.video-view-tab.active {
    background: #169b63;
    color: #fff;
}

.word-cloud {
    display: flex;
    min-height: 150px;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
}

.word-cloud-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #169b63;
    font-weight: 900;
    line-height: 1.05;
    text-decoration: none;
}

.word-cloud-item[data-source="hashtag"] {
    color: #15945c;
}

.word-cloud-item small {
    color: #7a8ba0;
    font-size: 11px;
    font-weight: 700;
}

.word-cloud-note {
    margin: -4px 0 12px;
    color: #71839a;
    font-size: 12px;
    font-weight: 700;
}

.duration-buckets {
    margin-top: 14px;
}

.performance-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.performance-insight-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfffd;
}

.performance-insight-card h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
}

.insight-bar-list {
    display: grid;
    gap: 8px;
}

.insight-bar-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px 34px;
    align-items: center;
    gap: 7px;
    color: #52647a;
    font-size: 12px;
}

.insight-bar-row span,
.insight-bar-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-bar-row strong {
    color: #087443;
    font-size: 12px;
    text-align: right;
}

.insight-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4f2eb;
}

.insight-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: #169b63;
}

.insight-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-content: flex-start;
}

.insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    max-width: 100%;
    padding: 0 8px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #eef8f2;
    color: #156f4a;
    font-size: 12px;
    font-weight: 800;
}

.insight-chip[data-source="keyword"] {
    background: #f7fbf8;
    color: #304258;
}

.insight-chip-strong {
    background: #169b63;
    color: #fff;
}

.insight-chip small {
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    opacity: .72;
}

.score-formula {
    margin: -4px 0 10px;
    color: #708198;
    font-size: 12px;
}

.video-table-wrap {
    overflow-x: auto;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.video-table th,
.video-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2ebe6;
    text-align: left;
    font-size: 13px;
}

.video-table th {
    color: #62738a;
    font-weight: 800;
}

.video-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.video-sort-btn:hover,
.video-sort-btn.active {
    color: #169b63;
}

.video-sort-btn.active::after {
    color: #169b63;
    font-size: 11px;
}

.video-sort-btn.active[data-direction="asc"]::after {
    content: "↑";
}

.video-sort-btn.active[data-direction="desc"]::after {
    content: "↓";
}

.video-title-cell {
    max-width: 420px;
    color: #1d2c40;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.video-title-wrap {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.video-cover {
    width: 74px;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #eef8f2;
    color: #65778e;
    font-size: 22px;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-title-main {
    min-width: 0;
}

.video-title-main a {
    color: #1d2c40;
    text-decoration: none;
}

.video-title-main a:hover {
    color: #169b63;
}

.video-title-cell small {
    display: block;
    margin-top: 4px;
    color: #71839a;
    font-weight: 500;
}

.ai-report {
    display: grid;
    gap: 12px;
}

.ai-status-box {
    padding: 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.ai-section {
    display: grid;
    gap: 7px;
}

.ai-section h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
}

.ip-value-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) minmax(280px, .72fr);
    gap: 14px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbfdfb 0%, #ffffff 58%, #f7fbff 100%);
}

.ip-score-dial {
    width: 154px;
    height: 154px;
    place-self: center;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 57%, transparent 58%),
        conic-gradient(#169b63 0 var(--score-deg), #e8edf3 var(--score-deg) 360deg);
    box-shadow: inset 0 0 0 1px #dce7e1;
}

.ip-score-dial div {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: #fff;
}

.ip-score-dial strong {
    color: #087443;
    font-size: 42px;
    line-height: 1;
}

.ip-score-dial span {
    margin-top: 6px;
    color: #53657d;
    font-size: 12px;
    font-weight: 900;
}

.ip-score-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.ip-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ip-score-head h3 {
    margin: 0;
    color: #172033;
    font-size: 20px;
}

.ip-score-head span {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3ff;
    color: #31548d;
    font-size: 12px;
    font-weight: 900;
}

.ip-score-main p {
    margin: 0;
    color: #42556c;
    font-size: 14px;
    line-height: 1.65;
}

.ip-score-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ip-score-lists div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: #f5f8fb;
}

.ip-score-lists h4,
.thirty-extra-grid h4,
.thirty-week-card h4 {
    margin: 0;
    color: #172033;
    font-size: 13px;
}

.ip-score-lists ul,
.thirty-extra-grid ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #42556c;
    font-size: 13px;
    line-height: 1.55;
}

.ip-factor-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.ip-factor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8eef0;
}

.ip-factor-row strong {
    display: block;
    color: #24344a;
    font-size: 13px;
}

.ip-factor-row small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #71839a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-factor-row span {
    color: #087443;
    font-size: 18px;
    font-weight: 900;
}

.ai-summary-band {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #f7fbf8;
}

.ai-summary-band h3,
.ai-section-title h3,
.ai-action-panel h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
}

.ai-summary-band p {
    margin: 7px 0 0;
    color: #42556c;
    font-size: 14px;
    line-height: 1.65;
}

.ai-visual-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.92fr);
    gap: 14px;
}

.ai-visual-panel,
.ai-action-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfdfb;
}

.ai-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ai-section-title span {
    color: #71839a;
    font-size: 12px;
    font-weight: 800;
}

.ai-radar-chart {
    width: 100%;
    height: 260px;
    display: block;
}

.ai-radar-grid polygon {
    fill: none;
    stroke: #dce7e1;
    stroke-width: 1;
}

.ai-radar-grid line {
    stroke: #dce7e1;
    stroke-width: 1;
}

.ai-radar-value {
    fill: rgba(22, 155, 99, 0.22);
    stroke: #169b63;
    stroke-width: 2;
}

.ai-radar-labels text {
    fill: #42556c;
    font-size: 12px;
    font-weight: 800;
    dominant-baseline: middle;
}

.ai-radar-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ai-radar-score {
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 8px;
    background: #eef8f2;
}

.ai-radar-score strong {
    color: #087443;
    font-size: 18px;
}

.ai-radar-score span {
    color: #24344a;
    font-size: 12px;
    font-weight: 800;
}

.ai-radar-score small,
.ai-pillar-row small {
    overflow: hidden;
    color: #71839a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thirty-day-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfdfb;
}

.thirty-strategy {
    margin: 0;
    color: #42556c;
    font-size: 14px;
    line-height: 1.65;
}

.thirty-week-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.thirty-week-card {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e3ece7;
    background: #fff;
}

.thirty-week-card span {
    display: inline-flex;
    margin-bottom: 7px;
    color: #087443;
    font-size: 12px;
    font-weight: 900;
}

.thirty-week-card ol {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #42556c;
    font-size: 13px;
    line-height: 1.55;
}

.thirty-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.thirty-extra-grid > div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: #f5f8fb;
}

.ai-pillar-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.ai-pillar-row {
    display: grid;
    gap: 6px;
}

.ai-pillar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #24344a;
    font-size: 13px;
    font-weight: 800;
}

.ai-pillar-meta span {
    color: #087443;
}

.ai-pillar-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7efe9;
}

.ai-pillar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #169b63, #47b881);
}

.ai-empty-line {
    color: #71839a;
    font-size: 13px;
    font-weight: 700;
}

.ai-dna-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ai-dna-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fbfdfb;
}

.ai-dna-main {
    min-width: 0;
}

.ai-dna-main a {
    display: -webkit-box;
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-dna-stats,
.ai-dna-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.ai-dna-stats span,
.ai-dna-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 8px;
    background: #eef8f2;
    color: #156f4a;
    font-size: 11px;
    font-weight: 800;
}

.ai-dna-tags span {
    background: #f2f7f4;
    color: #4c5f76;
}

.ai-dna-main p {
    margin: 8px 0 0;
    color: #4c5f76;
    font-size: 12px;
    line-height: 1.55;
}

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

.ai-action-panel h3 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ai-action-panel h3 i {
    color: #169b63;
    font-size: 18px;
}

.ai-action-panel ol {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding-left: 20px;
    color: #42556c;
    font-size: 13px;
    line-height: 1.55;
}

.account-record-page-panel {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

.record-page-status {
    min-height: 24px;
    color: #5b6b80;
    font-size: 13px;
}

.record-page-status.status-error {
    color: #b42318;
}

.record-page-status.status-success {
    color: #087443;
}

.record-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.record-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.record-table th,
.record-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e2ebe6;
    color: #24344a;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.record-table th {
    color: #62738a;
    font-weight: 800;
}

.record-account-cell {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.record-account-cell strong {
    display: block;
    overflow: hidden;
    color: #172033;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-account-cell span {
    display: block;
    overflow: hidden;
    color: #71839a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #eef8f2;
    color: #65778e;
    font-size: 18px;
}

.record-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-stats-cell {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 5px 10px;
    color: #4d6178;
    font-size: 12px;
    font-weight: 700;
}

.record-table td small {
    display: block;
    margin-top: 3px;
    color: #71839a;
    font-size: 12px;
}

.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.record-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    background: #eef8f2;
    color: #156f4a;
    font-size: 12px;
    font-weight: 800;
}

.record-status-chip.status-failed {
    background: #fff7ed;
    color: #9a3412;
}

.record-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #169b63;
    border-radius: 8px;
    color: #169b63;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.record-view-btn:hover {
    background: #169b63;
    color: #fff;
}

.record-open-btn {
    border-color: #dce7e1;
    color: #304258;
}

.record-empty-cell {
    color: #6d7f95;
    text-align: center !important;
}

.record-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    color: #52647a;
    font-size: 13px;
    font-weight: 800;
}

.record-pagination-info {
    min-width: 246px;
    text-align: center;
}

.record-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 76px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    color: #304258;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.record-page-btn:hover:not(:disabled) {
    border-color: #169b63;
    color: #169b63;
}

.record-page-btn:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.ai-section p,
.ai-section ul {
    margin: 0;
    color: #4c5f76;
    font-size: 14px;
    line-height: 1.6;
}

.ai-section ul {
    padding-left: 18px;
}

@media (max-width: 1240px) {
    .account-query-panel {
        grid-template-columns: minmax(132px, 160px) minmax(132px, 154px) 126px 104px 126px;
    }

    .account-profile-panel {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .account-kpi-strip {
        grid-column: 1 / -1;
    }

    .ai-summary-band,
    .ai-visual-grid,
    .ai-action-grid,
    .ip-value-panel,
    .lifecycle-body {
        grid-template-columns: 1fr;
    }

    .ip-score-lists,
    .thirty-week-grid,
    .thirty-extra-grid {
        grid-template-columns: 1fr;
    }

    .lifecycle-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifecycle-preview {
        min-height: auto;
    }

    .ai-dna-grid {
        grid-template-columns: 1fr;
    }

    .performance-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .account-query-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .account-url-field,
    .account-primary-btn {
        grid-column: 1 / -1;
    }
}
