.operation-count-page .dimension-checker {
    max-width: 100%;
}

.operation-count-page .main-row {
    justify-content: center;
}

.operation-count-page .calculator-main {
    flex: 0 1 1200px;
    max-width: 1200px;
    width: 100%;
}

.operation-count-page .calculator-main > .dimension-checker > .dimension-section:not(.operation-breakdown) {
    border-color: #e3ecf5;
    box-shadow: none;
}

.operation-tool {
    display: grid;
    gap: 16px;
}

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

.operation-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.operation-field {
    display: grid;
    gap: 6px;
}

.operation-field label {
    color: #4a5568;
    font-weight: 700;
}

.operation-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b8c5d1;
    border-radius: 6px;
    padding: 8px 10px;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 800;
}

.operation-field input[aria-invalid="true"] {
    border-color: #c2410c;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14);
}

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

.operation-stat {
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}

.operation-stat--hero {
    border-left: 5px solid #1A66A0;
}

.operation-stat__label {
    margin: 0 0 8px;
    color: #4a5568;
    font-size: 0.92rem;
    font-weight: 800;
}

.operation-stat__value {
    margin: 0;
    color: #20364f;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
}

.operation-stat__note {
    margin: 8px 0 0;
    color: #4a5568;
}

.operation-reassurance {
    margin: 0 0 12px;
    color: #4a5568;
    font-weight: 700;
}

.operation-badge {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 4px 9px;
    border: 1px solid #d6e4f1;
    border-radius: 999px;
    background: #eef6fb;
    color: #1A66A0;
    font-size: 0.82rem;
    font-weight: 800;
}

.operation-breakdown-steps {
    display: grid;
    gap: 0;
    margin-top: 16px;
}

.operation-breakdown-step {
    position: relative;
    padding: 18px 0 18px 34px;
    border-top: 1px solid #d7e5f3;
}

.operation-breakdown-step:first-child {
    border-top: 0;
    padding-top: 4px;
}

.operation-breakdown-step::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 6px;
    width: 14px;
    height: 14px;
    border: 3px solid #1A66A0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px #eef6fb;
}

.operation-breakdown-step h3 {
    margin: 0 0 10px;
    color: #20364f;
    font-size: 1.12rem;
}

.operation-breakdown-step h4 {
    margin: 12px 0 6px;
    color: #35577e;
    font-size: 1rem;
}

.operation-breakdown-step p {
    margin: 0 0 10px;
}

.operation-proof-line,
.operation-proof-result {
    font-weight: 800;
    color: #20364f;
}

.operation-compact-list {
    display: grid;
    gap: 8px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.operation-compact-list li {
    padding: 9px 11px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #ffffff;
    color: #20364f;
    font-weight: 800;
}

.operation-formula-lines,
.operation-equation-list,
.operation-related-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.operation-formula-lines li,
.operation-equation-list li {
    padding: 10px 12px;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    background: #f8fafc;
}

.operation-equation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.operation-cell-card {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.operation-cell-card h4 {
    margin: 0 0 8px;
    color: #1A66A0;
    font-size: 1rem;
}

.operation-cell-formula {
    margin: 0 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.operation-cell-formula code {
    display: inline-block;
    min-width: max-content;
    color: #20364f;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    line-height: 1.5;
}

.operation-cell-count {
    margin: 0;
    color: #4a5568;
    font-size: 0.92rem;
    font-weight: 800;
}

.operation-term {
    white-space: nowrap;
}

.operation-plus {
    color: #60738b;
}

.operation-equation-details {
    margin-top: 14px;
}

.operation-equation-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #b9d0e8;
    border-radius: 6px;
    background: #f4f9ff;
    color: #1A66A0;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.operation-equation-details summary::-webkit-details-marker {
    display: none;
}

.operation-equation-details summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1A66A0;
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.operation-equation-details[open] summary::before {
    content: "-";
}

.operation-equation-details summary:hover {
    border-color: #3a97e8;
    background: #e9f4ff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.operation-equation-details summary:focus-visible {
    outline: 3px solid rgba(26, 102, 160, 0.28);
    outline-offset: 3px;
}

.operation-equation-details .summary-open {
    display: none;
}

.operation-equation-details[open] .summary-open {
    display: inline;
}

.operation-equation-details[open] .summary-closed {
    display: none;
}

.operation-dynamic-details {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d7e5f3;
    border-radius: 8px;
    background: #fbfdff;
}

.operation-equation-list code,
.operation-formula-lines code {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #20364f;
    font-weight: 800;
}

.operation-final-proof {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 4px solid #1A66A0;
    border-radius: 8px;
    background: #eef6fb;
}

.operation-final-proof p {
    margin: 0;
}

.operation-final-list {
    margin-bottom: 0;
}

.operation-inline-summary {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid #1A66A0;
    border-radius: 8px;
    background: #eef6fb;
    color: #20364f;
    font-weight: 800;
}

.operation-breakdown {
    border: 2px solid #b9d0e8;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
    box-shadow: 0 10px 24px rgba(52, 86, 125, 0.1);
}

.operation-breakdown h2 {
    margin-bottom: 8px;
}

.operation-breakdown > p {
    margin-bottom: 0;
    color: #456483;
}

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

.operation-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.operation-table th,
.operation-table td {
    padding: 10px 12px;
    border: 1px solid #d9e2ec;
    text-align: left;
}

.operation-table th {
    background: #eef5fc;
    color: #20364f;
}

.operation-note {
    padding: 14px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.operation-related-list a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #d6e4f1;
    border-radius: 6px;
    background: #fdfefe;
    color: #1A66A0;
    font-weight: 700;
    text-decoration: none;
}

.operation-related-list a:hover {
    border-color: #3a97e8;
    background: #f4f9ff;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .operation-input-grid,
    .operation-dashboard,
    .operation-equation-list,
    .operation-cell-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .operation-cell-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .operation-field-grid {
        grid-template-columns: 1fr;
    }

    .operation-stat__value {
        font-size: 1.45rem;
    }

    .operation-equation-details summary {
        width: 100%;
        justify-content: flex-start;
    }

    .operation-breakdown-step {
        padding-left: 26px;
    }

    .operation-breakdown-step::before {
        left: 2px;
    }

    .operation-dynamic-details {
        padding: 10px;
    }
}
