:root {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    color: #202735;
    background: #f7f8fa;
    font-synthesis: none;
    --navy: #0f2340;
    --muted: #78808e;
    --line: #e5e7eb;
    --purple: #8b5cf6;
    --green: #176a45;
    --pink: #fef2f2
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-size: 14px
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: wait;
    opacity: .5
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 3px
}

a {
    color: inherit
}

button {
    border: 1px solid #d8dce3;
    background: white;
    border-radius: 5px;
    padding: 8px 12px;
    color: #353d4c;
    font-weight: 500
}

button:hover:not(:disabled) {
    background: #f1f3f7
}

button.primary {
    background: var(--navy);
    border-color: var(--navy);
    color: white
}

button.primary:hover:not(:disabled) {
    background: #1d3658
}

button.danger {
    color: #bc4545;
    border-color: #efd0d0;
    background: #fff8f8
}

button.danger:hover:not(:disabled) {
    background: #ffe9e9
}

button.small {
    padding: 5px 8px;
    font-size: 11px
}

button.text-button {
    background: transparent;
    border: 0;
    padding: 4px;
    color: var(--muted)
}

.header {
    background: var(--navy);
    color: white;
    min-height: 64px;
    padding: 0 28px;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap
}

.brand h1 {
    font-size: 20px;
    letter-spacing: -.4px;
    margin: 0;
    font-weight: 700
}

.brand small {
    font-size: 10px;
    color: #bbc8dc;
    border-left: 1px solid #496079;
    padding-left: 12px;
    letter-spacing: 1px
}

.header nav {
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: stretch
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 17px;
    text-decoration: none;
    color: #b8c5d9;
    font-size: 12px;
    border-bottom: 3px solid transparent
}

.nav-link.active {
    color: #fff;
    border-bottom-color: #95b7ec;
    background: #ffffff08
}

.header .account {
    margin-left: auto;
    font-size: 11px;
    color: #c8d2df;
    display: flex;
    align-items: center;
    gap: 12px
}

.header .account button {
    background: #ffffff0c;
    border-color: #ffffff25;
    color: #e4eaf3;
    font-size: 11px;
    padding: 6px 10px
}

.main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 40px
}

.panel {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    box-shadow: 0 1px 3px #1a243a06;
    margin-bottom: 20px;
    overflow: hidden
}

.toolbar {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 18px
}

.toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px 0;
    gap: 16px
}

.toolbar-top .right,
.toolbar .group,
.inline,
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.toolbar label,
.toolbar .label {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px
}

.toolbar input,
.toolbar select {
    font-size: 12px
}

.toolbar input[type=search] {
    width: 190px
}

.toolbar .spacer {
    flex: 1
}

.muted {
    color: var(--muted)
}

.tiny {
    font-size: 11px
}

.small-text {
    font-size: 12px
}

.strong {
    font-weight: 650
}

.connect {
    font-size: 11px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border-radius: 20px;
    background: #e7f8eb;
    color: #328452;
    padding: 5px 10px;
    white-space: nowrap
}

.connect::before {
    content: '';
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: currentColor
}

.connect.warning {
    background: #fff5d9;
    color: #a87912
}

.connect.error {
    background: #fdeaea;
    color: #b84b4b
}

.notice {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid #e2d9fa;
    border-radius: 7px;
    background: #f7f3ff;
    color: #7453a4;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 16px
}

.notice.warning {
    color: #94712b;
    background: #fffaee;
    border-color: #f0e0b7
}

.notice.error {
    background: #fff0f0;
    color: #aa3434;
    border-color: #f3cdcd
}

.notice strong {
    font-weight: 650
}

.notice a {
    white-space: nowrap;
    text-underline-offset: 3px
}

.league-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
    scrollbar-color: #c5cddb #f3f5f9
}

.league-tabs button {
    padding: 10px 25px;
    border: 0;
    border-radius: 24px;
    background: #e7e8ed;
    color: #697180;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 14px
}

