* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 1.5rem; margin-bottom: 8px; color: #1a1a1a; }
h2 { font-size: 1.1rem; margin-bottom: 24px; color: #666; font-weight: 400; }
h3 { font-size: 1rem; margin: 24px 0 12px; color: #1a1a1a; }

label {
    display: block;
    margin: 16px 0 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

input[type="text"], input[type="password"], input[type="month"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

textarea { min-height: 100px; resize: vertical; }

button {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: #357abd; }

.error {
    padding: 12px;
    margin-bottom: 16px;
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    border-radius: 6px;
    color: #c00;
    font-size: 0.9rem;
}

.success {
    padding: 12px;
    margin-bottom: 16px;
    background: #f0fff0;
    border: 1px solid #d0ffd0;
    border-radius: 6px;
    color: #060;
    font-size: 0.9rem;
}

.block {
    margin: 20px 0;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.block h3 { margin-top: 0; }

.value-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 8px 0;
}

.source-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.source-item:last-child { border-bottom: none; }

.source-item a { color: #4a90d9; text-decoration: none; }
.source-item a:hover { text-decoration: underline; }

.step-list { list-style: decimal; padding-left: 24px; }
.step-list li { margin: 6px 0; }

.warning {
    padding: 12px;
    margin: 12px 0;
    background: #fffbf0;
    border: 1px solid #ffe0a0;
    border-radius: 6px;
    color: #856404;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link { margin-top: 24px; text-align: center; }
.nav-link a { color: #4a90d9; text-decoration: none; font-size: 0.9rem; }
.nav-link a:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-open { background: #e3f2fd; color: #1565c0; }
.badge-progress { background: #fff3e0; color: #e65100; }
.badge-closed { background: #e8f5e9; color: #2e7d32; }
