* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1c1c1e;
    margin: 0;
    padding: 24px 16px;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px 32px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.container.narrow {
    max-width: 380px;
    margin-top: 60px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

h2 {
    font-size: 17px;
    margin-top: 32px;
}

.logout {
    color: #6b6b70;
    text-decoration: none;
    font-size: 14px;
}

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

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #3a3a3c;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.field-link {
    flex: 3 1 280px;
}

.field-code {
    flex: 1 1 160px;
}

input, textarea {
    font-size: 16px;
    padding: 10px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0a84ff;
}

button {
    background: #0a84ff;
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    align-self: flex-start;
}

button:hover {
    background: #0071e3;
}

button:disabled {
    background: #9cc9f5;
    cursor: default;
}

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

.alert-error {
    background: #fdeceb;
    color: #b3261e;
}

.alert-success {
    background: #e8f7ed;
    color: #1a7f37;
}

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

.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.col-date {
    width: 130px;
}

.col-link {
    width: 220px;
}

th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: top;
    word-break: break-word;
}

td.col-date {
    white-space: nowrap;
    color: #6b6b70;
}

th {
    color: #6b6b70;
    font-weight: 600;
}

.open-link {
    font-weight: 500;
}

.access-code {
    margin-top: 4px;
    font-size: 13px;
    color: #3a3a3c;
}

.access-code code {
    background: #f4f5f7;
    padding: 1px 5px;
    border-radius: 4px;
}

details {
    margin-top: 6px;
}

details summary {
    cursor: pointer;
    color: #0a84ff;
    font-size: 13px;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary:hover {
    text-decoration: underline;
}

.raw-text, .note-full {
    margin-top: 6px;
    color: #6b6b70;
    font-size: 13px;
    word-break: break-all;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 14px;
}

.pagination a {
    color: #0a84ff;
    text-decoration: none;
}

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

.pagination-disabled {
    color: #c7c7cc;
}