.league-tabs button.active {
    background: var(--navy);
    color: #fff
}

.table-wrap {
    overflow-x: auto
}

.monitor-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 12px;
    min-width: 900px
}

.monitor-table.with-details {
    min-width: 1180px
}

.monitor-table th {
    background: #f8f9fb;
    text-align: left;
    font-size: 11px;
    font-weight: 650;
    padding: 17px 18px;
    border-top: 1px solid #f1f3f6;
    border-bottom: 1px solid #e0e4ea;
    color: #434c5b
}

.monitor-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f0f1f4;
    vertical-align: middle
}

.monitor-table tr:last-child td {
    border-bottom: 0
}

.monitor-table tr.live {
    background: var(--pink)
}

.monitor-table tbody tr:hover {
    background: #f7f5fc
}

.monitor-table tbody tr.live:hover {
    background: #fcebec
}

.user-link {
    text-decoration: none;
    display: block
}

.user-link:hover .display-name {
    text-decoration: underline;
    text-underline-offset: 3px
}

.display-name {
    font-size: 13px;
    font-weight: 650;
    display: block;
    max-width: 235px;
    overflow: hidden;
    text-overflow: ellipsis
}

.username {
    font-size: 11px;
    color: #7a808b;
    margin-top: 5px;
    display: block
}

.viewer {
    font-size: 10px;
    color: #6d7685;
    margin-top: 5px
}

.league {
    font-weight: 650;
    color: var(--purple);
    font-size: 12px
}

.country {
    display: block;
    color: #8a8495;
    font-size: 10px;
    margin-top: 6px
}

.monitor-table select {
    padding: 4px 24px 4px 8px;
    background-color: #fff;
    font-size: 11px;
    max-width: 120px;
    width: 110px;
    min-height: 28px
}

.monitor-table .rating {
    width: 96px;
    color: #252635
}

.badge {
    display: inline-block;
    border-radius: 5px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .2px;
    background: #edf0f3;
    color: #77808b
}

.badge.live {
    background: #dcfce7;
    color: #166534
}

.badge.error {
    background: #ffe3e3;
    color: #b94c4c
}

.badge.stale {
    background: #fff1d5;
    color: #9d762d
}

.badge.sample {
    background: #eee8fc;
    color: #8a64bb;
    margin-left: 4px;
    font-size: 9px
}

.status-detail {
    display: block;
    font-size: 10px;
    color: #9096a0;
    margin-top: 5px;
    max-width: 125px;
    white-space: normal
}

.timestamps {
    font-size: 10px;
    color: #87909e;
    line-height: 1.9
}

.timestamps b {
    color: #596273;
    font-weight: 500
}

.amount {
    font-variant-numeric: tabular-nums;
    color: #556075
}

.empty {
    padding: 58px 20px;
    text-align: center;
    color: #808894
}

.empty strong {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px
}

.empty p {
    font-size: 12px;
    line-height: 1.8;
    margin: 6px 0 18px
}

.empty .empty-symbol {
    display: block;
    font-size: 26px;
    color: #b0b9c9;
    margin-bottom: 16px
}

.table-footer {
    padding: 12px 20px;
    font-size: 11px;
    border-top: 1px solid #edf0f4;
    color: #87909e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.stats summary {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    font-size: 12px;
    font-weight: 650
}

.stats summary::after {
    content: '開く ▾';
    color: #8a919d;
    font-size: 11px;
    font-weight: 400
}

.stats[open] summary::after {
    content: '閉じる ▴'
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 0 18px 18px
}

.stat {
    border: 1px solid #f0f1f4;
    border-radius: 8px;
    padding: 21px 8px;
    text-align: center;
    box-shadow: 0 1px 3px #0f234007;
    background: white
}

.stat b {
    font-size: 24px;
    display: block;
    color: #6366e9;
    font-weight: 650;
    margin-bottom: 8px
}

.stat:nth-child(1) b {
    color: #5fae6b
}

