:root {
    --ink: #18253b;
    --ink-soft: #66738a;
    --muted: #9aa6b8;
    --line: #e8edf4;
    --surface: rgba(255, 255, 255, .9);
    --primary: #3569e8;
    --primary-dark: #2354d2;
    --purple: #7b61e9;
    --green: #31aa79;
    --orange: #f09a4d;
    --shadow: 0 18px 55px rgba(30, 51, 93, .08);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f5f7fb; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 0%, rgba(119, 151, 255, .14), transparent 28%),
        radial-gradient(circle at 95% 12%, rgba(177, 139, 255, .12), transparent 25%),
        #f5f7fb;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.ambient-one { width: 220px; height: 220px; top: 25%; left: -150px; background: rgba(121, 151, 255, .1); }
.ambient-two { width: 260px; height: 260px; right: -180px; bottom: 8%; background: rgba(171, 133, 255, .1); }

.app-shell { width: 100%; max-width: 1180px; min-height: 100vh; margin: 0 auto; padding: 0 24px 28px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand-lockup, .topbar-actions, .connection-badge, .customer-identity, .customer-footer, .section-heading, .search-line, .panel-toolbar { display: flex; align-items: center; }
.brand-lockup { gap: 11px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(145deg, #4a78ec, #715ee7); box-shadow: 0 8px 18px rgba(67, 103, 224, .27); font-size: 18px; font-weight: 800; }
.brand-name { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 11px; }
.topbar-actions { gap: 13px; }
.connection-badge { gap: 6px; padding: 7px 10px; color: var(--ink-soft); border: 1px solid rgba(220, 226, 237, .9); border-radius: 999px; background: rgba(255,255,255,.68); font-size: 11px; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(240, 154, 77, .12); }
.connection-badge.is-online .connection-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(49, 170, 121, .12); }
.connection-badge.is-error .connection-dot { background: #e56d7b; box-shadow: 0 0 0 3px rgba(229, 109, 123, .12); }
.icon-button { width: 34px; height: 34px; color: #738096; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.76); font-size: 20px; line-height: 1; transition: .2s ease; }
.icon-button:hover { color: var(--primary); border-color: #c7d4f7; transform: rotate(24deg); }

.page-content { display: grid; gap: 18px; }
.hero-panel { position: relative; min-height: 208px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: 35px 42px; border: 1px solid rgba(255,255,255,.72); border-radius: 28px; background: linear-gradient(120deg, #eef3ff 0%, #f8f7ff 54%, #f8f5ff 100%); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .section-kicker { display: block; color: #7890c9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.hero-copy h1 { margin: 12px 0 10px; color: #263552; font-size: clamp(26px, 4vw, 39px); line-height: 1.18; letter-spacing: -.04em; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy p { margin: 0; color: #7c89a0; font-size: 13px; }
.hero-art { position: absolute; right: 8%; width: 200px; height: 200px; opacity: .86; }
.hero-orbit { position: absolute; border: 1px solid rgba(92, 121, 223, .2); border-radius: 50%; transform: rotate(-28deg); }
.orbit-large { width: 174px; height: 74px; top: 62px; left: 13px; }
.orbit-small { width: 135px; height: 60px; top: 72px; left: 32px; transform: rotate(32deg); border-color: rgba(123, 97, 233, .18); }
.hero-art::after { content: ""; position: absolute; width: 66px; height: 66px; top: 66px; left: 66px; border-radius: 23px; background: linear-gradient(145deg, rgba(87, 126, 239, .88), rgba(126, 98, 230, .82)); box-shadow: 0 18px 30px rgba(75, 98, 199, .2); transform: rotate(13deg); }
.hero-art::before { content: ""; position: absolute; z-index: 1; width: 8px; height: 8px; top: 95px; left: 95px; border: 5px solid rgba(255,255,255,.9); border-radius: 50%; }
.hero-spark { position: absolute; color: #768fea; font-size: 20px; }
.spark-one { top: 27px; left: 33px; }.spark-two { right: 19px; bottom: 42px; color: #bd91ef; font-size: 28px; }.spark-three { top: 40px; right: 36px; color: #b9c6f5; font-size: 12px; }

.notice { padding: 12px 15px; color: #36527f; border: 1px solid #dce7ff; border-radius: 14px; background: #f1f6ff; font-size: 12px; line-height: 1.55; }
.notice.is-error { color: #9b4b59; border-color: #f4d9df; background: #fff4f5; }
.notice.is-success { color: #267756; border-color: #d6f0e3; background: #f1fcf6; }

.card { border: 1px solid rgba(231, 236, 245, .9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.customer-card { padding: 24px 27px 17px; }
.section-heading { justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 6px 0 0; color: #26334d; font-size: 18px; letter-spacing: -.025em; }
.compact-heading h2 { font-size: 17px; }
.status-chip, .number-badge, .record-id { border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-chip { padding: 7px 10px; }
.status-pending { color: #a17136; background: #fff6e8; }.status-online { color: #27825d; background: #eafaf2; }.status-bound { color: #4268d4; background: #edf2ff; }.status-error { color: #b55866; background: #fff0f2; }
.customer-identity { gap: 14px; margin-top: 20px; }
.customer-avatar { width: 51px; height: 51px; flex: 0 0 51px; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 17px; background: linear-gradient(145deg, #87a6ff, #7862df); box-shadow: 0 10px 20px rgba(89, 107, 210, .18); font-size: 20px; font-weight: 800; }
.customer-avatar img { width: 100%; height: 100%; object-fit: cover; }.avatar-loading { color: #7892da; background: #edf2ff; }.customer-summary { display: grid; gap: 5px; min-width: 0; }.customer-summary strong { overflow: hidden; color: #293750; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.customer-summary span { color: var(--muted); font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; min-height: 24px; margin: 17px 0 6px 65px; }.tag { padding: 5px 8px; color: #64789d; border-radius: 7px; background: #f1f4fa; font-size: 10px; }.tag.tag-blue { color: #5272c9; background: #eef3ff; }.tag.tag-green { color: #388566; background: #edf9f2; }
.customer-footer { justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #eff2f7; }.muted-line { overflow: hidden; color: #9aa6b8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.text-button { padding: 0; color: #6280d7; border: 0; background: transparent; font-size: 11px; white-space: nowrap; }

.state-card { display: flex; align-items: center; gap: 14px; padding: 19px 22px; }.state-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(145deg, #547ceb, #7564e5); font-size: 22px; }.soft-icon { color: #5d78d5; background: #edf2ff; }.state-copy { min-width: 0; flex: 1; }.state-copy h3 { margin: 0 0 5px; color: #2b3954; font-size: 14px; }.state-copy p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }.primary-button, .secondary-button, .small-button { border: 0; border-radius: 11px; font-weight: 700; transition: .2s ease; }.primary-button { padding: 11px 15px; color: #fff; background: linear-gradient(135deg, #4775eb, #625ede); box-shadow: 0 9px 18px rgba(68, 98, 219, .2); font-size: 12px; white-space: nowrap; }.primary-button:hover { background: linear-gradient(135deg, #3568df, #5550d1); transform: translateY(-1px); }.secondary-button { padding: 0 15px; color: #5270c5; background: #edf2ff; font-size: 12px; }.full-button { width: 100%; margin-top: 4px; }

.unbound-card { padding: 24px 27px; }.number-badge { padding: 7px 10px; color: #6681d2; background: #eef3ff; }.section-description { margin: 13px 0 15px; color: #8290a6; font-size: 12px; line-height: 1.6; }.search-line { gap: 8px; }.input, .textarea { width: 100%; color: var(--ink); border: 1px solid #e5eaf2; outline: none; border-radius: 11px; background: #fbfcfe; transition: .2s ease; }.input { height: 39px; padding: 0 11px; font-size: 12px; }.textarea { resize: vertical; padding: 11px; font-size: 12px; line-height: 1.6; }.input:focus, .textarea:focus { border-color: #9db3f0; background: #fff; box-shadow: 0 0 0 3px rgba(84, 117, 229, .1); }.search-line .input { flex: 1; }.search-line .secondary-button { height: 39px; }
.candidate-list { display: grid; gap: 8px; margin-top: 13px; }.candidate-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px; text-align: left; border: 1px solid #edf0f6; border-radius: 14px; background: #fff; }.candidate-item:hover { border-color: #cbd8fa; background: #f7f9ff; }.candidate-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: #5b75ca; border-radius: 11px; background: #eef3ff; font-size: 13px; font-weight: 800; }.candidate-copy { min-width: 0; flex: 1; }.candidate-copy strong, .candidate-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.candidate-copy strong { color: #31405b; font-size: 12px; }.candidate-copy small { margin-top: 4px; color: #9aa6b8; font-size: 10px; }.candidate-arrow { color: #a9b5c8; font-size: 19px; }.empty-state { padding: 20px 10px; color: #a0adbf; text-align: center; font-size: 11px; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, .82fr); gap: 18px; }.detail-card, .action-card { padding: 24px 27px; }.record-id { color: #99a6bb; font-weight: 500; }.tabs { display: flex; gap: 22px; margin: 19px 0 18px; border-bottom: 1px solid #edf0f5; }.tab-button { position: relative; padding: 0 0 11px; color: #9aa6b8; border: 0; background: transparent; font-size: 12px; }.tab-button.is-active { color: #426de0; font-weight: 700; }.tab-button.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: #5579e4; }.tab-panel { min-height: 150px; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.detail-cell { min-height: 58px; padding: 11px 12px; border-radius: 13px; background: #f8f9fc; }.detail-cell span, .detail-cell strong { display: block; }.detail-cell span { margin-bottom: 6px; color: #9aa6b8; font-size: 10px; }.detail-cell strong { overflow: hidden; color: #43516b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.timeline-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; color: #748198; font-size: 11px; font-weight: 700; }.count-label { color: #a2afc1; font-weight: 500; }.mini-list, .timeline-list { display: grid; gap: 8px; }.mini-remark, .timeline-item { padding: 11px 12px; border: 1px solid #edf1f6; border-radius: 13px; background: #fff; }.mini-remark p, .timeline-item p { overflow: hidden; margin: 0 0 7px; color: #5a6780; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.mini-remark footer, .timeline-meta { display: flex; justify-content: space-between; gap: 10px; color: #a3afbf; font-size: 10px; }.panel-toolbar { justify-content: space-between; margin-bottom: 12px; }.panel-title { color: #55637a; font-size: 12px; font-weight: 700; }.small-button { padding: 7px 10px; color: #5272cf; background: #edf2ff; font-size: 10px; }.todo-state { display: inline-flex; padding: 3px 6px; color: #9c743e; border-radius: 6px; background: #fff5e8; font-size: 9px; }.todo-state.done { color: #388365; background: #edf9f2; }

.action-card { display: flex; flex-direction: column; }.action-star { color: #8b76e5; font-size: 19px; }.action-list { display: grid; gap: 9px; margin-top: 22px; }.action-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 10px; text-align: left; border: 1px solid #edf0f6; border-radius: 15px; background: #fff; transition: .2s ease; }.action-item:hover { border-color: #ccd8fa; background: #f8faff; transform: translateX(2px); }.action-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; font-size: 16px; }.icon-blue { color: #5478dd; background: #edf3ff; }.icon-purple { color: #8569dc; background: #f4efff; }.icon-green { color: #39a579; background: #ecfaf3; }.action-item > span:nth-child(2) { min-width: 0; flex: 1; }.action-item strong, .action-item small { display: block; }.action-item strong { color: #3a4964; font-size: 12px; }.action-item small { margin-top: 4px; overflow: hidden; color: #a1adbd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.action-arrow { color: #acb7c7; font-size: 20px; }.privacy-note { display: flex; gap: 7px; align-items: flex-start; margin-top: auto; padding-top: 22px; color: #a0adbd; font-size: 10px; line-height: 1.55; }.privacy-note > span:first-child { color: #7a91dc; font-size: 16px; line-height: 1; }.page-footer { padding: 26px 0 0; color: #b0bac8; text-align: center; font-size: 10px; letter-spacing: .04em; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(24, 37, 59, .28); backdrop-filter: blur(5px); }.modal-card { width: min(100%, 480px); padding: 24px 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: #fff; box-shadow: 0 25px 70px rgba(29, 45, 86, .18); }.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }.modal-heading h2 { margin: 6px 0 0; color: #293752; font-size: 18px; }.modal-close { width: 30px; height: 30px; color: #93a0b2; border: 0; border-radius: 9px; background: #f4f6fa; font-size: 21px; line-height: 1; }.modal-form { display: grid; gap: 9px; }.field-label { display: block; margin-bottom: 4px; color: #68758b; font-size: 11px; font-weight: 700; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.field-block { min-width: 0; }

@media (max-width: 760px) {
    .app-shell { padding: 0 14px 23px; }.topbar { height: 65px; }.hero-panel { min-height: 190px; padding: 27px 23px; }.hero-art { right: -8%; transform: scale(.8); opacity: .62; }.hero-copy h1 { max-width: 250px; font-size: 28px; }.hero-copy p { max-width: 230px; line-height: 1.55; }.customer-card, .unbound-card, .detail-card, .action-card { padding: 20px 18px; }.workspace-grid { grid-template-columns: 1fr; }.action-card { min-height: 0; }.privacy-note { margin-top: 17px; padding-top: 17px; border-top: 1px solid #eff2f7; }.state-card { align-items: flex-start; flex-wrap: wrap; }.state-copy { flex-basis: calc(100% - 54px); }.state-card .primary-button { width: 100%; margin-left: 54px; }.customer-summary strong { max-width: 210px; }.tag-row { margin-left: 0; }.customer-footer { align-items: flex-start; }.record-id { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 420px) {
    .connection-badge { padding: 6px 8px; }.brand-subtitle { display: none; }.hero-panel { min-height: 180px; }.hero-art { right: -22%; }.detail-grid, .form-row { grid-template-columns: 1fr; }.tabs { gap: 18px; }.customer-avatar { width: 46px; height: 46px; flex-basis: 46px; }.customer-summary strong { max-width: 180px; }
}
