:root{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:#172033;
  background:#f3f5f8;
  font-synthesis:none;
  font-size:16px;
  --ink:#172033;
  --blue:#12a4e8;
  --blue-deep:#087bb8;
  --blue-soft:#e9f7ff;
  --muted:#69788c;
  --line:#e7ebf0;
  --paper:#fff;
  --red:#c13b4e;
}
*{box-sizing:border-box}
html{background:#f3f5f8;-webkit-text-size-adjust:100%}
body{margin:0;min-width:320px;background:#f3f5f8}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{
  min-height:38px;
  padding:.48rem .78rem;
  border:1px solid #dbe2ea;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  font-size:.875rem;
  font-weight:650;
  white-space:nowrap;
}
button:hover{background:#f7fbfe;border-color:#b9d9e9}
button:disabled{opacity:.5;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role="button"]:focus-visible{outline:3px solid #8ed9ff;outline-offset:2px}
a{color:var(--blue-deep);text-decoration:none}
.primary{border-color:transparent;background:var(--blue);color:#fff}
.primary:hover{border-color:transparent;background:#0b90d0}
.quiet{border-color:transparent;background:transparent}
.danger{color:var(--red)}
.wide{width:100%}
.small{min-height:34px;padding:.38rem .68rem;font-size:.8125rem}
.muted{color:var(--muted)}
.meta{color:var(--muted);font-size:.75rem;line-height:1.45}
.hint{color:var(--muted);font-size:.8125rem;line-height:1.55}
.eyebrow{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3,p{margin:0}
h1{font-size:1.35rem;line-height:1.35}
h2{font-size:1rem;line-height:1.4}
h3{font-size:.9375rem;line-height:1.45}
.row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.between{justify-content:space-between}
.stack{display:grid;gap:.75rem}
.spacer{flex:1}
.ui-icon{display:block;width:20px;height:20px}
.badge{display:inline-flex;align-items:center;padding:.15rem .45rem;border-radius:999px;background:#e8f6ff;color:#146f9e;font-size:.7rem;font-weight:650;line-height:1.4}
.badge.internal{background:#f0f1f3;color:#626b76}
.badge.disabled{background:#fbedef;color:#9c3f48}
.badge.demo{background:#fff1cc;color:#725406}
.boot{padding:3rem 1rem;text-align:center;color:var(--muted)}

.shell{display:block;min-height:100dvh}
.sidebar{position:fixed;z-index:5;right:0;bottom:0;left:0;height:auto;padding:0 5px env(safe-area-inset-bottom);border-top:1px solid #e4e8ed;background:#fff}
.sidebar>.brand,.sidebar-foot{display:none}
.sidebar nav{display:flex;justify-content:space-around}
.nav-button{min-width:0;min-height:58px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 2px 4px;border:0;border-radius:0;background:#fff;color:#5d6877;font-size:.68rem;font-weight:550}
.nav-button:hover,.nav-button.active{background:#fff;color:var(--blue)}
.nav-icon{display:grid;place-items:center}
.nav-icon .ui-icon{width:21px;height:21px;opacity:.65}
.nav-button.active .ui-icon{opacity:1;filter:invert(51%) sepia(98%) saturate(1816%) hue-rotate(163deg) brightness(94%) contrast(91%)}
.main{min-width:0}
.workspace{max-width:680px;margin:0 auto;padding:12px 12px calc(72px + env(safe-area-inset-bottom))}

.customer-tools{display:flex;align-items:center;gap:7px;margin-bottom:10px}
.customer-search{min-width:0;flex:1}
.customer-search input{min-height:38px;padding:8px 10px 8px 38px;border:0;border-radius:10px;background:#fff url("/icons/search.svg") no-repeat 12px center/18px}
.search-submit{min-height:38px;padding:.45rem .62rem}
.add-customer{min-height:38px;padding:.45rem .65rem}

.list-card,.surface{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}
.customer-row{min-height:62px;display:flex;align-items:center;gap:10px;padding:9px 11px;border-bottom:1px solid var(--line);cursor:pointer}
.customer-row:last-child{border-bottom:0}
.customer-row:active{background:#f5f9fc}
.avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#e4f5fd;color:#1178a9;font-size:.875rem;font-weight:750}
.customer-info{min-width:0;flex:1}
.customer-info .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:650}
.customer-info .meta{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row-end{display:flex;align-items:center;gap:3px;color:#8a96a5;font-size:.68rem}
.last-time{max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chevron{opacity:.42}
.chevron .ui-icon{width:16px;height:16px}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;color:var(--muted);font-size:.72rem}

.library-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:1px 0 10px}
.library-tools p{color:var(--muted);font-size:.78rem;line-height:1.4}
.segments{display:flex;flex:0 0 auto;padding:2px;border-radius:9px;background:#e8edf2}
.segments button{min-height:30px;padding:.28rem .62rem;border:0;border-radius:7px;background:transparent;color:#697789;font-size:.75rem}
.segments button.active{background:#fff;color:var(--blue-deep);box-shadow:0 1px 4px #23364a18}
.article-group+.article-group{margin-top:4px}
.group-title{margin:0 2px 7px;color:#67788b;font-size:.8125rem;font-weight:600}
.article-group+.article-group .group-title{display:flex;align-items:center;gap:10px;margin:0 2px 4px;line-height:16px;color:#71879a;font-size:.75rem}
.article-group+.article-group .group-title::before,.article-group+.article-group .group-title::after{content:"";flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#8ecce9)}
.article-group+.article-group .group-title::after{transform:scaleX(-1)}
.pinned-group .group-title{color:var(--blue-deep)}
.pinned-group .list-card{border-color:#cfe8f4}
.article-row{min-height:86px;display:flex;align-items:center;gap:8px;padding:10px 10px 10px 12px;border-bottom:1px solid var(--line)}
.article-row:last-child{border-bottom:0}
.article-row.pinned{background:#fbfdff}
.article-copy{min-width:0;flex:1;cursor:pointer}
.article-copy:active{opacity:.7}
.article-kind{display:block;margin-bottom:4px;color:#7a8796;font-size:.68rem}
.article-row.pinned .article-kind{color:var(--blue-deep)}
.article-copy h3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.92rem;font-weight:650}
.article-actions{width:70px;display:grid;flex:0 0 auto;gap:5px}
.article-actions button{width:100%;min-height:34px;padding:.3rem .35rem;font-size:.78rem}
.pin-action{border-color:transparent;background:transparent;color:#788596}
.pin-action.active{color:var(--blue-deep);background:#edf8ff}

.rank-tools{display:flex;align-items:center;justify-content:space-between;margin:1px 0 10px}
.rank-tools strong{font-size:.95rem}
.sort-button{min-height:32px;padding:.28rem .65rem;border-color:#cfeaf7;border-radius:16px;background:#eaf8ff;color:var(--blue-deep);font-size:.75rem}
.day-tabs{display:flex;gap:5px;margin-bottom:10px;padding:3px;border-radius:10px;background:#e8edf2}
.day-tabs button{flex:1;min-width:0;min-height:34px;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:.8125rem}
.day-tabs button.active{background:#fff;color:var(--blue-deep);box-shadow:0 1px 4px #23364a18}
.selected-date{margin:0 2px 9px;color:var(--blue-deep);font-size:.8125rem}
.ranking-note{margin:10px 2px;color:var(--muted);font-size:.6875rem;line-height:1.5}
.interest-row{cursor:pointer}
.interest-row{gap:7px;padding:11px 10px}
.interest-content{min-width:0;flex:1}
.interest-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:5px}
.interest-heading .name{min-width:0;font-size:.9375rem;font-weight:650;overflow-wrap:anywhere}
.opened-time{flex:0 0 auto;color:#7c8999;font-size:.6875rem;line-height:1.6;white-space:nowrap}
.interest-level-row{float:right;margin:5px 0 0 5px}
.interest-metrics{margin-top:5px;color:var(--muted);font-size:.72rem;line-height:1.6}
.rank-number{min-width:15px;flex:0 0 auto;color:#8793a2;font-size:.78rem;text-align:center}
.rank-number.top-rank{color:var(--blue-deep);font-weight:750}
.interest-level{flex:0 0 auto;padding:.2rem .45rem;border-radius:999px;font-size:.68rem;font-weight:650}
.level-high{background:#fff0ec;color:#b64b34}
.level-mid{background:#fff6df;color:#986b0a}
.level-low{background:#edf2f6;color:#75808d}

.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.page-head>div:first-child{min-width:0;flex:1}
.page-head h1{overflow-wrap:anywhere}
.page-head>.row{justify-content:flex-end;flex:0 0 auto}
.page-head p{margin-top:3px;font-size:.75rem}
.back{display:inline-flex;margin-bottom:10px;font-size:.78rem}
.surface{margin-bottom:10px}
.surface-head{padding:12px 13px;border-bottom:1px solid var(--line)}
.surface-body{padding:13px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:10px;padding:12px 0;border:1px solid #d9eef7;border-radius:13px;background:linear-gradient(120deg,#effaff,#f3fdf8 55%,#fff8f3)}
.stat{padding:0 8px;border-right:1px solid #dbe8ec}
.stat:last-child{border:0}
.stat span{display:block;color:#657687;font-size:.67rem;line-height:1.3}
.stat strong{display:block;margin-top:4px;font-size:1rem}
.stat strong .meta{display:inline;margin-left:2px;font-size:.66rem}
.detail-grid{display:grid;gap:12px;align-items:start}
.customer-links{min-width:0;display:grid;gap:9px}
.link-card{display:grid;grid-template-columns:minmax(0,1fr) 50px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.link-copy{min-width:0}
.link-copy h3{margin-bottom:7px;overflow-wrap:anywhere;font-size:.9375rem;font-weight:650}
.link-metrics{display:flex;gap:3px 9px;flex-wrap:wrap;color:#647486;font-size:.75rem;line-height:1.5}
.link-actions{display:grid;gap:4px}
.link-actions button{width:100%;min-height:32px;padding:4px 5px;font-size:.75rem}
.note-form{margin-bottom:12px}
.note{padding:10px 0;border-top:1px solid var(--line)}
.note p{margin-top:4px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:.82rem;line-height:1.55}

.profile-card{margin:0}
.profile-summary{min-height:72px;display:flex;align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid var(--line)}
.profile-avatar{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#e5f6ff;color:#0e78ac;font-weight:750}
.profile-summary h2{font-size:1rem}
.profile-summary p{margin-top:3px;color:var(--muted);font-size:.73rem}
.profile-actions{padding:0 12px}
.profile-action{width:100%;min-height:54px;display:grid;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;text-align:left}
.profile-action:last-child{border-bottom:0}
.profile-action strong{font-size:.9rem}
.profile-action>.ui-icon{width:20px;height:20px;opacity:.68}
.profile-action>.action-chevron{width:16px;height:16px;opacity:.35}
.profile-action.danger strong{color:var(--red)}

.staff-row{display:flex;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.staff-row:last-child{border-bottom:0}
.staff-info{min-width:0;flex:1}
.staff-info h3{overflow-wrap:anywhere}
.staff-row>.row{width:100%;justify-content:flex-end}
.notice{padding:10px 12px;border-radius:10px;background:#edf8ff;color:#45677d;font-size:.78rem;line-height:1.5}
.empty{padding:34px 18px;text-align:center}
.empty-symbol{width:42px;height:42px;display:grid;place-items:center;margin:0 auto 11px;border-radius:12px;background:#e9f7ff}
.empty-symbol .ui-icon{width:22px;height:22px;opacity:.6}
.empty p{max-width:290px;margin:6px auto 12px;color:var(--muted);font-size:.8rem;line-height:1.5}

input,textarea,select{width:100%;min-height:42px;padding:9px 10px;border:1px solid #bec9d5;border-radius:9px;background:#fff;color:var(--ink);font-size:16px}
input:focus,textarea:focus,select:focus{outline:3px solid #d9f1ff;border-color:var(--blue)}
textarea{min-height:84px;resize:vertical;line-height:1.5}
label.field{display:grid;gap:5px;font-size:.82rem;font-weight:650}
label.field small{font-weight:400}
.field-grid{display:grid;gap:12px}
.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
.form-error{color:var(--red);font-size:.78rem;line-height:1.5;white-space:pre-wrap}
.form-error:empty{display:none}
fieldset{min-width:0;margin:0;padding:0;border:0}
.dialog-article,.link-customer{margin:-4px 0 14px;color:#536376;font-size:.82rem;line-height:1.45}
.copy-primary{margin-top:10px}
.demo-note{margin-top:10px;text-align:center}

.login-layout{min-height:100dvh;background:#fff}
.login-brand{display:flex;align-items:center;min-height:74px;padding:16px 22px;background:#12263b;color:#fff}
.brand{display:flex;align-items:center;gap:9px;font-weight:700}
.brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--blue);color:#fff;font-size:.8rem}
.brand small{display:block;margin-top:2px;color:#a9bfd2;font-size:.67rem;font-weight:400;letter-spacing:.1em}
.login-brand>.headline,.login-brand>.hint,.login-brand>.eyebrow{display:none}
.login-panel{display:flex;justify-content:center;padding:28px 22px 44px;background:#fff}
.login-card{width:100%;max-width:390px}
.login-card h1{font-size:1.3rem;margin-bottom:5px}
.login-card form{margin-top:20px}
.demo-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}
.demo-choices button:first-child{grid-column:1/-1}
.login-divider{display:flex;align-items:center;gap:9px;margin:18px 0;color:#788ba0;font-size:.75rem}
.login-divider:before,.login-divider:after{content:"";height:1px;background:var(--line);flex:1}

dialog{width:100%;max-width:none;max-height:88dvh;margin:auto 0 0;padding:18px 17px calc(18px + env(safe-area-inset-bottom));overflow:auto;border:0;border-radius:17px 17px 0 0;color:var(--ink);box-shadow:0 -10px 42px #142a4533}
dialog::backdrop{background:#10203970}
dialog h2{padding-right:30px;margin-bottom:15px;font-size:1.08rem}
dialog .close-dialog{position:absolute;right:8px;top:7px;display:grid;place-items:center;min-width:36px;min-height:36px;padding:7px;border:0;background:transparent}
.close-dialog .ui-icon{width:20px;height:20px}
.form-actions>button{flex:1}
.toast{position:fixed;z-index:10;bottom:calc(69px + env(safe-area-inset-bottom));left:50%;max-width:calc(100% - 28px);padding:10px 16px;transform:translateX(-50%);border-radius:9px;background:#17344d;color:#fff;box-shadow:0 6px 24px #142a4533;font-size:.78rem}
.copy-url{font-size:16px}
.screen-error{padding:18px;border:1px solid #ecd2d8;border-radius:12px;background:#fff;color:#8c2c3a;font-size:.82rem;line-height:1.6}
.mobile-only{display:block}
[hidden]{display:none!important}

@media(max-width:359px){
  .workspace{padding-left:8px;padding-right:8px}
  .search-submit{display:none}
  .library-tools{align-items:flex-start;flex-direction:column}
  .segments{width:100%}
  .segments button{flex:1}
}

@media(min-width:681px){
  html:not(.force-mobile) .shell{display:grid;grid-template-columns:210px minmax(0,1fr)}
  html:not(.force-mobile) .sidebar{position:sticky;top:0;right:auto;bottom:auto;left:auto;height:100dvh;display:flex;flex-direction:column;gap:28px;padding:28px 17px;background:#12263b;color:#fff}
  html:not(.force-mobile) .sidebar>.brand,html:not(.force-mobile) .sidebar-foot{display:flex}
  html:not(.force-mobile) .sidebar nav{display:grid;gap:6px}
  html:not(.force-mobile) .nav-button{min-height:44px;flex-direction:row;justify-content:flex-start;gap:10px;padding:10px 12px;border-radius:10px;background:transparent;color:#b8c8d7;font-size:.875rem}
  html:not(.force-mobile) .nav-button:hover,html:not(.force-mobile) .nav-button.active{background:#203d58;color:#fff}
  html:not(.force-mobile) .nav-icon .ui-icon{filter:invert(1);opacity:.72}
  html:not(.force-mobile) .sidebar-foot{margin-top:auto;color:#9db3c6;font-size:.75rem}
  html:not(.force-mobile) .workspace{max-width:980px;padding:28px 30px 50px}
  html:not(.force-mobile) .login-layout{display:grid;grid-template-columns:minmax(280px,38%) 1fr}
  html:not(.force-mobile) .login-brand{min-height:100dvh;align-items:flex-start;padding:42px}
  html:not(.force-mobile) .login-brand>.headline{display:block;margin:auto 0;font-size:2.2rem;line-height:1.5}
  html:not(.force-mobile) .login-brand>.headline em{color:#82d1f7;font-style:normal}
  html:not(.force-mobile) .login-panel{align-items:center;padding:40px}
  html:not(.force-mobile) dialog{width:min(460px,calc(100% - 32px));margin:auto;padding:22px;border-radius:16px}
  html:not(.force-mobile) .toast{bottom:24px}
}

@media(min-width:1100px){html:not(.force-mobile) .detail-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr)}}

@media(prefers-reduced-motion:no-preference){
  button,a{transition:background-color .14s,border-color .14s,color .14s,opacity .14s}
  .toast{animation:appear .15s ease-out}
  @keyframes appear{from{opacity:0;translate:0 3px}to{opacity:1;translate:0 0}}
}