.stat:nth-child(2) b {
    color: #6b7280
}

.stat:nth-child(4) b {
    color: #d1a041
}

.stat:nth-child(5) b {
    color: #c9a140
}

.stat:nth-child(6) b {
    color: #8b5cf6
}

.stat span {
    color: #9297a1;
    font-size: 11px
}

.stats-note {
    padding: 0 20px 18px;
    color: #9097a4;
    font-size: 11px;
    line-height: 1.7
}

.footer {
    font-size: 10px;
    color: #a3aab6;
    text-align: center;
    line-height: 1.8;
    padding: 14px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 24px;
    gap: 16px
}

.page-heading h2 {
    font-size: 21px;
    margin: 0 0 6px;
    letter-spacing: -.4px
}

.page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7
}

.section-title {
    font-size: 14px;
    font-weight: 650;
    margin: 0 0 8px
}

.section-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.8
}

.padded {
    padding: 24px
}

.review-main {
    max-width: 1060px
}

.review-main>.league-tabs {
    border: 0;
    padding: 0 0 18px;
    margin-bottom: 14px
}

.review-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: white;
    gap: 8px;
    padding: 0 8px;
    overflow-x: auto
}

.review-tabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 16px;
    font-size: 12px;
    color: #7c8492;
    white-space: nowrap
}

.review-tabs button.active {
    border-color: var(--navy);
    font-weight: 650;
    color: var(--navy)
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

.review-table th {
    text-align: left;
    background: #fafbfc;
    border-bottom: 1px solid var(--line);
    padding: 13px 20px;
    font-weight: 650;
    color: #667080
}

.review-table td {
    padding: 11px 20px;
    border-bottom: 1px solid #f0f1f3
}

.review-table tr:last-child td {
    border: 0
}

.review-table th:last-child,
.review-table td:last-child {
    text-align: right
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line)
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px
}

.staff-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0
}

.staff-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f1f4;
    font-size: 13px
}

.avatar {
    background: #f0ecfa;
    color: #8a72ba;
    height: 30px;
    width: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px
}

.staff-list .count {
    margin-left: auto;
    color: #98a0ac;
    font-size: 11px
}

.form-grid {
    display: grid;
    gap: 18px
}

.form-grid label {
    font-size: 12px;
    font-weight: 500;
    display: grid;
    gap: 8px;
    color: #596373
}

.form-grid .check-label {
    display: flex;
    align-items: start;
    font-weight: 400;
    line-height: 1.7
}

.form-grid .check-label input {
    margin-top: 4px;
    min-height: initial
}

.help {
    font-size: 11px;
    color: #8c94a1;
    line-height: 1.8;
    margin: 4px 0 0
}

input,
select {
    border: 1px solid #d8dce2;
    border-radius: 5px;
    padding: 8px 10px;
    color: #45505f;
    background: #fff;
    min-height: 33px
}

input[type=checkbox] {
    accent-color: var(--navy);
    min-height: unset
}

input[type=file] {
    max-width: 100%;
    font-size: 12px;
    padding: 12px;
    border-style: dashed;
    background: #fafbfe;
    width: 100%
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px
}

.import-panel {
    max-width: 800px;
    margin: 0 auto 20px
}

.steps {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ba2ae;
    font-size: 11px;
    margin: 20px 0 24px
}

.steps span {
    padding: 6px 10px;
    border-radius: 5px;
    background: #f5f6f8
}

.steps span.active {
    background: #eaf0f8;
    color: #27496e
}

.preview-stats {
    display: flex;
    gap: 22px;
    padding: 17px 0;
    font-size: 12px;
    flex-wrap: wrap
}

.preview-stats b {
    display: block;
    font-size: 22px;
    margin-bottom: 6px
}

.error-list {
    max-height: 220px;
    overflow: auto;
    margin: 10px 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    color: #a75c5c
}

.error-list li {
    padding: 7px 10px;
    border-bottom: 1px solid #f8e9e9;
    background: #fff8f8;
    line-height: 1.6
}

