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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0.75rem;
}

.container {
    width: 100%;
    max-width: 380px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111;
}

p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 0.75rem;
}

#code-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#code-input {
    width: 100%;
    font-size: 1.1rem;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border: 2px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
}

#code-input:focus {
    border-color: #2563eb;
}

#code-submit {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

#code-submit:hover {
    background: #1d4ed8;
}

.error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

#device-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2563eb;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

#device-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333;
}
