body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f4ef;
    color: #1d3557;
}

.site-header {
    background: #efe9df;
    border-bottom: 1px solid #d8d1c7;
    padding: 16px 24px;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-brand {
    color: #1d3557;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.site-subtitle {
    color: #7d5a46;
    font-size: 0.95rem;
    font-weight: 700;
}

.site-main {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px 48px;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.page-description {
    background: #fffaf4;
    border: 1px solid #ddd3c5;
    border-radius: 18px;
    padding: 18px 20px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.card {
    background: #fffdf9;
    border: 1px solid #ddd3c5;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.schedule-form {
    display: grid;
    gap: 28px;
}

.form-section {
    display: grid;
    gap: 16px;
}

.section-title {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5dbcf;
    font-size: 1.25rem;
    font-weight: 800;
}

.section-note {
    margin: -4px 0 0;
    color: #5f6b7a;
    font-size: 0.95rem;
}

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

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #cdbda8;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    font: inherit;
}

textarea {
    resize: vertical;
}

.helptext {
    font-size: 0.92rem;
    color: #5f6b7a;
}

.errorlist {
    color: #b00020;
    margin: 6px 0 0;
    padding-left: 18px;
}

.narrow-row {
    max-width: 420px;
}

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

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #ddd3c5;
    border-radius: 14px;
    background: #faf7f1;
}

.check-item.full-width {
    grid-column: 1 / -1;
}

.submit-area {
    display: flex;
    justify-content: center;
}

button {
    border: 1px solid #8a97a5;
    background: #dfe7ef;
    color: #1d3557;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-grid-2,
    .check-grid {
        grid-template-columns: 1fr;
    }
}

.optional-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1ede7;
    color: #7a6b5d;
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: middle;
}

.soft-box.soft-subcard {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f7f9fc;
    border-color: #dfe7f2;
}

.soft-box.soft-subcard .soft-box-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.soft-box.soft-subcard .mini-note {
    margin: 0 0 8px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.soft-box.soft-subcard .resume-grid {
    gap: 12px;
}

.soft-box.soft-subcard .resume-actions {
    margin-top: 8px;
}

.soft-box.soft-subcard button {
    padding: 8px 14px;
    font-size: 0.95rem;
}

.soft-box.soft-subcard .form-row label {
    margin-bottom: 4px;
    display: inline-block;
}

.soft-box.soft-subcard .helptext,
.soft-box.soft-subcard .errorlist {
    margin-top: 6px;
}

.resume-summary {
    font-weight: 700;
    cursor: pointer;
    color: #1d3557;
    list-style: none;
}

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

.resume-summary::before {
    content: "▶ ";
    font-size: 0.9rem;
}

details[open] .resume-summary::before {
    content: "▼ ";
}


.vote-table tbody tr {
    background: #fffdf9;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.vote-table tbody tr:hover {
    background: #f9fbff;
}

.vote-table tbody td:first-child {
    border-left: 4px solid #d9e4f2;
}

.vote-table tbody tr + tr td {
    border-top: 8px solid #faf9f7;
}

.vote-table tbody td {
    background: #fff;
}

.vote-table-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
}

.vote-table {
    border-collapse: separate;
    border-spacing: 0;
}

.vote-table thead th {
    border-bottom: 1px solid #ddd6ca;
}

.vote-table tbody td {
    border-bottom: 1px solid #ece5da;
}

.vote-table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.vote-table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.finalize-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.finalize-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6cbbb;
    background: #f7f3ed;
    color: #5f6b7a;
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.finalize-back-btn:hover {
    background: #f1ebe3;
}