.tool-page {
    max-width: 1040px;
    margin: 0 auto;
}

.tool-page .page-header {
    max-width: 820px;
    margin: 0 auto var(--space-8);
}

.tool-answer {
    max-width: 75ch;
    margin: var(--space-4) auto 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.sequence-panel {
    margin: var(--space-8) auto var(--space-12);
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.sequence-panel > h2 {
    margin: 0 0 var(--space-6);
    text-align: center;
}

.sequence-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto var(--space-6);
}

.agenda-fields {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 110px;
    gap: var(--space-3);
    align-items: end;
}

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

.sequence-field label {
    font-weight: 600;
    font-size: 0.94rem;
}

.sequence-field input {
    min-height: 46px;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.55rem;
    font: inherit;
    color: var(--gray-900);
}

.sequence-field input:focus-visible,
.sequence-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.sequence-readout {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: var(--space-6) var(--space-3);
    border-radius: var(--radius-xl);
    background: #f8fafc;
    text-align: center;
}

.phase-count,
.phase-status {
    margin: 0;
    color: var(--gray-600);
}

.sequence-readout h2 {
    margin: 0;
    color: var(--gray-900);
}

.sequence-display {
    display: block;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.sequence-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-5) 0 var(--space-4);
}

.sequence-button {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.6rem;
    background: #fff;
    color: var(--gray-900);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.sequence-button:hover:not(:disabled) {
    background: var(--gray-50);
}

.sequence-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sequence-button-primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.sequence-button-primary:hover:not(:disabled) {
    background: #1e40af;
}

.sequence-sound-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40px;
    cursor: pointer;
}

.sequence-limit {
    max-width: 80ch;
    margin: var(--space-3) auto 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

.tool-copy {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
}

.tool-copy > h2,
.tool-copy-section h2,
.tool-questions h2,
.related-tools h2 {
    margin: var(--space-8) 0 var(--space-3);
}

.tool-copy li {
    margin: 0.45rem 0;
}

.tool-question {
    margin: var(--space-5) 0;
}

.tool-question h3 {
    margin-bottom: 0.35rem;
}

.tool-copy p {
    max-width: 78ch;
}

.related-tools ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    padding-left: 1.2rem;
}

.related-tools a {
    text-underline-offset: 0.18em;
}

.timer-help {
    max-width: 780px;
    margin: var(--space-10) auto;
    line-height: 1.7;
}

.timer-help h3 {
    margin: var(--space-5) 0 var(--space-2);
}

@media (max-width: 640px) {
    .sequence-panel {
        padding: 1rem;
    }

    .agenda-fields {
        grid-template-columns: minmax(0, 1fr) 94px;
    }

    .sequence-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sequence-button {
        width: 100%;
    }
}
