/* =============================================
   Onboarding (初回ログイン後の確認画面)
   ============================================= */

.onboard-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.onboard-card {
    width: 100%;
    max-width: 480px;
    background: var(--surface, #1a1a1f);
    border: 1px solid var(--border, #2c2c33);
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.onboard-head {
    text-align: center;
    margin-bottom: 24px;
}
.onboard-logo {
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
}
.onboard-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.onboard-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.onboard-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border, #2c2c33);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 22px;
}
.onboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), #ff5fa3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-fg);
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.onboard-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onboard-avatar.has-img { background: transparent; }
.onboard-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.onboard-profile-id {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    margin-top: 2px;
}

.onboard-form {
    display: flex;
    flex-direction: column;
}
.onboard-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.onboard-label-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}
/* 入力フィールド共通サイズ — 両方とも 44px に固定 */
.onboard-handle-row,
.onboard-input-block {
    box-sizing: border-box;
    height: 44px;
    border: 1px solid var(--border, #2c2c33);
    border-radius: 6px;
    background: var(--surface-alt, rgba(0,0,0,0.2));
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    width: 100%;
    margin: 0;
}

.onboard-handle-row {
    display: flex;
    align-items: center;
    padding: 0 12px;
}
.onboard-handle-row:focus-within {
    border-color: var(--accent);
}
.onboard-handle-prefix {
    color: var(--text-muted);
    font-size: 14px;
    user-select: none;
    line-height: 1;
}
.onboard-input {
    flex: 1;
    align-self: stretch;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    padding: 0 0 0 6px;
    font-family: inherit;
    line-height: 1;
}

.onboard-handle-rule {
    font-size: 11px;
    color: var(--text-muted);
    margin: 6px 0 18px;
}

.onboard-input-block {
    display: block;
    padding: 0 12px;
    line-height: 1;
    margin-bottom: 18px;
}
.onboard-input-block:focus {
    outline: none;
    border-color: var(--accent);
}

.onboard-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 18px;
    cursor: pointer;
    line-height: 1.5;
}
.onboard-checkbox input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;       /* テキストの 1 行目とライン揃え */
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);  /* チェック時のアクセント色 */
}
.onboard-checkbox a { color: var(--accent); text-decoration: underline; }

.onboard-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 14px;
}

.onboard-submit {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #ff5fa3);
    color: var(--accent-fg);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .12s, transform .12s;
}
.onboard-submit:hover { opacity: 0.92; }
.onboard-submit:active { transform: scale(0.99); }
.onboard-submit:disabled { opacity: 0.5; cursor: not-allowed; }