.progress {
    height: 8px;
    background: #edf0f6;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0
}

.progress>span {
    display: block;
    height: 100%;
    background: #4e719e;
    transition: width .3s
}

.job-row {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.job-row:last-child {
    border: 0
}

.job-row p {
    font-size: 11px;
    margin: 5px 0;
    color: #8993a1
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.system-card {
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    padding: 18px;
    font-size: 12px;
    line-height: 1.8
}

.system-card b {
    display: block;
    margin: 8px 0;
    font-size: 15px
}

.system-card small {
    color: #8a93a0
}

.definition {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 180px 1fr;
    font-size: 12px
}

.definition dt,
.definition dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    line-height: 1.8
}

.definition dt {
    color: #8a93a0
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f5f7fa, #edf1f7);
    padding: 24px
}

.login-card {
    background: white;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    padding: 40px;
    width: min(100%, 390px);
    box-shadow: 0 10px 45px #0f234008
}

.login-mark {
    height: 42px;
    width: 42px;
    background: var(--navy);
    color: #fff;
    font-size: 22px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    margin-bottom: 20px
}

.login-card h1 {
    font-size: 26px;
    margin: 0 0 6px;
    letter-spacing: -.8px
}

.login-card>p {
    font-size: 12px;
    color: #8b95a5;
    margin: 0 0 28px
}

.login-card .primary {
    width: 100%;
    padding: 11px;
    margin-top: 8px
}

.login-footnote {
    font-size: 10px;
    text-align: center;
    color: #9ba5b5;
    margin-top: 25px;
    line-height: 1.8
}

.inline-error {
    color: #b74646;
    font-size: 12px;
    line-height: 1.7;
    margin: 12px 0
}

.initial-loading {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8490a4;
    font-size: 13px
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #dce4f2;
    border-top-color: #4e73af;
    border-radius: 50%;
    animation: spin .9s linear infinite
}

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

#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: white;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
    z-index: 100;
    max-width: 90vw;
    box-shadow: 0 3px 20px #0f234025
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

#toast.error {
    background: #a54242
}

dialog {
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    padding: 28px;
    width: min(94vw, 500px);
    box-shadow: 0 20px 80px #0f234025;
    color: #333d4b
}

dialog::backdrop {
    background: #0f234059;
    backdrop-filter: blur(2px)
}

dialog h2 {
    margin: 0 0 10px;
    font-size: 18px
}

dialog p {
    font-size: 13px;
    line-height: 1.8;
    color: #7b8492
}

dialog .close {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: 0;
    font-size: 20px;
    color: #9aa2ae
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.loading-strip {
    padding: 10px 20px;
    font-size: 11px;
    color: #75849b;
    background: #f4f7fc
}

.loading-strip .spinner {
    width: 11px;
    height: 11px;
    vertical-align: middle;
    margin-right: 7px
}

.audit-table {
    font-size: 11px
}

.audit-table td {
    white-space: normal;
    word-break: break-word;
    max-width: 350px
}

.audit-table pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0
}

.empty-cell {
    padding: 50px !important;
    text-align: center !important;
    color: #929aaa
}

@media(min-width:1500px) {
    .main {
        padding-top: 26px
    }
}

