html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.public-header {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
}

.public-header-inner {
    width: 92%;
    margin: 0 auto;
    padding: 1.2% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a,
.public-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1.2rem;
}

.public-main {
    width: 92%;
    margin: 0 auto;
    padding: 2% 0 4% 0;
}

.hero,
.page-header,
.form-shell,
.table-shell,
.card {
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 2%;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
    margin-bottom: 2%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5%;
}

.button-row {
    margin-top: 1.5%;
}

.button,
.auth-form button,
.inline-form button {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #475569;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-form input {
    padding: 0.8rem;
    border: 0.08rem solid #cbd5e1;
    border-radius: 0.5rem;
}

.error-box {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.8rem;
    border-bottom: 0.08rem solid #e5e7eb;
}

.empty-state {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.inline-form {
    display: inline;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5%;
    margin-bottom: 2%;
}

.info-box {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.auth-form textarea {
    padding: 0.8rem;
    border: 0.08rem solid #cbd5e1;
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 6rem;
}

.auth-form input[type="file"] {
    padding: 0.8rem;
    border: 0.08rem solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
}
.result-block {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 0.08rem solid #e5e7eb;
}

.result-note {
    margin-top: 1rem;
    color: #475569;
}
.entity-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5%;
    margin-top: 1rem;
}

.entity-group {
    background: #f8fafc;
    border: 0.08rem solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.entity-group h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.entity-list {
    margin: 0;
    padding-left: 1.2rem;
}

.muted-text {
    color: #64748b;
}
