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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

nav {
    background: #0e1724;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user {
    color: #9ca3af;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
}

h1 { font-size: 24px; margin-bottom: 20px; }
h2 { font-size: 18px; margin-bottom: 16px; color: #555; }

.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.project-card.completed {
    opacity: 0.7;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.project-title {
    font-weight: 600;
    font-size: 16px;
    color: #1a73e8;
    text-decoration: none;
}

.project-title:hover {
    text-decoration: underline;
}

.project-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #777;
    font-size: 14px;
    margin-top: 4px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.active { background: #d4edda; color: #155724; }
.badge.completed { background: #e2e3e5; color: #383d41; }
.badge.auto-on { background: #cce5ff; color: #004085; }
.badge.auto-off { background: #f8d7da; color: #721c24; }

.description {
    margin-top: 12px;
    color: #555;
    white-space: pre-wrap;
}

details {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

summary {
    cursor: pointer;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
}

.config-form {
    margin-top: 12px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.checkbox-row label {
    margin-bottom: 0;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    background: #e9ecef;
    transition: background 0.2s;
}

.btn:hover { background: #dee2e6; }

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-primary:hover { background: #1557b0; }

.btn-danger {
    background: #f8d7da;
    color: #721c24;
}

.btn-danger:hover { background: #f1b0b7; }

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 13px;
}

.muted { color: #999; font-size: 14px; }

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover { text-decoration: underline; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 600;
    color: #555;
    background: #f9f9f9;
}

.bid-desc {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

section {
    margin-bottom: 32px;
}
