@import url('theme-colors.css');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
    background: #f8fafc;
    overflow-x: clip;
}

body.app-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-shell {
    width: min(var(--landing-inner-width, 1100px), 100%);
    margin: 0 auto;
    padding: 1rem var(--landing-inner-pad, 1.25rem);
    flex: 1;
    min-width: 0;
}

.app-main {
    min-width: 0;
}

body.app-page .footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding: 1.25rem 1rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: var(--color-text-slate);
    font-size: 0.875rem;
    text-align: center;
}

body.app-page .footer_faq_item {
    background: #fff;
}

body.app-page .footer_faq_heading {
    color: #334155;
}

body.app-page .footer_faq_item summary {
    color: #334155;
}

body.app-page .footer p,
body.app-page .footer_meta {
    margin: 0;
}

body.app-page .footer a {
    color: #1062ae;
}

body.app-page .footer a:hover {
    text-decoration: underline;
}

.app-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.folder-strip {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.folder-strip__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
    align-items: center;
}

.folder-strip__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.3;
    cursor: pointer;
}

a.folder-strip__chip {
    color: #0f172a;
    text-decoration: none;
}

a.folder-strip__chip:hover {
    border-color: #1062ae;
    background: #e8f0fe;
    color: #0c4d8a;
}

a.folder-strip__chip:hover .folder-strip__count {
    color: #0c4d8a;
}

.folder-strip__chip.is-active,
a.folder-strip__chip.is-active {
    border-color: #1062ae;
    background: #1062ae;
    color: #fff;
    box-shadow: none;
}

.folder-strip__chip.is-active .folder-strip__count,
a.folder-strip__chip.is-active .folder-strip__count {
    color: #fff;
}

a.folder-strip__chip.is-active:hover {
    border-color: #0a4f8c;
    background: #0a4f8c;
    color: #fff;
}

a.folder-strip__chip.is-active:hover .folder-strip__count {
    color: #fff;
}

.folder-strip__chip.has-color {
    --folder-border: hsl(from var(--folder-color) h 100% 50%);
    background-color: var(--folder-color);
    border-color: var(--folder-border);
    color: #334155;
}

.folder-strip__chip.has-color .folder-strip__count {
    color: #334155;
}

a.folder-strip__chip.has-color:hover {
    background-color: var(--folder-border);
    border-color: var(--folder-border);
    color: #fff;
}

a.folder-strip__chip.has-color:hover .folder-strip__count {
    color: #fff;
}

.folder-strip__chip.has-color.is-active {
    background-color: var(--folder-border);
    color: #fff;
    border-color: var(--folder-border);
    box-shadow: 0 0 0 2px var(--folder-border);
}

.folder-strip__chip.has-color.is-active .folder-strip__count {
    color: #fff;
}

.folder-strip__count {
    color: var(--color-text-slate);
    font-weight: 500;
}

.folder-strip__chip--new {
    border-style: dashed;
    color: #1062ae;
    background: #fff;
}

.folder-strip__chip--blocked {
    border-style: dashed;
    color: #1062ae;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.folder-strip__new {
    position: relative;
}

.folder-strip__new > summary {
    list-style: none;
}

.folder-strip__new > summary::-webkit-details-marker {
    display: none;
}

.folder-strip__new-form,
.folder-strip__context {
    z-index: 30;
    min-width: 15rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.folder-strip__new-form {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
}

.folder-strip__context {
    position: fixed;
}

.folder-strip__context[hidden] {
    display: none !important;
}

.folder-strip__rename,
.folder-strip__delete {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.folder-strip__rename-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #475569;
}

.folder-strip__rename-input {
    padding: 0.4rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    font: inherit;
}

.folder-strip__color-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.folder-strip__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.folder-strip__swatch {
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 0.25rem;
    background: var(--swatch-color, #fff);
    cursor: pointer;
}

.folder-strip__swatch--none {
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), #94a3b8 50%, transparent calc(50% + 1px)),
        #fff;
}

.folder-strip__swatch.is-selected {
    outline: 2px solid #1062ae;
    outline-offset: 1px;
}

.folder-strip__custom-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
}

.folder-strip__custom-color input[type="color"] {
    width: 2rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    background: #fff;
    cursor: pointer;
}

.folder-strip__hint {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-slate);
}

.folder-strip__error {
    margin: 0.5rem 0 0;
    color: #b91c1c;
    font-size: 0.875rem;
}

.main_view_folder-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.main_view_folder-badge.has-color {
    --folder-border: hsl(from var(--folder-color) h 100% 50%);
    background-color: var(--folder-color);
    border-color: var(--folder-border);
    color: #334155;
}

