:root {
    --ink: #17212b;
    --paper: #f7f8fa;
    --line: #dde2e8;
    --accent: #0b5fff;
    --muted: #6b7684;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.site-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.site-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
}

.site-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

h1 { font-size: 22px; margin-bottom: 4px; }
.subtle { color: var(--muted); font-size: 13px; }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.tile {
    display: block;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
}
.tile:hover { border-color: var(--accent); }
.tile-name { font-weight: 600; margin-bottom: 6px; }
.tile-lock { margin-left: 4px; font-size: 12px; }
.tile-desc { font-size: 13px; color: var(--muted); }

textarea, input[type="password"], input[type="email"] {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 10px;
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }

#progress-wrap { margin: 14px 0; }
progress { width: 300px; vertical-align: middle; }
#progress-label { margin-left: 8px; font-size: 12px; color: var(--muted); }

.login-box {
    max-width: 320px;
    margin: 60px auto 0;
    text-align: center;
}
.error-text { color: #c00; font-size: 13px; }
