* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

section {
    margin-bottom: 60px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

textarea {
    resize: vertical;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background: #1a1a1a;
    color: white;
    width: 100%;
}

.primary-btn:hover {
    background: #333;
}

.secondary-btn {
    background: white;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    margin-right: 10px;
    margin-bottom: 10px;
}

.secondary-btn:hover {
    background: #f5f5f5;
}

.tertiary-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.tertiary-btn:hover {
    background: #f9f9f9;
}

.certificate {
    border: 2px solid #1a1a1a;
    padding: 30px;
    margin-bottom: 20px;
    background: white;
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.certificate-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.timestamp {
    color: #666;
    font-size: 0.9rem;
}

.field {
    margin-bottom: 20px;
}

.field strong {
    display: block;
    margin-bottom: 5px;
}

.field p {
    color: #333;
    white-space: pre-wrap;
}

.hash {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
}

.history-list {
    display: grid;
    gap: 15px;
}

.history-item {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: #1a1a1a;
    background: #fafafa;
}

.history-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.history-item .item-timestamp {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.history-item .item-preview {
    color: #666;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thinking-process {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.thinking-process h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1a1a1a;
    width: 0%;
    transition: width 0.3s ease;
}

.thinking-completeness {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.completeness-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.completeness-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.completeness-fill {
    height: 100%;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.completeness-text {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 50px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .certificate {
        padding: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .secondary-btn {
        width: 100%;
        margin-right: 0;
    }
}