.tb_changes__col-folder {
    width: 6%;
}

.main_view_folder {
    color: #475569;
    white-space: nowrap;
}

.monitoring_move_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin: 0 0 0.75rem;
}

.monitoring_move_actions select {
    min-width: 10rem;
    padding: 0.35rem 0.5rem;
}

.basic_proxy_hint {
    margin-top: 0.2rem;
    font-size: 0.85em;
}

.basic_proxy_cell {
    vertical-align: top;
}

.basic_proxy_state--on {
    color: #1b7a3d;
    font-weight: 600;
}

.basic_proxy_state--trial {
    color: #8a5b00;
    font-weight: 600;
}

.basic_proxy_state--paused,
.basic_proxy_state--muted {
    color: #666;
}

/* Match monitoring table page links (.monitor_page_path a), not default <a> blue+underline. */
button.linkish_btn {
    background: none;
    border: none;
    padding: 0;
    color: #1062ae;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

button.linkish_btn:hover {
    color: #0b57d0;
    text-decoration: underline;
}

.add_url_folder_row {
    margin: 0.75rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.add_url_folder_row label {
    font-size: 0.9375rem;
    color: #334155;
}

.add_url_folder_row select {
    min-width: 12rem;
    padding: 0.4rem 0.5rem;
}

.app-header__user {
    text-align: right;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.app-header__logout {
    display: inline;
    margin: 0;
}

.app-header__user a,
.app-header__logout button {
    color: #c00;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    vertical-align: baseline;
}

.app-header__sep {
    margin: 0 0.35rem;
    color: var(--color-text-slate);
}

.app-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    font-weight: 600;
    font-size: 1.0625rem;
}

.app-menu a {
    text-decoration: none;
    color: #1062ae;
}

.app-menu a.active_menu_link {
    color: #c00;
}

.app-menu__group {
    position: relative;
}

/* Invisible bridge so the cursor can reach the submenu without it closing. */
.app-menu__group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -0.75rem;
    right: -0.75rem;
    height: 0.75rem;
}

.app-menu__group > a::after {
    content: " ?";
    font-size: 0.85em;
    vertical-align: 0.05em;
    color: #475569;
}

.app-menu__submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 11rem;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-size: 0.9375rem;
    font-weight: 600;
}

.app-menu__group:hover .app-menu__submenu,
.app-menu__group:focus-within .app-menu__submenu {
    display: block;
}

/* Keep submenu open while moving from the bridge into the panel. */
.app-menu__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.35rem;
    height: 0.35rem;
}

.app-menu__submenu a {
    display: block;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.app-menu__submenu a:hover {
    background: #f1f5f9;
}

.app-main h1,
.app-main h2:first-child {
    font-size: 1.75rem;
    margin: 0 0 1rem;
}

a {
    color: #1062ae;
}

a:hover {
    text-decoration: none;
}

.app-shell--wide {
    width: min(1400px, 100%);
}

.app-shell--narrow {
    width: min(28rem, 100%);
    max-width: 28rem;
    padding: 1.5rem;
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
}

.auth-header p {
    margin: 0;
    color: #555;
}

.wm-header__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.wm-user-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.wm-inline-form {
    display: inline;
    margin: 0;
}

.wm-link-button {
    background: none;
    border: none;
    padding: 0;
    color: #0b57d0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.wm-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.wm-nav a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8dee6;
    text-decoration: none;
    font-size: 0.92rem;
}

.wm-nav a.is-active {
    background: #0b57d0;
    border-color: #0b57d0;
    color: #fff;
}

.wm-card {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.wm-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.wm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.wm-stat {
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.wm-stat strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
}

.wm-stat span {
    color: #666;
    font-size: 0.88rem;
}

.wm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.wm-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
    color: #444;
}

.wm-filters input,
.wm-filters select {
    min-width: 180px;
    padding: 0.4rem 0.55rem;
    border: 1px solid #c9d2de;
    border-radius: 6px;
    font: inherit;
}

.wm-filters button {
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 6px;
    background: #0b57d0;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.wm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.wm-table th,
.wm-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: top;
}

.wm-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
}

.wm-table tr:hover td {
    background: #fafbfc;
}

.wm-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: #eef2f7;
    color: #334;
}

.wm-badge--warn {
    background: #fff3cd;
    color: #7a5d00;
}

.wm-badge--ok {
    background: #e7f6ec;
    color: #17663a;
}

.wm-muted {
    color: #666;
    font-size: 0.88rem;
}

