.text-input {
    width: 100%;
    max-width: 24rem;
    padding: 0.6rem;
    font-size: 1.1rem;
    border: 1px solid #bbb;
    border-radius: 8px;
}

.button {
    padding: 0.6rem 1rem;
    font-size: 1.05rem;
    border: 1px solid #999;
    border-radius: 8px;
    background: #f3f3f3;
    cursor: pointer;
}

.button:hover {
    background: #e8e8e8;
}

.error {
    padding: 0.75rem;
    border: 1px solid #b00020;
    border-radius: 8px;
    color: #b00020;
    background: #fff5f5;
}

.question-box {
    white-space: pre-wrap;
    direction: rtl;
    text-align: right;
    font-family: system-ui, sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
}

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

.stat-grid>div {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    border: 1px solid #ddd;
    padding: 0.45rem 0.6rem;
    vertical-align: top;
}

th {
    background: #f0f0f0;
    text-align: right;
}

.wide-input {
    max-width: 48rem;
}

.small-input {
    max-width: 8rem;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 8px;
}

.small-note {
    font-size: 0.9rem;
    color: #555;
}

.question-preview {
    max-width: 28rem;
    white-space: pre-wrap;
}

.button-link {
    display: inline-block;
    padding: 0.6rem 1rem;
    border: 1px solid #999;
    border-radius: 8px;
    background: #f3f3f3;
    text-decoration: none;
}

.button-link:hover {
    background: #e8e8e8;
}

.copy-input {
    width: 100%;
    max-width: 48rem;
    direction: ltr;
    text-align: left;
    padding: 0.55rem;
    font-size: 0.95rem;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: white;
}