/* 一条鱼 account pages (sign-in, sign-up, console). Loaded after site.css;
   served under CSP style-src 'self': no inline styles. */
/* Rules below set display on some elements (.ya-field ...); without this a
   "hidden" element would still show. */
[hidden] { display: none !important; }
.ya-page { min-height: 100vh; display: flex; flex-direction: column; }
.ya-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px 64px; }
.ya-card {
    width: 100%; max-width: 420px; padding: 32px 30px 26px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 41, 87, .10);
}
.ya-card h1 { margin: 0; font-size: 26px; }
.ya-sub { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }
.ya-field { display: block; margin-bottom: 16px; }
.ya-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ya-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ya-field input {
    width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 15px;
    border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--text);
}
.ya-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ya-captcha-line { display: flex; align-items: center; gap: 10px; }
.ya-captcha-line input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .15em; }
.ya-captcha-line img { flex: none; width: 120px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: #f2f6fc; }
.ya-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.ya-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ya-msg { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: 14px; white-space: pre-line; }
.ya-submit {
    width: 100%; height: 46px; border: 0; border-radius: 11px; background: var(--accent); color: #fff;
    font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.ya-submit:hover { background: var(--accent-hover); }
.ya-submit:disabled { opacity: .65; cursor: wait; }
.ya-alt { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.ya-alt a { color: var(--accent); }

.ya-who { opacity: .9; font-size: 14px; }
.ya-out { padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ya-out:hover { background: rgba(255, 255, 255, .12); }

.ya-console { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.ya-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.ya-head h1 { margin: 0; font-size: 26px; }
.ya-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ya-stat { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.ya-stat b { color: var(--text); }
.ya-muted { color: var(--muted); }
.ya-small { font-size: 13px; }
.ya-mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.ya-empty { padding: 28px 26px; background: var(--surface); border: 1px dashed #c8d3e6; border-radius: 14px; color: var(--text-2); }
.ya-empty h2 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.ya-empty ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.ya-empty a { color: var(--accent); }
.ya-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ya-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ya-table th { padding: 11px 14px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ya-table td { padding: 12px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.ya-table tr:last-child td { border-bottom: 0; }
.ya-off td { color: var(--muted); }
.ya-name { font-weight: 600; color: var(--text); word-break: break-all; }
.ya-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ya-pill-on { background: #e7f8ee; color: #127a3f; }
.ya-pill-off { background: #f1f5f9; color: #64748b; }
.ya-actions { white-space: nowrap; text-align: right; }
.ya-actions .ya-link + .ya-link { margin-left: 14px; }
.ya-detail td { background: #fafcff; }
.ya-sub-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ya-sub-table th { padding: 6px 10px; text-align: left; color: var(--muted); font-weight: 600; background: none; border-bottom: 1px solid var(--border); }
.ya-sub-table td { padding: 6px 10px; border-bottom: 1px solid #eef2f7; }
.ya-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
    .ya-main { padding-top: 24px; }
    .ya-card { padding: 24px 18px 20px; border-radius: 14px; }
    /* phones: hide traffic, client and last-seen columns (main table only,
       not the process table inside "details"); actions stack vertically */
    .ya-table > thead > tr > th:nth-child(n+4):nth-child(-n+6),
    #device-rows > tr > td:nth-child(n+4):nth-child(-n+6) { display: none; }
    .ya-table td, .ya-table th { padding: 10px 8px; }
    .ya-actions .ya-link { display: block; margin: 3px 0 3px auto; }
    .ya-actions .ya-link + .ya-link { margin-left: auto; }
}