.wm-pagination {
    margin-top: 1rem;
}

.wm-pagination nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.wm-pagination a,
.wm-pagination span {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    font-size: 0.88rem;
}

.wm-pagination span[aria-current="page"] {
    background: #0b57d0;
    border-color: #0b57d0;
    color: #fff;
}

.wm-dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.45rem 1rem;
    margin: 0;
}

.wm-dl dt {
    margin: 0;
    color: #666;
    font-size: 0.88rem;
}

.wm-dl dd {
    margin: 0;
}

.wm-empty {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #555;
}

.wm-muted {
    color: #666;
    font-size: 0.88rem;
    margin: 0.25rem 0 0;
}

.wm-banner {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0d58a;
    color: #6a5300;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wm-form {
    max-width: 640px;
    margin-top: 1rem;
}

.wm-field {
    margin-bottom: 1rem;
}

.wm-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.wm-field input[type="url"],
.wm-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    font-size: 0.95rem;
}

.wm-input-wide {
    width: 100%;
}

.wm-field-error {
    margin: 0.35rem 0 0;
    color: #b42318;
    font-size: 0.88rem;
}

.wm-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #0b57d0;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.wm-btn--sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.wm-btn--outline {
    background: #fff;
    color: #0b57d0;
    border: 1px solid #0b57d0;
}

.wm-btn--outline:hover {
    background: #e8f0fe;
}

.wm-auth-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.wm-auth-intro__card {
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.wm-auth-intro__card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.wm-auth-intro__note {
    margin: 0 0 1.25rem;
}

.wm-btn:hover {
    background: #0948ad;
}

.wm-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.wm-alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}

.wm-alert-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #b42318;
}

.wm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.wm-btn-secondary {
    background: #fff;
    color: #0b57d0;
    border: 1px solid #0b57d0;
}

.wm-btn-secondary:hover {
    background: #e8f0fe;
}

.wm-log {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    font-size: 0.92rem;
}

.add-webpage__help {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.add-webpage__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
}

.add-webpage__note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-slate);
}

.add-webpage__form .wm-btn {
    min-width: 8rem;
}

.add_webpage_help {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.add_webpage_help a {
    color: var(--color-primary);
}

.tb_monitoring td:first-child a {
    color: #1062ae;
}

.add_webpage_textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
}

.add_webpage_note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-slate);
}

.add_webpage .intro_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 8rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    background-color: #1062ae;
    border: 1px solid #1062ae;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.add_webpage .intro_btn:hover {
    background-color: #0c4d8a;
    border-color: #0c4d8a;
}

