/* AgentCheckin — fnOS app styles */ :root { --bg: #f5f6f8; --panel: #ffffff; --border: #e5e7eb; --text: #1f2329; --muted: #8a909a; --primary: #3b6cff; --primary-dark: #2f57d6; --green: #16a34a; --green-bg: #eaf7ef; --red: #dc2626; --red-bg: #fdecec; --amber: #d97706; --amber-bg: #fdf3e3; --blue-bg: #e8efff; --gray-bg: #f0f1f3; --radius: 12px; --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04); } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; } /* ---------- top bar ---------- */ .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; background: linear-gradient(135deg, #3b6cff 0%, #7a5af8 100%); color: #fff; } .brand { display: flex; align-items: center; gap: 14px; } .brand-logo { width: 44px; height: 44px; } .brand h1 { font-size: 18px; margin: 0; font-weight: 600; } .brand .sub { margin: 0; font-size: 12px; opacity: .85; } .topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.22); color: #fff; } .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; } .chip.chip-green .dot { background: #4ade80; } .chip.chip-red .dot { background: #f87171; } /* ---------- tabs ---------- */ .tabs { display: flex; gap: 4px; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; } .tab { border: none; background: none; cursor: pointer; padding: 12px 18px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; } .tab:hover { color: var(--text); } .tab.active { color: var(--primary); border-bottom-color: var(--primary); } main { max-width: 1080px; margin: 0 auto; padding: 20px 24px 60px; } .tabpage { display: none; } .tabpage.active { display: block; } /* ---------- buttons ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s ease; white-space: nowrap; } .btn:hover { border-color: #c7cdd6; background: #fafbfc; } .btn:disabled { opacity: .5; cursor: not-allowed; } .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); } .btn-danger { color: var(--red); border-color: #f3c2c2; } .btn-danger:hover { background: var(--red-bg); border-color: var(--red); } .btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; } /* ---------- panels & cards ---------- */ .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; } .panel h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; } .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .panel-head h2 { margin: 0; } .muted { color: var(--muted); font-size: 13px; margin: 4px 0; } .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; } .acct-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; } .acct-card.disabled { opacity: .62; } .acct-head { display: flex; align-items: center; gap: 8px; } .platform-badge { font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; } .platform-badge.trae { background: #e8f3ff; color: #0a5cd8; } .platform-badge.workbuddy { background: #e8f7ef; color: #0a8a4a; } .platform-badge.qoder { background: #f3eaff; color: #7c3aed; } .acct-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acct-status { display: flex; align-items: center; gap: 8px; font-size: 13px; } .status-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; } .status-chip.ok { background: var(--green-bg); color: var(--green); } .status-chip.already { background: var(--blue-bg); color: var(--primary); } .status-chip.pending { background: var(--gray-bg); color: var(--muted); } .status-chip.fail, .status-chip.no_session, .status-chip.no_auth { background: var(--red-bg); color: var(--red); } .status-chip.inactive, .status-chip.retry_later, .status-chip.ok_unverified { background: var(--amber-bg); color: var(--amber); } .acct-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; } .acct-meta b { color: var(--text); font-weight: 600; } .acct-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .hint-list { margin: 0; padding-left: 20px; color: var(--text); } .hint-list li { margin-bottom: 6px; } /* ---------- table ---------- */ table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .tbl th { text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--border); } .tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; } .tbl tr:last-child td { border-bottom: none; } .tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; } /* ---------- forms ---------- */ .input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: inherit; background: #fff; color: var(--text); outline: none; transition: border-color .15s; } .input:focus { border-color: var(--primary); } .input-wide { width: 100%; } .input-time { width: 140px; } label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 12px; } label .input { margin-top: 6px; } .req { color: var(--red); } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .switch-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-bottom: 0; } .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .time-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-bg); color: var(--primary); border-radius: 999px; padding: 4px 8px 4px 12px; font-size: 13px; font-weight: 500; } .time-chip button { border: none; background: rgba(59,108,255,.15); color: var(--primary); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; } .time-chip button:hover { background: var(--primary); color: #fff; } .msg { margin-top: 10px; font-size: 13px; min-height: 20px; } .msg.ok { color: var(--green); } .msg.err { color: var(--red); } /* ---------- modal ---------- */ .modal-mask { position: fixed; inset: 0; background: rgba(15, 18, 25, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; } .modal-mask.hidden { display: none; } .modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.18); } .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .modal-head h3 { margin: 0; font-size: 16px; } .modal-close { border: none; background: var(--gray-bg); width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--muted); } .modal-close:hover { background: var(--border); color: var(--text); } .modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; } .mtab { border: none; background: none; padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; } .mtab.active { color: var(--primary); border-bottom-color: var(--primary); } .mtabpage { display: none; } .mtabpage.active { display: block; } .help { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; background: #fafbfc; } .help summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--primary); } .help-body { margin-top: 10px; font-size: 13px; } .help-body p { margin: 6px 0; } .help-body code { background: var(--gray-bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; } /* ---------- logs ---------- */ .log-view { background: #0f1420; color: #c9d4e5; border-radius: 10px; padding: 14px 16px; font-size: 12px; line-height: 1.7; font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace; max-height: 560px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; margin: 0; } /* ---------- toast ---------- */ .toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); background: #1f2329; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 80vw; } .toast.hidden { display: none; } .toast.err { background: var(--red); } .toast.ok { background: var(--green); } .hidden { display: none !important; } @media (max-width: 640px) { .topbar { padding: 14px 16px; } .tabs { padding: 0 12px; } main { padding: 16px 12px 40px; } .tab { padding: 10px 12px; } }