:root {
    --sfc-bg: #090d14;
    --sfc-surface: #111824;
    --sfc-surface-raised: #172131;
    --sfc-border: #263448;
    --sfc-text: #f4f7fb;
    --sfc-muted: #9aa9bd;
    --sfc-primary: #48a9ff;
    --sfc-success: #4ed6a7;
    --sfc-header-height: 68px;
    --sfc-sidebar-width: 240px;
    --sfc-sidebar-collapsed: 76px;
}

* { box-sizing: border-box; }
html { background: var(--sfc-bg); }
.sfc-body { min-height: 100vh; margin: 0; background: var(--sfc-bg); color: var(--sfc-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sfc-body h1, .sfc-body h2, .sfc-body h3 { color: var(--sfc-text); letter-spacing: -.025em; }
.sfc-body a { color: var(--sfc-primary); }
.sfc-muted { color: var(--sfc-muted); }
.sfc-eyebrow { margin: 0 0 6px; color: var(--sfc-primary); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.sfc-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: var(--sfc-header-height); background: rgba(12, 18, 28, .96); border-bottom: 1px solid var(--sfc-border); backdrop-filter: blur(14px); }
.sfc-header__inner { height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.sfc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--sfc-text) !important; font-weight: 700; text-decoration: none !important; }
.sfc-logo__mark { display: block; width: 32px; height: 32px; border-radius: 0; background: none; object-fit: contain; }
.sfc-logo__text { letter-spacing: -.02em; }
.sfc-icon-button, .sfc-account-trigger { border: 0; color: var(--sfc-text); background: transparent; cursor: pointer; }
.sfc-icon-button { width: 40px; height: 40px; margin-right: 8px; border-radius: 10px; }
.sfc-icon-button:hover, .sfc-icon-button:focus-visible, .sfc-account-trigger:hover, .sfc-account-trigger:focus-visible { background: var(--sfc-surface-raised); outline: 2px solid transparent; }
.sfc-account-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 10px; border-radius: 12px; font-weight: 600; }
.sfc-header-actions { display: flex; align-items: center; gap: 8px; }
.sfc-header-tasks { position: relative; display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--sfc-text) !important; border-radius: 12px; text-decoration: none !important; }
.sfc-header-tasks:hover, .sfc-header-tasks:focus-visible { background: var(--sfc-surface-raised); outline: 2px solid transparent; }
.sfc-header-tasks__badge { position: absolute; top: 1px; right: 0; display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; color: #06101c; background: var(--sfc-primary); border: 2px solid #0c121c; border-radius: 12px; font-size: .65rem; font-weight: 800; line-height: 1; }
.sfc-website-selector { margin-left: 22px; }
.sfc-website-selector__trigger, .sfc-website-selector__empty { display: flex; min-height: 42px; max-width: min(34vw, 340px); align-items: center; gap: 9px; padding: 6px 12px; color: var(--sfc-text); background: var(--sfc-surface); border: 1px solid var(--sfc-border); border-radius: 10px; }
.sfc-website-selector__trigger { cursor: pointer; font: inherit; font-weight: 700; }
.sfc-website-selector__trigger:hover, .sfc-website-selector__trigger:focus-visible { border-color: #4c6484; background: var(--sfc-surface-raised); outline: none; }
.sfc-website-selector__trigger > span:not(.sfc-favicon-fallback) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-website-selector__trigger img, .sfc-website-selector__menu img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; object-fit: contain; }
.sfc-website-selector__trigger > .fa-chevron-down { margin-left: 3px; color: var(--sfc-muted); font-size: .7rem; }
.sfc-website-selector__empty { color: var(--sfc-muted); font-size: .88rem; }
.sfc-website-selector__menu { width: min(92vw, 320px); max-height: min(420px, 65vh); overflow-y: auto; }
.sfc-website-selector__menu .sfc-dropdown-button > span:not(.sfc-favicon-fallback) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-website-selector__menu .uk-active .sfc-dropdown-button { background: rgba(72,169,255,.1); }
.sfc-avatar { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #06101c; background: var(--sfc-primary); font-weight: 800; }
.sfc-dropdown { min-width: 210px; padding: 10px; background: var(--sfc-surface-raised); border: 1px solid var(--sfc-border); border-radius: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.sfc-dropdown .uk-nav a, .sfc-dropdown-button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; color: var(--sfc-text); border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.sfc-dropdown .uk-nav a:hover, .sfc-dropdown-button:hover { background: rgba(255,255,255,.06); color: #fff; }

.sfc-sidebar { position: fixed; z-index: 900; top: var(--sfc-header-height); bottom: 0; left: 0; width: var(--sfc-sidebar-width); padding: 22px 14px; background: #0c121c; border-right: 1px solid var(--sfc-border); transition: width .2s ease; }
.sfc-nav { margin: 0; padding: 0; list-style: none; }
.sfc-nav > li:not(.sfc-nav__heading) { margin-bottom: 3px; }
.sfc-nav a { display: flex; min-height: 46px; align-items: center; gap: 14px; padding: 0 14px; color: var(--sfc-muted); border-radius: 10px; text-decoration: none; white-space: nowrap; overflow: hidden; }
.sfc-nav a i { width: 20px; text-align: center; }
.sfc-nav a:hover, .sfc-nav a:focus-visible, .sfc-nav .is-active a { color: var(--sfc-text); background: var(--sfc-surface-raised); }
.sfc-nav .is-active a { box-shadow: inset 3px 0 var(--sfc-primary); }
.sfc-nav__heading { padding: 12px 14px 9px; color: #6f8199; font-size: .68rem; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; transition: padding .2s ease; }
.sfc-sidebar-collapsed .sfc-sidebar { width: var(--sfc-sidebar-collapsed); }
.sfc-sidebar-collapsed .sfc-sidebar .sfc-nav__label { opacity: 0; }
.sfc-sidebar-collapsed .sfc-sidebar .sfc-nav__heading { padding-top: 3px; padding-bottom: 3px; }
.sfc-sidebar-collapsed .sfc-sidebar .sfc-nav__heading span { visibility: hidden; }
.sfc-sidebar-collapsed .sfc-content { margin-left: var(--sfc-sidebar-collapsed); }
.sfc-content { min-height: 100vh; padding: calc(var(--sfc-header-height) + 42px) 30px 50px; margin-left: var(--sfc-sidebar-width); transition: margin-left .2s ease; }
.sfc-offcanvas { background: #0c121c; }

.sfc-page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sfc-page-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.45rem); }
.sfc-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sfc-page-actions form { margin: 0; }
.sfc-card { height: 100%; padding: 28px; background: linear-gradient(145deg, var(--sfc-surface-raised), var(--sfc-surface)); border: 1px solid var(--sfc-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.sfc-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.sfc-card__icon { display: inline-grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: var(--sfc-primary); background: rgba(72,169,255,.12); }
.sfc-section-heading { display: flex; gap: 14px; margin-bottom: 22px; }
.sfc-section-heading > i { margin-top: 4px; color: var(--sfc-primary); }
.sfc-section-heading > .uk-button { align-self: center; flex: 0 0 auto; }
.sfc-section-heading p { margin: 0; color: var(--sfc-muted); }
.sfc-form-narrow { max-width: 650px; }

.sfc-body .uk-form-label { margin-bottom: 7px; color: #cdd7e5; font-weight: 600; }
.sfc-body .uk-input, .sfc-body .uk-select { height: 46px; color: var(--sfc-text); background-color: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; }
.sfc-body .uk-select:not([multiple]):not([size]) { height: 46px; }
.sfc-body .uk-input:focus, .sfc-body .uk-select:focus { border-color: var(--sfc-primary); box-shadow: 0 0 0 3px rgba(72,169,255,.15); }
.sfc-body .uk-button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: .75rem;
    line-height: 36px;
}
.sfc-body .uk-button-primary { background: var(--sfc-primary); color: #07101b; font-weight: 800; }
.sfc-body .uk-button-primary:hover, .sfc-body .uk-button-primary:focus { background: #7bc4ff; color: #07101b; }
.sfc-body .uk-button-default, .sfc-body .uk-button-danger { font-weight: 700; text-transform: uppercase; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.sfc-body .uk-button-default { color: #d8e2ef; background: #141e2c; border: 1px solid #33445c; }
.sfc-body .uk-button-default:hover, .sfc-body .uk-button-default:focus-visible { color: #fff; background: #1c293b; border-color: #4c6484; box-shadow: 0 0 0 3px rgba(76,100,132,.18); }
.sfc-body .uk-button-danger { color: #ffb9c1; background: rgba(220,53,69,.12); border: 1px solid rgba(255,100,116,.42); }
.sfc-body .uk-button-danger:hover, .sfc-body .uk-button-danger:focus-visible { color: #fff; background: #b73545; border-color: #d95463; box-shadow: 0 0 0 3px rgba(217,84,99,.18); }
.sfc-body .uk-button-small { min-height: 34px; padding: 0 12px; border-radius: 7px; font-size: .7rem; line-height: 32px; }
.sfc-body .uk-alert-danger, .sfc-body .uk-alert-success, .sfc-body .uk-alert-primary { position: relative; padding: 15px 46px 15px 18px; color: var(--sfc-text); background: var(--sfc-surface-raised); border: 1px solid var(--sfc-border); border-left-width: 4px; border-radius: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.sfc-body .uk-alert-danger { border-left-color: #ef6675; background: linear-gradient(90deg, rgba(239,102,117,.1), var(--sfc-surface-raised) 34%); }
.sfc-body .uk-alert-success { border-left-color: var(--sfc-success); background: linear-gradient(90deg, rgba(78,214,167,.1), var(--sfc-surface-raised) 34%); }
.sfc-body .uk-alert-primary { border-left-color: var(--sfc-primary); background: linear-gradient(90deg, rgba(72,169,255,.1), var(--sfc-surface-raised) 34%); }
.sfc-body .uk-alert-danger p, .sfc-body .uk-alert-success p, .sfc-body .uk-alert-primary p { margin: 0; color: inherit; }
.sfc-body .uk-alert-danger ul, .sfc-body .uk-alert-success ul, .sfc-body .uk-alert-primary ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.sfc-body .uk-alert-close { top: 50%; right: 16px; color: var(--sfc-muted); transform: translateY(-50%); opacity: 1; }
.sfc-body .uk-alert-close:hover, .sfc-body .uk-alert-close:focus-visible { color: #fff; }
.sfc-password-field { position: relative; }
.sfc-password-field .uk-input { padding-right: 48px; }
.sfc-password-toggle { position: absolute; inset: 3px 4px 3px auto; width: 40px; border: 0; border-radius: 7px; color: var(--sfc-muted); background: transparent; cursor: pointer; }
.sfc-password-toggle:hover, .sfc-password-toggle:focus-visible { color: var(--sfc-text); background: var(--sfc-surface-raised); }
.sfc-otp { max-width: 220px; font-size: 1.35rem; letter-spacing: .35em; text-align: center; }

.sfc-login-page { background: radial-gradient(circle at 20% 10%, rgba(72,169,255,.13), transparent 35%), radial-gradient(circle at 90% 80%, rgba(78,214,167,.08), transparent 30%), var(--sfc-bg); }
.sfc-login-shell { min-height: 100vh; display: grid; padding: 24px; place-items: center; }
.sfc-login-card { width: min(100%, 430px); padding: clamp(28px, 6vw, 44px); background: rgba(17,24,36,.94); border: 1px solid var(--sfc-border); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.sfc-login-brand { display: block; margin-bottom: 38px; color: var(--sfc-text); font-weight: 800; text-align: center; }
.sfc-login-brand__logo { display: block; width: auto; height: 30px; margin: 0 auto 8px; object-fit: contain; }
.sfc-login-brand span { display: block; }
.sfc-login-card h1 { margin: 0 0 8px; }
.sfc-guest-flash { position: fixed; z-index: 1100; top: 18px; left: 50%; width: min(92vw, 620px); transform: translateX(-50%); }
.sfc-table-wrap { overflow-x: auto; }
.sfc-table-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}
.sfc-table-search {
    position: relative;
    width: min(100%, 300px);
}
.sfc-table-search > i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--sfc-muted);
    font-size: .75rem;
    transform: translateY(-50%);
    pointer-events: none;
}
.sfc-body .sfc-table-search .uk-input {
    height: 38px;
    padding: 0 36px 0 34px;
    font-size: .8rem;
}
.sfc-table-search__reset {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 25px;
    height: 25px;
    padding: 0;
    place-items: center;
    color: var(--sfc-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: .7rem;
    transform: translateY(-50%);
    cursor: pointer;
}
.sfc-table-search__reset:hover,
.sfc-table-search__reset:focus-visible { color: var(--sfc-text); background: var(--sfc-surface-raised); outline: none; }
.sfc-table-search__reset[hidden] { display: none; }
.sfc-table-sort {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}
.sfc-table-sort__icons {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    color: #596b82;
    font-size: .46rem;
    line-height: 1;
}
.sfc-table-sort[data-direction="asc"] .fa-arrow-up,
.sfc-table-sort[data-direction="desc"] .fa-arrow-down { color: var(--sfc-primary); }
.sfc-table-sort:not([data-direction]):hover .fa-arrow-up,
.sfc-table-sort:not([data-direction]):focus-visible .fa-arrow-up { color: var(--sfc-text); }
.sfc-body .uk-table { font-size: .8rem; line-height: 1.45; }
.sfc-body .uk-table th { font-size: .7rem; }
.sfc-table { min-width: 760px; margin: 0; color: var(--sfc-text); }
.sfc-table th { color: var(--sfc-muted); letter-spacing: .08em; text-transform: uppercase; }
.sfc-table td { border-color: var(--sfc-border); }
.sfc-actions { white-space: nowrap; }
.sfc-actions > form { display: inline-block; margin: 0; vertical-align: middle; }
.sfc-table th:last-child { text-align: right; }
.sfc-table td.sfc-actions { text-align: right; }
.sfc-actions .uk-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 2px; line-height: 1; vertical-align: middle; }
.sfc-actions .uk-button i { line-height: 1; }
.sfc-modal { color: var(--sfc-text); background: var(--sfc-surface-raised); border: 1px solid var(--sfc-border); border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.sfc-modal .uk-modal-title { color: var(--sfc-text); }
.sfc-modal .uk-button + .uk-button { margin-left: 8px; }
.sfc-permissions { padding: 0; border: 0; }
.sfc-permissions legend { margin-bottom: 10px; color: #cdd7e5; font-weight: 700; }
.sfc-permission-option { display: flex; gap: 12px; align-items: center; padding: 14px; background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; cursor: pointer; }
.sfc-permission-option small { display: block; margin-top: 3px; color: var(--sfc-muted); }
.sfc-relationship-list li { display: flex; justify-content: space-between; gap: 16px; color: var(--sfc-text); }
.sfc-relationship-list li span { color: var(--sfc-muted); text-align: right; overflow-wrap: anywhere; }
.sfc-client-layout { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; align-items: start; }
.sfc-client-layout--single { max-width: 900px; grid-template-columns: minmax(0, 1fr); }
.sfc-client-form-card { height: auto; }
.sfc-form-section { margin: 0; padding: 0 0 24px; border: 0; }
.sfc-form-section + .sfc-form-section { padding-top: 24px; border-top: 1px solid var(--sfc-border); }
.sfc-form-section legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: var(--sfc-text); font-size: 1rem; font-weight: 800; }
.sfc-form-grid { display: grid; clear: both; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 18px 20px; }
.sfc-form-grid__full { grid-column: 1 / -1; }
.sfc-form-actions { padding-top: 2px; }
.sfc-directory-form-card { height: auto; }
.sfc-directory-categories { margin: 26px 0; padding-top: 24px; border-top: 1px solid var(--sfc-border); }
.sfc-directory-categories h2 { margin-bottom: 5px; }
.sfc-directory-categories > p { margin-top: 0; }
.sfc-directory-categories .sfc-category-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.sfc-directory-options { margin-top: 24px; }
.sfc-directory-options legend { margin-bottom: 7px; color: #cdd7e5; font-size: .875rem; font-weight: 600; }
.sfc-authority-control { display: flex; align-items: stretch; gap: 8px; }
.sfc-authority-control .uk-input { min-width: 0; flex: 1; }
.sfc-authority-control .uk-button { min-height: 46px; padding: 0 12px; flex: none; font-size: .7rem; white-space: nowrap; }
.sfc-field-feedback { min-height: 18px; margin: 6px 0 0; color: var(--sfc-muted); font-size: .78rem; }
.sfc-body .uk-form-stacked .uk-text-meta {
    margin: 5px 0 0;
    color: #6f9fcf;
    font-size: .78rem;
    line-height: 1.4;
}
.sfc-field-feedback.is-success { color: var(--sfc-success); }
.sfc-field-feedback.is-error { color: #ff9eaa; }
.sfc-radio-row { display: flex; clear: both; gap: 24px; }
.sfc-radio-row label, .sfc-category-option { color: var(--sfc-text); cursor: pointer; }
.sfc-checkbox-option { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--sfc-text); cursor: pointer; }
.sfc-category-options { display: grid; clear: both; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sfc-category-option { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 8px 9px; background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; font-size: .78rem; }
.sfc-directory-url { display: inline-block; max-width: 360px; overflow: hidden; color: var(--sfc-muted) !important; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sfc-permission-summary { color: var(--sfc-muted); font-size: .78rem; line-height: 1.4; }
.sfc-submissions-card { height: auto; margin-top: 22px; }
.sfc-submissions-card .sfc-section-heading { align-items: center; justify-content: space-between; }
.sfc-submissions-card .sfc-section-heading h2 { margin-bottom: 5px; }
.sfc-website-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.sfc-website-name img { display: block; width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.sfc-submission-notes-summary { max-width: 260px; color: var(--sfc-muted); }
.sfc-table-actions { text-align: right; }
.sfc-submission-actions, .sfc-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sfc-submission-actions .uk-button, .sfc-modal-actions .uk-button { margin-left: 0 !important; }
.sfc-submission-modal { width: min(620px, calc(100vw - 30px)); }
.sfc-submission-modal .sfc-rich-editor { min-height: 140px; }
.sfc-submission-website-selector { display: block; width: 100%; }
.sfc-submission-website-trigger { display: flex; width: 100%; height: 46px; align-items: center; gap: 9px; padding: 6px 12px; color: var(--sfc-text); background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; cursor: pointer; font: inherit; text-align: left; }
.sfc-submission-website-trigger:hover, .sfc-submission-website-trigger:focus-visible { border-color: var(--sfc-primary); box-shadow: 0 0 0 3px rgba(72,169,255,.15); outline: none; }
.sfc-submission-website-trigger > #submission-website-trigger-label,
.sfc-submission-website-trigger > #task-website-trigger-label,
.sfc-submission-website-trigger > #work-log-website-label,
.sfc-submission-website-trigger > #keyword-website-label,
.sfc-submission-website-trigger > #keyword-reference-website-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-submission-website-trigger > .fa-chevron-down { color: var(--sfc-muted); font-size: .7rem; }
.sfc-submission-website-trigger img, .sfc-submission-website-menu img { display: block; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }
.sfc-submission-website-trigger #submission-website-trigger-icon, .sfc-submission-website-trigger #task-website-trigger-icon, .sfc-selector-option-icon { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; }
.sfc-submission-website-menu { width: 100%; max-height: 300px; overflow-y: auto; }
.sfc-submission-website-menu .sfc-selector-option-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-submission-website-menu [aria-selected="true"] { background: rgba(72,169,255,.1); }
.sfc-audit-info { display: inline-flex; min-width: 124px; flex-direction: column; gap: 2px; white-space: nowrap; }
.sfc-audit-info time { color: var(--sfc-text); font-size: .82rem; }
.sfc-audit-info > span { color: var(--sfc-muted); font-size: .76rem; }
.sfc-submission-modal .sfc-alert--error { margin-bottom: 18px; padding: 13px 16px; color: #ffb2bb; background: rgba(239,102,117,.1); border: 1px solid rgba(239,102,117,.35); border-radius: 9px; }
.sfc-submission-modal .sfc-alert--error ul { margin: 0; padding-left: 20px; }
.sfc-status--live { color: var(--sfc-success); background: rgba(78,214,167,.1); }
.sfc-status--awaiting_signup, .sfc-status--pending { color: #ffd37a; background: rgba(255,190,62,.1); }
.sfc-status--not_suitable, .sfc-status--rejected { color: #ff9eaa; background: rgba(239,102,117,.12); }
.sfc-score, .sfc-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.sfc-score { color: #baddff; background: rgba(72,169,255,.1); }
.sfc-status.is-safe { color: var(--sfc-success); background: rgba(78,214,167,.1); }
.sfc-status.is-danger { color: #ff9eaa; background: rgba(239,102,117,.12); }
.sfc-rich-editor { min-height: 190px; color: var(--sfc-text); background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 0 0 9px 9px; }
.sfc-rich-editor:focus { border-color: var(--sfc-primary); box-shadow: 0 0 0 3px rgba(72,169,255,.15); }
.sfc-body trix-toolbar { margin: 0; }
.sfc-body trix-toolbar .trix-button-row { padding: 7px; background: #111824; border: 1px solid var(--sfc-border); border-bottom: 0; border-radius: 9px 9px 0 0; }
.sfc-body trix-toolbar .trix-button-group { margin-bottom: 0; border-color: var(--sfc-border); }
.sfc-body trix-toolbar .trix-button { background-color: #172131; border-color: var(--sfc-border); }
.sfc-body trix-toolbar .trix-button--icon::before { filter: invert(1); }
.sfc-body trix-toolbar .trix-button.trix-active { background-color: rgba(72,169,255,.35); }
.sfc-body trix-toolbar .trix-button--icon-strike,
.sfc-body trix-toolbar .trix-button--icon-heading-1,
.sfc-body trix-toolbar .trix-button--icon-quote,
.sfc-body trix-toolbar .trix-button--icon-code,
.sfc-body trix-toolbar .trix-button--icon-attach { display: none; }
.sfc-body trix-toolbar .trix-dialog { color: var(--sfc-text); background: var(--sfc-surface-raised); border-color: var(--sfc-border); }
.sfc-body trix-toolbar .trix-input--dialog { color: var(--sfc-text); background: #0b111b; border-color: var(--sfc-border); }
.sfc-body trix-toolbar .trix-button--dialog { color: #fff; }
.sfc-body trix-editor a { color: var(--sfc-primary); }
.sfc-website-table th:first-child, .sfc-website-table td:first-child { width: 54px; }
.sfc-website-icon img { display: block; width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.sfc-favicon-fallback { display: inline-grid; width: 28px; height: 28px; place-items: center; color: var(--sfc-primary); background: rgba(72,169,255,.1); border-radius: 7px; }
.sfc-body img[src*="/assets/favicons/"] { padding: 3px; background: #f4f7fb; border: 1px solid rgba(255,255,255,.72); box-sizing: border-box; }
.sfc-empty-state { padding: 38px 20px; color: var(--sfc-muted); text-align: center; }
.sfc-empty-state > i { color: var(--sfc-primary); font-size: 2rem; }
.sfc-empty-state h2 { margin: 14px 0 5px; }
.sfc-empty-state p { margin: 0; }
.sfc-task-website-dropdown { display: block; width: 260px; }
.sfc-task-website-trigger { display: flex; width: 100%; height: 44px; align-items: center; gap: 10px; padding: 7px 12px; color: var(--sfc-text); background: var(--sfc-surface); border: 1px solid var(--sfc-border); border-radius: 9px; cursor: pointer; text-align: left; }
.sfc-task-website-trigger:hover, .sfc-task-website-trigger:focus-visible { border-color: var(--sfc-primary); box-shadow: 0 0 0 3px rgba(72,169,255,.15); outline: 0; }
.sfc-task-website-trigger > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-task-website-trigger > .fa-chevron-down { margin-left: auto; color: var(--sfc-muted); font-size: .7rem; }
.sfc-task-website-trigger img, .sfc-task-website-menu img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; object-fit: contain; }
.sfc-task-website-menu { width: 100%; max-height: 320px; overflow-y: auto; }
.sfc-task-website-menu .sfc-dropdown-button { text-decoration: none; }
.sfc-task-website-menu .sfc-dropdown-button > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-task-website-menu .is-active { background: rgba(72,169,255,.1); }
.sfc-assigned-task-filter { margin: 0; }
.sfc-assigned-task-filter label { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 12px; color: var(--sfc-text); background: var(--sfc-surface); border: 1px solid var(--sfc-border); border-radius: 9px; cursor: pointer; font-size: .82rem; white-space: nowrap; }
.sfc-task-sections { display: grid; gap: 26px; }
.sfc-task-section > h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 1.1rem; }
.sfc-task-section > h2 i { color: var(--sfc-primary); }
.sfc-task-section > h2 span { display: inline-grid; min-width: 25px; height: 25px; place-items: center; color: var(--sfc-muted); background: var(--sfc-surface-raised); border-radius: 20px; font-size: .72rem; }
.sfc-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sfc-task-card { padding: 20px; background: linear-gradient(145deg, var(--sfc-surface-raised), var(--sfc-surface)); border: 1px solid var(--sfc-border); border-radius: 13px; }
.sfc-task-card.is-important { border-left: 4px solid #ffbf4b; }
.sfc-task-card__top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.sfc-task-card h3 { margin: 14px 0; color: #fff; font-size: 1.22rem; font-weight: 700; line-height: 1.35; }
.sfc-task-priority, .sfc-important { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.sfc-task-priority.is-high { color: #ffabb5; background: rgba(239,102,117,.12); }
.sfc-task-priority.is-medium { color: #ffd37a; background: rgba(255,190,62,.1); }
.sfc-task-priority.is-low { color: #a8e9d2; background: rgba(78,214,167,.1); }
.sfc-important { color: #ffd37a; }
.sfc-task-meta { display: grid; gap: 7px; margin: 0 0 16px; }
.sfc-task-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 9px; }
.sfc-task-meta dt { color: var(--sfc-muted); font-size: .75rem; font-weight: 700; }
.sfc-task-meta dd { margin: 0; color: var(--sfc-text); font-size: .82rem; }
.sfc-task-card__website { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.sfc-task-card__website img, .sfc-task-card__website .sfc-favicon-fallback { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; object-fit: contain; }
.sfc-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sfc-task-actions form { margin: 0; }
.sfc-task-actions .uk-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
.sfc-task-actions .uk-button i { line-height: 1; }
.sfc-task-empty { padding: 18px; color: var(--sfc-muted); background: rgba(255,255,255,.02); border: 1px dashed var(--sfc-border); border-radius: 10px; }
.sfc-task-form-card { height: auto; max-width: 900px; }
.sfc-task-edit-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.sfc-task-edit-layout .sfc-task-form-card { max-width: none; }
.sfc-task-edit-side { display: grid; gap: 22px; min-width: 0; }
.sfc-task-edit-side .sfc-task-child-card { max-width: none; margin-top: 0; }
.sfc-task-form-card .sfc-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfc-task-details > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.sfc-task-details > dl > div { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--sfc-border); }
.sfc-task-details dt { margin-bottom: 6px; color: var(--sfc-muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sfc-task-details dd { margin: 0; color: var(--sfc-text); overflow-wrap: anywhere; }
.sfc-task-details__full { grid-column: 1 / -1; }
.sfc-task-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--sfc-border); }
.sfc-assignee-selector { display: block; }
.sfc-assignee-trigger { display: flex; width: 100%; height: 46px; align-items: center; justify-content: space-between; padding: 0 13px; color: var(--sfc-text); background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; cursor: pointer; }
.sfc-assignee-menu { width: 100%; max-height: 280px; overflow-y: auto; }
.sfc-assignee-menu label { display: flex; align-items: center; gap: 9px; padding: 8px; color: var(--sfc-text); cursor: pointer; }
.sfc-task-child-card { height: auto; max-width: 900px; margin-top: 22px; }
.sfc-task-child-card .sfc-section-heading { align-items: center; justify-content: space-between; }
.sfc-task-child-list { display: grid; gap: 10px; }
.sfc-task-child-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 10px; }
.sfc-task-child-list article > div:first-child { min-width: 0; flex: 1; }
.sfc-task-child-list h3 { margin: 0 0 8px; color: var(--sfc-text); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.sfc-microtask-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sfc-microtask-heading h3 { margin: 0; }
.sfc-microtask-status { display: inline-flex; align-items: center; gap: 5px; color: var(--sfc-muted); font-size: .72rem; font-weight: 700; }
.sfc-task-child-list article.is-completed { border-color: rgba(78,214,167,.35); }
.sfc-task-child-list article.is-completed .sfc-microtask-status { color: var(--sfc-success); }
.sfc-task-child-list article:has(.sfc-microtask-heading) { position: relative; display: block; }
.sfc-task-child-list article:has(.sfc-microtask-heading) .sfc-microtask-heading { padding-right: 270px; }
.sfc-task-child-list article:has(.sfc-microtask-heading) > .sfc-actions { position: absolute; top: 16px; right: 16px; }
.sfc-task-child-list .sfc-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.sfc-task-child-list .sfc-actions form { margin: 0; }
.sfc-task-child-list .sfc-actions .uk-button { margin: 0; }
.sfc-rich-content { color: var(--sfc-text); overflow-wrap: anywhere; }
.sfc-task-child-list .sfc-rich-content { font-size: .9rem; line-height: 1.55; }
.sfc-rich-content > :last-child { margin-bottom: 8px; }
.sfc-attachment-upload { display: flex; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.sfc-work-log-card { width: 50%; max-width: none; box-sizing: border-box; }
.sfc-work-log-upload-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sfc-border); }
.sfc-work-log-upload-section h2 { margin-bottom: 4px; }
.sfc-attachment-upload > .uk-button { min-width: 190px; }
.sfc-file-picker { display: flex; min-width: 0; min-height: 46px; flex: 1; align-items: center; gap: 12px; padding: 5px 12px 5px 5px; background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; }
.sfc-file-picker:focus-within { border-color: var(--sfc-primary); box-shadow: 0 0 0 3px rgba(72,169,255,.15); }
.sfc-file-picker__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sfc-file-picker__button { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 12px; color: var(--sfc-text); background: var(--sfc-surface-raised); border: 1px solid var(--sfc-border); border-radius: 7px; cursor: pointer; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.sfc-file-picker__button:hover { color: #fff; border-color: var(--sfc-primary); }
.sfc-file-picker__name { min-width: 0; overflow: hidden; color: var(--sfc-muted); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.sfc-attachment-list { display: grid; gap: 9px; }
.sfc-attachment-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #0b111b; border: 1px solid var(--sfc-border); border-radius: 9px; }
.sfc-attachment-list small { display: block; margin-top: 3px; color: var(--sfc-muted); }
.sfc-attachment-list form { margin: 0; }
.sfc-attachment-list .sfc-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.sfc-attachment-list .sfc-actions .uk-button { width: auto; margin: 0; }
.sfc-work-log-view { height: auto; }
.sfc-work-log-view dl { display: flex; flex-wrap: wrap; gap: 22px; }
.sfc-work-log-view dt { color: var(--sfc-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.sfc-work-log-view dd { margin: 3px 0 0; }
.sfc-work-log-audit { display: flex; gap: 18px; margin-top: 22px; }
.sfc-work-log-tabs { height: auto; }
.sfc-work-log-category-tabs { margin-bottom: 20px; }
.sfc-work-log-category-tabs::before { border-color: var(--sfc-border); }
.sfc-work-log-category-tabs > * > a { gap: 7px; color: var(--sfc-muted); border-color: transparent; font-weight: 800; }
.sfc-work-log-category-tabs > .uk-active > a { color: var(--sfc-primary); border-color: var(--sfc-primary); }
.sfc-work-log-month-filter { width: 190px; }
.sfc-tab-count { display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: var(--sfc-text); background: var(--sfc-surface-raised); border-radius: 50%; font-size: .62rem; }
.sfc-keyword-options-error { margin: 0 0 16px; padding: 11px 13px; color: #ffb2bb; background: rgba(239,102,117,.1); border: 1px solid rgba(239,102,117,.35); border-radius: 9px; font-size: .85rem; }
.sfc-wincher-domain { display: block; margin-top: 3px; color: var(--sfc-muted); font-size: .76rem; }
.sfc-wincher-section-heading > .uk-button { margin-left: auto; }
.sfc-synced-label { display: inline-flex; align-items: center; gap: 6px; color: #79b8f2; font-size: .75rem; font-weight: 700; }

@media (max-width: 959px) {
    .sfc-content { margin-left: 0; padding: calc(var(--sfc-header-height) + 28px) 16px 36px; }
    .sfc-header__inner { padding: 0 14px; }
    .sfc-card { padding: 22px; }
    .sfc-website-selector { margin-left: 10px; }
    .sfc-website-selector__trigger, .sfc-website-selector__empty { max-width: 38vw; }
    .sfc-client-layout { grid-template-columns: minmax(0, 1fr); }
    .sfc-task-edit-layout { grid-template-columns: minmax(0, 1fr); }
    .sfc-work-log-card { width: 100%; }
    .sfc-directory-categories .sfc-category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .sfc-logo__text { display: none; }
    .sfc-login-card .sfc-logo__text { display: inline; }
    .sfc-header .sfc-logo { display: none; }
    .sfc-website-selector__trigger, .sfc-website-selector__empty { max-width: 42vw; padding-inline: 9px; }
    .sfc-website-selector__empty { font-size: 0; }
    .sfc-website-selector__empty i { font-size: .9rem; }
    .sfc-login-shell { padding: 14px; }
    .sfc-login-card { padding: 26px 20px; }
    .sfc-page-heading { align-items: flex-start; gap: 14px; flex-direction: column; }
    .sfc-page-heading .uk-button { width: 100%; }
    .sfc-page-actions { width: 100%; flex-direction: column; }
    .sfc-page-actions form { width: 100%; }
    .sfc-assigned-task-filter label { width: 100%; white-space: normal; }
    .sfc-task-website-dropdown { width: 100%; }
    .sfc-work-log-month-filter { width: 100%; }
    .sfc-directory-categories .sfc-category-options { grid-template-columns: minmax(0, 1fr); }
    .sfc-table { min-width: 0; }
    .sfc-table thead { display: none; }
    .sfc-table, .sfc-table tbody, .sfc-table tr, .sfc-table td { display: block; width: 100%; }
    .sfc-table tr { padding: 12px 0; border-bottom: 1px solid var(--sfc-border); }
    .sfc-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; text-align: left !important; overflow-wrap: anywhere; }
    .sfc-table td::before { content: attr(data-label); color: var(--sfc-muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .sfc-actions .uk-button { width: 100%; margin: 3px 0; }
    .sfc-modal form .uk-button { width: 100%; margin: 5px 0 0; }
    .sfc-modal .uk-button + .uk-button { margin-left: 0; }
    .sfc-form-grid { grid-template-columns: minmax(0, 1fr); }
    .sfc-task-form-card .sfc-form-grid { grid-template-columns: minmax(0, 1fr); }
    .sfc-task-details > dl { grid-template-columns: minmax(0, 1fr); }
    .sfc-task-details__full { grid-column: auto; }
    .sfc-task-grid { grid-template-columns: minmax(0, 1fr); }
    .sfc-task-status-bar, .sfc-task-child-card .sfc-section-heading, .sfc-task-child-list article { align-items: stretch; flex-direction: column; }
    .sfc-wincher-section-heading { align-items: stretch; flex-direction: column; }
    .sfc-wincher-section-heading > .uk-button { width: 100%; margin-left: 0; }
    .sfc-attachment-upload { flex-direction: column; }
    .sfc-attachment-upload > .uk-button { width: 100%; }
    .sfc-task-child-list article:has(.sfc-microtask-heading) .sfc-microtask-heading { padding-right: 0; }
    .sfc-task-child-list article:has(.sfc-microtask-heading) > .sfc-actions { position: static; margin-top: 12px; }
}
.sfc-ranking-row {
    cursor: pointer;
}

.sfc-ranking-table {
    min-width: 1120px;
}

.sfc-ranking-row:hover,
.sfc-ranking-row:focus {
    background: rgba(73, 167, 245, .08);
    outline: none;
}

.sfc-ranking-unconfigured {
    display: block;
    margin-top: 3px;
    color: #91abc6;
    font-size: .78rem;
    font-weight: 400;
}

.sfc-ranking-badges,
.sfc-serp-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.sfc-intent-badge {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: #506176;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 900;
}

.sfc-intent-badge.is-commercial { background: #188a83; }
.sfc-intent-badge.is-informational { background: #2779bd; }
.sfc-intent-badge.is-navigational { background: #7651bb; }
.sfc-intent-badge.is-transactional { background: #b25a28; }

.sfc-ranking-change {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
    gap: 5px;
}

.sfc-ranking-change.is-improved { color: #75e7aa; background: rgba(40, 190, 111, .12); border-color: rgba(40, 190, 111, .3); }
.sfc-ranking-change.is-declined { color: #ff929e; background: rgba(239, 79, 96, .12); border-color: rgba(239, 79, 96, .3); }
.sfc-ranking-change.is-unchanged { color: #b1c1d4; background: rgba(145, 165, 188, .1); border-color: rgba(145, 165, 188, .24); }
.sfc-ranking-change.is-new { color: #7ec5ff; background: rgba(73, 167, 245, .12); border-color: rgba(73, 167, 245, .3); }
.sfc-ranking-change.is-not-ranking,
.sfc-ranking-change.is-neutral { color: #d4a5ff; background: rgba(159, 92, 214, .12); border-color: rgba(159, 92, 214, .28); }

.sfc-ranking-difficulty {
    display: flex;
    min-width: 100px;
    align-items: center;
    gap: 9px;
}

.sfc-ranking-difficulty > span {
    width: 64px;
    height: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, .09);
    border-radius: 10px;
}

.sfc-ranking-difficulty i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38cf78 0%, #f0c64d 55%, #ee596b 100%);
    border-radius: inherit;
}

.sfc-ranking-difficulty strong {
    font-size: .85rem;
}

.sfc-serp-features span {
    display: inline-flex;
    max-width: 120px;
    padding: 3px 7px;
    overflow: hidden;
    color: #b9d8f6;
    background: rgba(73, 167, 245, .1);
    border: 1px solid rgba(73, 167, 245, .22);
    border-radius: 5px;
    font-size: .66rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfc-ranking-range {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 20px;
}

.sfc-ranking-chart {
    position: relative;
    height: 340px;
    padding: 16px 12px 8px;
    background: #0b111b;
    border: 1px solid var(--sfc-border);
    border-radius: 10px;
}

.sfc-ranking-modal {
    width: min(1500px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
}

.sfc-ranking-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    gap: 26px;
    align-items: start;
}

.sfc-ranking-modal__chart-column,
.sfc-ranking-modal__sidebar {
    min-width: 0;
}

.sfc-ranking-modal__sidebar {
    padding: 18px;
    background: #111a29;
    border: 1px solid var(--sfc-border);
    border-radius: 10px;
}

.sfc-ranking-modal .uk-modal-close-default {
    color: var(--sfc-muted);
}

.sfc-ranking-modal .uk-modal-close-default:hover {
    color: var(--sfc-text);
}

.sfc-ranking-modal .uk-modal-title {
    margin: 0 42px 20px 0;
    font-size: 1.65rem;
    line-height: 1.25;
}

.sfc-ranking-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--sfc-muted);
    font-size: .86rem;
}

.sfc-ranking-location i {
    color: var(--sfc-primary);
}

.sfc-ranking-location strong {
    color: var(--sfc-text);
    font-weight: 700;
}

.sfc-ranking-location [data-ranking-context] {
    flex-basis: 100%;
    padding-left: 22px;
}

.sfc-ranking-section-heading,
.sfc-ranking-chart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.sfc-ranking-section-heading h3,
.sfc-ranking-chart-heading h3 {
    margin: 2px 0 0;
    color: var(--sfc-text);
    font-size: 1.05rem;
}

.sfc-ranking-chart-instruction {
    margin: 0;
    color: var(--sfc-muted);
    font-size: .78rem;
}

.sfc-ranking-chart-instruction {
    margin: -5px 0 12px;
}

.sfc-ranking-chart-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfc-ranking-chart-options label {
    color: var(--sfc-muted);
    font-size: .76rem;
    font-weight: 700;
}

.sfc-ranking-chart-options .uk-select {
    width: 175px;
    min-height: 38px;
    height: 38px;
    padding-right: 34px;
    font-size: .82rem;
}

.sfc-ranking-pages {
    display: grid;
    gap: 7px;
}

.sfc-ranking-pages article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #0b111b;
    border: 1px solid var(--sfc-border);
    border-radius: 9px;
}

.sfc-ranking-pages a,
.sfc-ranking-pages article > span:not(.sfc-ranking-page-position) {
    min-width: 0;
    overflow: hidden;
    color: #8fc7ff;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sfc-ranking-pages article > i {
    color: var(--sfc-muted);
    font-size: .72rem;
}

.sfc-ranking-page-position {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #07111f;
    background: var(--sfc-primary);
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 900;
}

.sfc-ranking-lazy-status {
    padding: 18px 8px 4px;
    color: var(--sfc-muted);
    font-size: .82rem;
    text-align: center;
}

.sfc-ranking-ruler {
    margin-top: 14px;
    padding: 10px 12px 8px;
    background: #0b111b;
    border: 1px solid var(--sfc-border);
    border-radius: 9px;
}

.sfc-ranking-ruler__overview {
    height: 48px;
    opacity: .78;
}

.sfc-ranking-ruler__overview canvas {
    display: block;
    width: 100% !important;
}

.sfc-ranking-ruler__controls {
    position: relative;
    height: 24px;
    margin-top: -4px;
}

.sfc-ranking-ruler__controls input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.sfc-ranking-ruler__controls input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: rgba(73, 167, 245, .25);
    border-radius: 5px;
}

.sfc-ranking-ruler__controls input[type="range"]::-webkit-slider-thumb {
    width: 15px;
    height: 20px;
    margin-top: -8px;
    appearance: none;
    background: var(--sfc-primary);
    border: 2px solid #d9efff;
    border-radius: 4px;
    cursor: ew-resize;
    pointer-events: auto;
}

.sfc-ranking-ruler__controls input[type="range"]::-moz-range-track {
    height: 5px;
    background: rgba(73, 167, 245, .25);
    border: 0;
    border-radius: 5px;
}

.sfc-ranking-ruler__controls input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 18px;
    background: var(--sfc-primary);
    border: 2px solid #d9efff;
    border-radius: 4px;
    cursor: ew-resize;
    pointer-events: auto;
}

.sfc-ranking-ruler__dates {
    display: flex;
    justify-content: space-between;
    color: var(--sfc-muted);
    font-size: .72rem;
}

.sfc-ranking-annotation-help {
    margin: 9px 2px 0;
    color: var(--sfc-muted);
    font-size: .74rem;
}

.sfc-ranking-annotation-help i {
    margin-right: 5px;
    color: #f4a261;
}

@media (max-width: 959px) {
    .sfc-ranking-modal__layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 639px) {
    .sfc-ranking-modal {
        padding: 23px 18px;
    }

    .sfc-ranking-chart {
        height: 290px;
    }

    .sfc-ranking-chart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sfc-ranking-chart-options {
        width: 100%;
        justify-content: space-between;
    }

    .sfc-ranking-chart-options .uk-select {
        width: min(190px, 65vw);
    }

    .sfc-ranking-table thead {
        display: none;
    }

    .sfc-ranking-table tr,
    .sfc-ranking-table td {
        display: block;
    }

    .sfc-ranking-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        color: #91abc6;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}