@media(max-width:1000px) {
    .header {
        padding: 0 20px;
        gap: 18px
    }

    .brand small {
        display: none
    }

    .nav-link {
        padding: 0 11px
    }

    .toolbar {
        gap: 12px
    }

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

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

    .main {
        padding: 16px
    }

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

@media(max-width:650px) {
    .header {
        min-height: 60px;
        flex-wrap: wrap;
        padding: 16px 16px 0;
        gap: 14px
    }

    .brand h1 {
        font-size: 19px
    }

    .header nav {
        order: 3;
        flex-basis: 100%;
        height: 40px;
        justify-content: space-between;
        gap: 0
    }

    .nav-link {
        padding: 0 9px;
        font-size: 11px
    }

    .header .account {
        font-size: 10px;
        gap: 6px
    }

    .main {
        padding: 12px
    }

    .toolbar-top {
        padding: 15px 14px 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px
    }

    .toolbar {
        padding: 14px;
        gap: 12px 14px
    }

    .toolbar input[type=search] {
        width: 100%
    }

    .toolbar .search-group {
        flex-basis: 100%
    }

    .toolbar .group {
        flex-wrap: wrap
    }

    .toolbar .spacer {
        display: none
    }

    .toolbar .primary {
        font-size: 11px
    }

    .league-tabs {
        padding: 12px 14px;
        gap: 7px
    }

    .league-tabs button {
        font-size: 12px;
        padding: 9px 20px
    }

    .notice {
        font-size: 11px;
        flex-direction: column;
        gap: 4px
    }

    .table-footer {
        padding: 10px 14px;
        flex-wrap: wrap
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 12px 12px;
        gap: 8px
    }

    .stat {
        padding: 16px 8px
    }

    .page-heading {
        margin: 8px 2px 20px;
        align-items: flex-start
    }

    .page-heading h2 {
        font-size: 18px
    }

    .page-heading p {
        font-size: 11px
    }

    .review-main {
        padding: 16px 12px
    }

    .review-tabs {
        gap: 0;
        padding: 0
    }

    .review-tabs button {
        font-size: 11px;
        padding: 13px 10px
    }

    .review-table th,
    .review-table td {
        padding: 12px 10px;
        font-size: 11px
    }

    .review-table .review-actions {
        gap: 4px;
        flex-wrap: wrap
    }

    .review-actions button {
        font-size: 10px
    }

    .padded {
        padding: 18px
    }

    .definition {
        grid-template-columns: 110px 1fr;
        font-size: 11px
    }

    .pagination {
        flex-wrap: wrap;
        font-size: 11px;
        padding: 12px
    }

    .login-card {
        padding: 30px
    }

    .monitor-table td {
        padding: 13px
    }

    .monitor-table th {
        padding: 13px
    }

    .footer {
        font-size: 9px
    }

    .steps {
        gap: 5px;
        font-size: 10px
    }

    .steps span {
        padding: 5px
    }

    .row-actions {
        gap: 4px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

progress.progress {
    display: block;
    width: 100%;
    border: 0;
    appearance: none
}

progress.progress::-webkit-progress-bar {
    background: #edf0f6;
    border-radius: 8px
}

progress.progress::-webkit-progress-value {
    background: #4e719e;
    border-radius: 8px
}

.job-details {
    margin-top: 24px
}

.copy-area {
    width: 100%;
    min-height: 100px
}

.workflow {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    color: #74839a;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.workflow i {
    font-style: normal;
    color: #aab7ca
}

.workflow span {
    white-space: nowrap
}

.ranking-panel {
    padding: 20px
}

.ranking-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.ranking-results {
    font-size: 11px;
    margin-top: 16px;
    border-top: 1px solid #edf0f4;
    padding-top: 14px;
    color: #7d8795
}

.ranking-results summary {
    cursor: pointer;
    line-height: 1.8
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px
}

.ranking-grid>div {
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    display: grid;
    gap: 6px
}

.ranking-grid strong {
    font-size: 11px;
    font-weight: 500
}

.ranking-grid small {
    font-size: 10px;
    color: #8a94a4;
    line-height: 1.6
}

.rank-position {
    font-size: 10px;
    color: #8c96a5;
    margin-left: 10px
}

textarea {
    font: inherit;
    padding: 10px;
    border: 1px solid #d8dce2;
    border-radius: 5px;
    resize: vertical;
    color: #45505f
}

textarea:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 3px
}

@media(max-width:650px) {
    .ranking-heading {
        align-items: flex-start;
        flex-direction: column
    }

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

    .workflow {
        font-size: 10px;
        gap: 8px
    }
}