:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #f3f4f6;
}

body {
    margin: 0;
    background: #f3f4f6;
}

.topbar {
    background: #0d9488;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

input, textarea, select, button {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.25rem;
}

textarea {
    resize: vertical;
}

button {
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.85;
}

.inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.inline > * {
    flex: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
}

.hint {
    color: #64748b;
    font-size: 0.9rem;
}

.notes {
    font-size: 0.9rem;
    color: #475569;
    margin: 0.25rem 0 0;
}

.share-toggle {
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.danger {
    background: #dc2626;
}

.share-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    background: #0d9488;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
}

