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

body {
    font-family: "Bookman", "URW Bookman L", serif;
    background: #f6eee2;
    color: #222;
    line-height: 1.5;
}

header {
    width: 100%;
    height: 20vh;
    min-height: 120px;
    background: #3a3a5c url('header.jpg') center / cover no-repeat;
}

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

h1, h2 {
    margin-bottom: 20px;
    color: #1a1a2e;
}

.names, .works {
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.names li, .works li {
    border-bottom: 1px solid #eee;
}

.names li:last-child, .works li:last-child {
    border-bottom: none;
}

.names li a, .works li a {
    display: block;
    padding: 16px 20px;
    color: #8a5300;
    text-decoration: none;
    transition: background 0.15s;
}

.names li a:hover, .works li a:hover {
    background: #f0f4ff;
}

.names .add a, .works .add a {
    color: #8a5300;
    font-weight: 600;
}

form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

form input, form textarea, form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Bookman", "URW Bookman L", serif;
    font-size: 1rem;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: "Bookman", "URW Bookman L", serif;
    font-size: 1rem;
    cursor: pointer;
}

form button:hover {
    background: #333;
}

.bio {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.years {
    color: #666;
    margin-bottom: 12px;
}

.back {
    display: inline-block;
    margin-bottom: 20px;
    color: #8a5300;
    text-decoration: none;
}

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

.hidden {
    display: none;
}

.error {
    color: #a62828;
    background: #ffe6e6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.actions {
    margin-bottom: 16px;
}

.actions a {
    color: #8a5300;
    text-decoration: none;
    font-weight: 500;
}

.actions a:hover {
    text-decoration: underline;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.work-item a:first-child {
    color: #8a5300;
    text-decoration: none;
    flex: 1;
}

.work-item a:first-child:hover {
    color: #6a3e00;
}

.delete {
    color: #a62828;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 16px;
    text-decoration: none;
}

.delete:hover {
    text-decoration: underline;
}

.work-item .action {
    color: #8a5300;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 16px;
    text-decoration: none;
}

.work-item .action:hover {
    text-decoration: underline;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-form {
    background: none;
    padding: 0;
    box-shadow: none;
}

.agent-list {
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.agent-list li {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.agent-list li:last-child {
    border-bottom: none;
}

.agent-list .ua {
    word-break: break-all;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.actions-row {
    display: flex;
    gap: 10px;
}

.actions-row form.inline {
    background: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.status-list {
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.status-list li:last-child {
    border-bottom: none;
}

.status-list li span {
    color: #666;
}
