/* 訴訟書類AI要約 frontend.css */
.hds-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
}

.hds-card {
    background: #fff;
    border: 1px solid #e0dcd4;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hds-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    border-bottom: 2px solid #8a6d3b;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.hds-notice {
    background: #f7f3ea;
    border-left: 4px solid #8a6d3b;
    padding: 12px 16px;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.hds-disclaimer {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 20px;
}

.hds-plan-notice {
    background: #eef3f8;
    border-left: 4px solid #2271b1;
    padding: 8px 14px;
    font-size: 0.88rem;
    border-radius: 4px;
    margin-bottom: 16px;
}

.hds-plan-notice.hds-plan-paid {
    background: #e9f7ef;
    border-left-color: #2ea24a;
}

.hds-login-required {
    text-align: center;
    padding: 40px 20px;
}

.hds-field {
    margin-bottom: 18px;
}

.hds-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.hds-field input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
}

.hds-btn-primary {
    display: inline-block;
    background: #8a6d3b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hds-btn-primary:hover {
    background: #705a30;
    color: #fff;
}

.hds-btn-primary:disabled {
    background: #c9c0ad;
    cursor: not-allowed;
}

.hds-loading {
    margin-top: 16px;
    font-size: 0.92rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hds-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #8a6d3b;
    border-radius: 50%;
    display: inline-block;
    animation: hds-spin 0.8s linear infinite;
}

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

.hds-error-message {
    margin-top: 18px;
    background: #fdecea;
    border-left: 4px solid #d63638;
    color: #7a1f1f;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.92rem;
}

.hds-result {
    margin-top: 26px;
    border-top: 1px solid #e5e1d8;
    padding-top: 20px;
    line-height: 1.8;
}

.hds-result h3 {
    font-size: 1.05rem;
    margin: 20px 0 8px;
    color: #4a3b1f;
}

.hds-result h4 {
    font-size: 0.95rem;
    margin: 16px 0 6px;
    color: #4a3b1f;
}

.hds-result ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.hds-result li {
    margin-bottom: 4px;
}

.hds-doctype {
    display: inline-block;
    background: #f0ebe0;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.hds-parties-table {
    border-collapse: collapse;
    margin-bottom: 12px;
    width: 100%;
}

.hds-parties-table th,
.hds-parties-table td {
    border: 1px solid #e5e1d8;
    padding: 8px 12px;
    text-align: left;
    font-size: 0.92rem;
}

.hds-parties-table th {
    background: #f7f3ea;
    width: 160px;
    white-space: nowrap;
}

.hds-notes {
    font-size: 0.88rem;
    color: #666;
    background: #f7f7f7;
    padding: 10px 14px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .hds-card {
        padding: 20px 18px;
    }
    .hds-parties-table th {
        width: auto;
    }
}