.add_webpage .intro_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add_webpage .intro_btn--outline {
    color: #1062ae;
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.add_webpage .intro_btn--outline:hover {
    color: #0c4d8a;
    background-color: #e8f0fe;
    border-color: #1062ae;
}

.url_status_not_200 {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #b42318;
}

.resubmit_batch_panel {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.resubmit_progress_wrap {
    height: 0.75rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.resubmit_progress_bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1062ae, #0ea5e9);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.resubmit_progress_text {
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: 1rem;
}

.add_urls_duplicate_note {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.resubmit_current_url {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-slate);
}

.resubmit_ladder_stage {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.resubmit_live_summary {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.resubmit_paused_notice {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.9rem;
}

.resubmit_actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.resubmit_action_group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.resubmit_action_group[hidden] {
    display: none !important;
}

#resubmit-batch-app {
    display: block;
    width: 100%;
}

#resubmit-batch-app .resubmit_action_group .intro_btn {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.resubmit_all_webpages {
    font-size: 0.875rem;
}

.batch_timing_panel {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
}

.batch_timing_title {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.batch_timing_list {
    margin: 0;
    padding-left: 1.25rem;
}

.batch_timing_list li {
    margin: 0.25rem 0;
}

.image_diff_batch_panel {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-left: 4px solid #1062ae;
    border-radius: 6px;
}

.image_diff_batch_title {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: #1062ae;
}

.image_diff_batch_status {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #1e293b;
}

.image_diff_batch_detail {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-slate);
}

.resubmit_log {
    max-height: 28rem;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.resubmit_log:empty {
    display: none;
}

div.add_webpage_quota_full {
    padding: 10px;
    margin: 15px 0 15px;
}

div.url_status_not_200 {
    background: #fff4d5;
    border-top: 1px solid rgb(255, 145, 0);
    border-bottom: 1px solid rgb(255, 145, 0);
    padding: 10px;
    margin: 15px 0;
}

div.url_status_200 {
    background: #d5f5ff;
    border-top: 1px solid #00a4d6;
    border-bottom: 1px solid #00a4d6;
    padding: 10px 0;
    margin: 15px 0;
}

div.url_status_neutral {
    background: #f3f4f6;
    border-top: 1px solid #9ca3af;
    border-bottom: 1px solid #9ca3af;
    padding: 10px 0;
    margin: 15px 0;
}

div.url_status_duplicate {
    background: #eef2ff;
    border-top: 1px solid #6366f1;
    border-bottom: 1px solid #6366f1;
    padding: 10px 0;
    margin: 15px 0;
}

div.url_status_limited {
    background: #fff8e6;
    border-top: 1px solid #d4a017;
    border-bottom: 1px solid #d4a017;
    padding: 10px 0;
    margin: 15px 0;
}

.pagination {
    float: right;
    clear: both;
    margin-bottom: 15px;
}

.pagination_above_table {
    float: none;
    display: block;
    text-align: right;
    margin: 0.85rem 0 0.35rem;
}

.pagination_bottom {
    float: right;
    clear: both;
    margin-top: 15px;
    margin-bottom: 0;
}

.pagination .button.pagination_active,
.pagination span.button.pagination_active {
    background: #1062ae;
    color: #fff;
}

.pagination_ellipsis {
    display: inline-block;
    padding: 3px 4px;
    margin: 0 1px;
    color: var(--color-text-slate);
    font: bold 13px system-ui, sans-serif;
    vertical-align: middle;
    user-select: none;
}

.pagination_nav--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    color: var(--color-text-slate);
}

.button {
    display: inline-block;
    font: bold 13px system-ui, sans-serif;
    text-decoration: none;
    background-color: #eeeeee;
    color: #1062ae;
    padding: 3px 9px;
    border-bottom: 1px solid #8e8e8e;
    border-left: 1px solid #d3d3d3;
    border-right: 1px solid #d3d3d3;
    border-top: 1px solid #f5f5f5;
    margin: 0 2px;
}

.button:hover {
    background: #dddddd;
}

.tb_changes {
    width: 100%;
    min-width: 1024px;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 20px;
}

.tb_changes__col-pages {
    width: 27%;
}

.tb_changes__col-date {
    width: 13%;
}

.tb_changes__col-days {
    width: 14%;
}

.tb_changes__col-insights {
    width: 19%;
}

.tb_changes__col-change {
    width: 8%;
}

.tb_changes th,
.tb_changes td {
    padding: 6px 12px;
    border: 1px solid rgb(162, 203, 241);
}

.tb_changes th {
    font-size: 16px;
    background: #1062ae;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    line-height: 1.3;
}

.tb_changes td {
    overflow: hidden;
    vertical-align: top;
}

.main_view_result,
.table_scroll {
    clear: both;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.main_view_date {
    text-align: center;
    white-space: nowrap;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.tb_changes td.main_view_days_since,
.tb_changes td.main_view_change {
    white-space: nowrap;
}

.tb_changes td.main_view_change {
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.tb_changes td.main_view_change a,
.tb_changes td.main_view_change span {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.main_view_insights_legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
    clear: both;
}

.main_view_insights_legend strong {
    color: #1e293b;
}

.main_view_insights {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #334155;
}

.main_view_insights_cell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
}

.main_view_insights_skim {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.main_view_insights_line {
    min-width: 0;
    overflow-wrap: anywhere;
}

.main_view_insights_line--ops {
    color: var(--color-text-slate);
    font-variant-numeric: tabular-nums;
}

.main_view_insights_size {
    display: inline-block;
    min-width: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Importance: S low ? L high. Avoid page blue (#1062ae) and reviewed green. */
.main_view_insights_size--s {
    color: var(--color-text-slate);
}

.main_view_insights_size--m {
    color: #c2410c;
    background: #ffedd5;
    padding: 0 0.28rem;
    border-radius: 3px;
}

.main_view_insights_size--l {
    color: #fff;
    background: #b91c1c;
    padding: 0 0.28rem;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #7f1d1d;
}

.main_view_insights_dwc--hot {
    color: #6b21a8;
    background: #f3e8ff;
    font-weight: 800;
    padding: 0 0.28rem;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #c084fc;
}

.main_view_insights_sep {
    color: #94a3b8;
    margin: 0 0.1rem;
}

.main_view_insights_info {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
}

.main_view_insights_info:hover,
.main_view_insights_info:focus-visible {
    border-color: #1062ae;
    color: #1062ae;
    outline: none;
}

body.insights_modal_open {
    overflow: hidden;
}

.insights_modal[hidden] {
    display: none !important;
}

.insights_modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.insights_modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.insights_modal__dialog {
    position: relative;
    z-index: 1;
    width: min(28rem, calc(100vw - 2rem));
    max-height: min(32rem, calc(100vh - 2rem));
    margin: 10vh auto 0;
    overflow: auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    outline: none;
}

.insights_modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    background: #1062ae;
    border-bottom: 1px solid #0b4f8c;
}

.app-main .insights_modal__header h2,
.insights_modal__header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.insights_modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.insights_modal__close:hover,
.insights_modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    outline: none;
}

.insights_modal__body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.insights_modal__dl {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.insights_modal__dl > div {
    display: grid;
    gap: 0.2rem;
}

.insights_modal__dl dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1062ae;
}

.insights_modal__dl dd {
    margin: 0;
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.45;
}

.insights_modal__sample {
    overflow-wrap: anywhere;
    color: #475569;
}

.main_view_summary {
    margin: 0.5rem 0 0;
    color: #374151;
    font-size: 0.95rem;
}

.main_view_controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.main_view_control {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #374151;
}

.main_view_control select {
    padding: 0.25rem 0.5rem;
    font-size: 0.95rem;
}

.main_view_control--search {
    flex: 1 1 14rem;
    min-width: 12rem;
}

.main_view_search {
    width: min(100%, 22rem);
    padding: 0.35rem 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.main_view_search:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
    border-color: #60a5fa;
}

.main_view_days_since {
    white-space: nowrap;
    color: #4b5563;
    font-size: 0.95rem;
}

.main_view_page_url {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    color: #374151;
}

.site_title_stats {
    font-weight: normal;
    font-size: 0.95rem;
    color: #4b5563;
}

.main-view-reviewed-sample {
    color: #3b7a64;
    font-weight: 600;
}

.tb_changes a.main-view-change-link.is-checked {
    color: #3b7a64;
    font-weight: 600;
}

.site_title {
    border: none;
    vertical-align: middle;
    font-size: larger;
    font-weight: bold;
}

.site_title a {
    text-decoration: none;
    color: #1062ae;
}

.site_title td {
    text-align: center;
    vertical-align: middle;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 1199px) {
    .tb_changes {
        table-layout: auto;
        width: max(100%, 1024px);
        min-width: 1024px;
        max-width: none;
    }

    .tb_changes .main_view_date,
    .tb_changes td.main_view_days_since {
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .tb_changes__col-pages {
        width: 26%;
    }

    .tb_changes__col-date {
        width: 13%;
    }

    .tb_changes__col-days {
        width: 14%;
    }

    .tb_changes__col-insights {
        width: 20%;
    }

    .tb_changes__col-change {
        width: 8%;
    }
}

@media (max-width: 900px) {
    .tb_changes__col-pages {
        width: 32%;
    }

    .tb_changes__col-date {
        width: 12%;
    }

    .tb_changes__col-days {
        width: 10%;
    }

    .tb_changes__col-insights {
        width: 26%;
    }

    .tb_changes__col-change {
        width: 8%;
    }

    .tb_changes .main_view_date {
        font-size: 0.8rem;
    }

    .tb_changes th {
        font-size: 13px;
    }

    .main_view_insights {
        font-size: 0.75rem;
    }

    .main_view_insights_legend {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .insights_modal__dialog {
        margin-top: 5vh;
    }
}

.site_view_heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    text-align: center;
}

.site_view_hostname {
    margin: 0;
    font-size: 1.25rem;
    color: #1062ae;
}

.site_delete_form,
.inline_delete_form {
    margin: 0;
}

/*
 * The button is inline-block, so the form's line box adds descender space
 * below it and the flex centring lands the button a few px high.
 */
.site_delete_form {
    display: flex;
    align-items: center;
}

/* Keep the cell a real table-cell so it matches row height; flex lives on the inner wrapper. */
.tb_monitoring_site td.monitor_page_actions {
    overflow: visible;
    position: relative;
    z-index: 1;
    vertical-align: middle;
}

.monitor_page_actions__buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

.monitor_action {
    position: relative;
    display: inline-flex;
}

.monitor_action_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    color: #1062ae;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
}

.monitor_action_btn:hover,
.monitor_action_btn:focus-visible {
    color: #0c4d8a;
    background-color: #e8f0fe;
    border-color: #1062ae;
}

.monitor_action_btn--danger {
    color: #b91c1c;
}

.monitor_action_btn--danger:hover,
.monitor_action_btn--danger:focus-visible {
    color: #ffffff;
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.monitor_action_icon {
    display: block;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.monitor_action_btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: #1f2937;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 20;
}

.monitor_action_btn[data-tooltip]:hover::after,
.monitor_action_btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.monitor_paused_badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
}

tr.monitor_page_paused td {
    opacity: 0.78;
}

.btn_danger {
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn_danger:hover {
    background: #991b1b;
}

.btn_small {
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
}

.monitor_summary {
    margin: 0.75rem 0 1rem;
    color: #374151;
}

.monitor_summary_sep {
    margin: 0 0.35rem;
    color: #9ca3af;
}

.monitor_ok {
    color: #047857;
}

.monitor_problem {
    color: #b45309;
    font-weight: 600;
}

.monitor_retry {
    color: #4338ca;
    font-weight: 600;
}

.monitor_badge {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.85rem;
    background: #fff4d5;
    border: 1px solid rgb(255, 145, 0);
}

.tb_monitoring .monitor_pages_count,
.tb_monitoring_site .monitor_pages_count {
    text-align: center;
    white-space: nowrap;
}

.tb_monitoring_site {
    table-layout: fixed;
}

/* Tighter gutters: this table has 9 columns inside a 1024px min-width. */
.tb_monitoring_site th,
.tb_monitoring_site td {
    padding: 6px 8px;
}

/*
 * Select (2.5rem) + folder (8rem) + action (6.5rem) are fixed, so the
 * percentages below must stay near 73% or the browser squeezes every
 * column and clips text.
 */
.tb_monitoring_site__col-page {
    width: 24%;
}

.tb_monitoring_site__col-fetch {
    width: 8%;
}

.tb_monitoring_site__col-status {
    width: 11%;
}

.tb_monitoring_site__col-robots {
    width: 8%;
}

.tb_monitoring_site__col-versions {
    width: 8%;
}

.tb_monitoring_site__col-snapshot {
    width: 14%;
}

.tb_monitoring_site__col-action {
    width: 6.5rem;
}

/* Let the timestamp wrap instead of being clipped by the cell. */
.tb_monitoring_site .main_view_date {
    white-space: normal;
}

.monitor_page_path {
    min-width: 0;
}

.monitor_page_path a {
    overflow-wrap: anywhere;
    word-break: normal;
    color: #1062ae;
}

.monitor_page_header {
    margin: 1rem 0 1.5rem;
}

.monitor_page_url {
    margin: 0 0 0.75rem;
    word-break: break-all;
}

.monitor_page_url a {
    color: #1062ae;
}

.adhoc_compare_form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    margin: 0 0 1.75rem;
}

.adhoc_compare_form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--color-text-slate);
}

.adhoc_compare_form select {
    min-width: 14rem;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    font: inherit;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.monitor_status_list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0;
}

.monitor_status_list div {
    min-width: 8rem;
}

.monitor_status_list dt {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.monitor_status_list dd {
    margin: 0.15rem 0 0;
}

.tb_monitoring_site td:nth-child(1),
.tb_monitoring_site td:nth-child(3),
.tb_monitoring_site td:nth-child(4),
.tb_monitoring_site td:nth-child(5),
.tb_monitoring_site td:nth-child(7) {
    text-align: center;
}

.tb_monitoring_site td.monitor_page_path {
    text-align: left;
}

/* Header stays centered; the timestamps read better left-aligned. */
.tb_monitoring_site td.main_view_date {
    text-align: left;
}

.tb_monitoring td:nth-child(2),
.tb_monitoring td:nth-child(3) {
    text-align: center;
}

#compare-versions-app {
    display: block;
    float: none;
    width: 100%;
}

.compare_versions_clear_form {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.compare_versions_regenerate_form {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.compare_versions_regenerate_form h2 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.compare_versions_regenerate_input {
    width: 100%;
    max-width: 48rem;
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    font: inherit;
    box-sizing: border-box;
}

.compare_versions_form .intro_btn,
.compare_versions_form .btn_danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 10rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    box-sizing: border-box;
}

.robots_section_heading {
    margin: 2rem 0 0.5rem;
    font-size: 1.25rem;
}

.robots_section_note {
    margin-top: 0;
    margin-bottom: 1rem;
}

.robots_control_table {
    margin-bottom: 0.5rem;
    table-layout: fixed;
    width: 100%;
}

.robots_control_table th:nth-child(1),
.robots_control_table td:nth-child(1) {
    width: 62%;
}

.robots_control_table th:nth-child(2),
.robots_control_table td:nth-child(2) {
    width: 14%;
    white-space: nowrap;
}

.robots_control_table th:nth-child(3),
.robots_control_table td:nth-child(3) {
    width: 12%;
    white-space: nowrap;
}

.robots_control_table th:nth-child(4),
.robots_control_table td:nth-child(4) {
    width: 12%;
    white-space: nowrap;
}

.robots_control_table td:nth-child(1),
.robots_control_table td.robots_control_table__url {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: none;
}

.robots_control_table td:nth-child(2),
.robots_control_table td:nth-child(3),
.robots_control_table td:nth-child(4) {
    overflow: hidden;
}

#robots-blocked-app {
    display: block;
    float: none;
    width: 100%;
}

.account_layout {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
    margin-top: 0.5rem;
}

.account_nav {
    position: sticky;
    top: 1rem;
    align-self: start;
    min-height: 16rem;
    padding: 0.75rem 0;
    border-right: 1px solid var(--color-border);
}

.account_nav__label {
    margin: 0 0 0.65rem;
    padding: 0 0.85rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.account_nav__list {
    margin: 0;
    padding: 0 0 0 0.85rem;
    list-style: none;
    border-left: 1px solid var(--color-border);
}

.account_nav__list li {
    margin: 0;
}

.account_nav__link {
    display: block;
    position: relative;
    margin: 0.15rem 0;
    padding: 0.55rem 0.75rem 0.55rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.account_nav__link::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: -0.2rem;
    border-radius: 50%;
    background: var(--color-border);
}

.account_nav__link:hover {
    background: var(--color-primary-soft);
    color: var(--color-heading);
}

.account_nav__link.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 600;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.account_nav__link.is-active::before {
    background: var(--color-primary);
}

.account_layout__main {
    min-width: 0;
}

.account_identity {
    margin: 0 0 1.25rem;
}

.account_meta {
    margin: 0 0 1rem;
    line-height: 1.6;
    text-align: left;
    color: var(--color-text);
}

.account_identity h2,
.account_billing h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--color-heading);
}

.account_billing h3 {
    margin: 1.35rem 0 0.65rem;
    font-size: 1.05rem;
    color: var(--color-heading);
}

.account_billing {
    margin: 0 0 0.5rem;
    padding-bottom: 0.25rem;
}

.account_billing_help {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.account_billing_capacity {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.05rem;
    background: var(--color-primary-soft, #e8f1fb);
    border: 1px solid color-mix(in srgb, var(--color-primary, #1062ae) 28%, transparent);
    border-left: 4px solid var(--color-primary, #1062ae);
    border-radius: var(--radius-sm, 6px);
    color: var(--color-heading, #0f172a);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.55;
}

.account_billing_capacity strong {
    font-weight: 700;
    color: var(--color-heading, #0f172a);
}

.account_billing_capacity a {
    font-weight: 600;
}

.account_billing_capacity__pending {
    display: inline;
    font-weight: 700;
    color: #9a3412;
}

.account_billing_capacity__renews {
    color: var(--color-text-muted, #64748b);
    font-weight: 500;
}

.account_billing_warn {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
    line-height: 1.55;
    font-weight: 600;
}

.account_billing_alert {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    background: #fff8e6;
    border: 2px solid #c47f00;
    border-radius: var(--radius-sm);
    color: #5c3d00;
    line-height: 1.6;
}

.account_billing_alert__title {
    margin: 0 0 0.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #8a5a00;
}

.account_billing_alert p {
    margin: 0;
}

.account_billing_alert a {
    color: var(--color-primary, #0b57d0);
}

.account_billing_alert a:hover {
    text-decoration: none;
}

.account_billing .intro_actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.account_subscribe_row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.account_subscribe_form .form-group {
    margin-bottom: 0;
    flex: 0 0 10rem;
    max-width: 10rem;
}

/* Add/Reduce stack the field above the quote (no subscribe_row gap). */
.account_subscribe_form > .form-group {
    margin-bottom: 0.85rem;
}

.account_subscribe_form label,
.account_delete_form label:not(.legal-checkbox) {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--color-heading);
}

.account_subscribe_form .form-control,
.account_delete_form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.account_subscribe_form .form-control:focus,
.account_delete_form .form-control:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.account_delete_form .form-group:not(.form-group--checkbox) {
    max-width: 22rem;
}

.account_billing_quote {
    flex: 1 1 14rem;
    margin: 0;
    min-width: 0;
    line-height: 1.6;
    background-color: var(--color-highlight);
    text-align: center;
    padding: 10px 0.75rem;
    border-radius: var(--radius-sm);
}

.account_billing_quote--breakdown {
    text-align: left;
    padding: 0.85rem 1rem;
}

.account_billing_quote_rows {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
    margin: 0;
}

.account_billing_quote_rows dt {
    margin: 0;
    color: var(--color-text-muted);
    font-weight: 500;
}

.account_billing_quote_rows dd {
    margin: 0;
    font-weight: 600;
}

.account_billing_error {
    margin: 0 0 0.85rem;
    color: #9b1c1c;
    font-weight: 600;
}

body.billing_confirm_open {
    overflow: hidden;
}

.billing_confirm[hidden] {
    display: none !important;
}

.billing_confirm {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.billing_confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.billing_confirm__dialog {
    position: relative;
    z-index: 1;
    width: min(28rem, calc(100vw - 2rem));
    margin: 18vh auto 0;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #cbd5e1);
    border-radius: var(--radius-sm, 10px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    outline: none;
}

.billing_confirm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--color-primary, #1062ae);
}

.account_billing .billing_confirm__header h2,
.billing_confirm__header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-on-primary, #fff);
}

.billing_confirm__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-on-primary, #fff);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.billing_confirm__close:hover,
.billing_confirm__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.billing_confirm__header--danger {
    background: #b91c1c;
}

.billing_confirm__body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.billing_confirm__rows {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.15rem;
    margin: 0 0 1rem;
}

.billing_confirm__rows dt {
    margin: 0;
    color: var(--color-text-muted);
    font-weight: 500;
}

.billing_confirm__rows dd {
    margin: 0;
    font-weight: 600;
    color: var(--color-heading);
}

.billing_confirm__note {
    margin: 0 0 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.billing_confirm__warn {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.9rem;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
    line-height: 1.55;
    font-weight: 600;
}

.billing_confirm .intro_actions {
    margin-top: 0;
}

/*
 * .intro_btn is only styled inside page shells (.add_webpage, .account_layout, …),
 * so give the dialog its own buttons — it can be included on any page.
 * Declared before the .account_layout rules below, which keep winning there.
 */
.billing_confirm .intro_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 8rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #1062ae;
    border: 1px solid #1062ae;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.billing_confirm .intro_btn:hover,
.billing_confirm .intro_btn:focus-visible {
    background-color: #0c4d8a;
    border-color: #0c4d8a;
}

.billing_confirm .intro_btn--outline {
    color: #1062ae;
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.billing_confirm .intro_btn--outline:hover,
.billing_confirm .intro_btn--outline:focus-visible {
    color: #0c4d8a;
    background-color: #e8f0fe;
    border-color: #1062ae;
}

.billing_confirm .intro_btn.btn_danger {
    color: #ffffff;
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.billing_confirm .intro_btn.btn_danger:hover,
.billing_confirm .intro_btn.btn_danger:focus-visible {
    background-color: #991b1b;
    border-color: #991b1b;
}

@media (max-width: 640px) {
    .account_subscribe_row {
        flex-direction: column;
        align-items: stretch;
    }

    .account_subscribe_form .form-group {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }

    .account_billing_quote {
        flex: 1 1 auto;
        width: 100%;
    }
}

.account_layout .intro_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 8rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    color: var(--color-on-primary);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account_layout .intro_btn:hover,
.account_layout .intro_btn:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-on-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.account_layout .intro_btn--outline {
    color: var(--color-primary);
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

.account_layout .intro_btn--outline:hover,
.account_layout .intro_btn--outline:focus {
    color: var(--color-primary-hover);
    background-color: var(--color-primary-soft);
    border-color: var(--color-primary);
    box-shadow: none;
}

.account_danger {
    margin: 0;
    padding-top: 0.25rem;
}

.account_danger h2 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1.15rem;
}

.account_delete_warning {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--color-danger-soft);
    border: 2px solid var(--color-danger);
    border-radius: var(--radius-sm);
    color: var(--color-danger);
}

.account_delete_warning__title {
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: var(--color-danger);
    font-size: 1.05rem;
}

.account_delete_warning p:last-child {
    margin-bottom: 0;
}

.account_delete_form .form-group {
    margin-bottom: 1rem;
}

.account_delete_btn {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-on-primary);
}

.account_delete_btn:hover,
.account_delete_btn:focus {
    background: var(--color-danger-hover);
    border-color: var(--color-danger-hover);
    color: var(--color-on-primary);
}

@media (max-width: 720px) {
    .account_layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account_nav {
        position: static;
        min-height: 0;
        padding: 0 0 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .account_nav__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding-left: 0;
        border-left: none;
    }

    .account_nav__link::before {
        display: none;
    }
}
