styles.css 192 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828
  1. :root {
  2. --brand: #fa8c16;
  3. --brand-dark: #d46b08;
  4. --brand-bg: #fff7e6;
  5. --border: #e8e8e8;
  6. --page-bg: #f0f2f5;
  7. --panel-bg: #ffffff;
  8. --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  9. --text-primary: #1f1f1f;
  10. --text-secondary: #5a5a5a;
  11. --text-muted: #8c8c8c;
  12. --success: #52c41a;
  13. --success-bg: #f6ffed;
  14. --success-border: #b7eb8f;
  15. --error: #ff4d4f;
  16. --error-bg: #fff2f0;
  17. --error-border: #ffccc7;
  18. --warning: #faad14;
  19. --warning-bg: #fffbe6;
  20. --info: #1890ff;
  21. --info-bg: #e6f7ff;
  22. --radius-sm: 10px;
  23. --radius-md: 14px;
  24. --radius-lg: 18px;
  25. --shadow: 0 4px 20px rgba(0,0,0,0.06);
  26. --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  27. }
  28. /* Unified task center */
  29. .customer-master-shell { display: grid; gap: 16px; margin-bottom: 22px; }
  30. .customer-master-hero { min-height: 148px; border-radius: 20px; padding: 28px 30px; background: linear-gradient(125deg, #123f36, #287b58); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 16px 34px rgba(20, 77, 59, .16); }
  31. .customer-master-hero > div { display: grid; gap: 6px; }
  32. .customer-master-hero span { color: #b9dfd0; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; }
  33. .customer-master-hero h2 { margin: 0; font-size: 30px; }
  34. .customer-master-hero p { margin: 0; color: #d8ece4; font-size: 13px; }
  35. .customer-master-hero .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
  36. .customer-master-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  37. .customer-master-stats > div { display: grid; gap: 4px; padding: 15px 17px; background: #fff; border: 1px solid #e3e8e6; border-radius: 13px; }
  38. .customer-master-stats strong { color: #18342b; font-size: 23px; }
  39. .customer-master-stats span { color: #78847f; font-size: 11px; }
  40. .customer-master-policy { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; padding: 13px 16px; border-radius: 12px; border: 1px solid #cfe5d8; background: #f2faf5; }
  41. .customer-master-policy strong { color: #237348; font-size: 13px; }
  42. .customer-master-policy span { color: #4f695d; font-size: 12px; }
  43. .customer-master-policy small { grid-column: 2; color: #809087; }
  44. .customer-master-policy.fallback { border-color: #f1d6a5; background: #fffaf0; }
  45. .customer-master-policy.fallback strong { color: #b07d1a; }
  46. .customer-fallback-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; color: #b07d1a; background: #fff3d6; font-size: 10px; font-weight: 650; vertical-align: middle; }
  47. .customer-master-list-item .customer-fallback-badge { margin-left: 6px; }
  48. .customer-master-fallback-note { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid #f1d6a5; background: #fffaf0; color: #8a6a2f; }
  49. .customer-master-fallback-note strong { font-size: 12px; }
  50. .customer-master-fallback-note span { font-size: 11px; line-height: 1.6; }
  51. .customer-master-layout { min-height: 620px; display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid #e2e7e5; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(30, 57, 46, .05); }
  52. .customer-master-layout > aside { border-right: 1px solid #e6ebe8; background: #fafcfb; }
  53. .customer-master-layout > aside > header { display: grid; gap: 10px; padding: 16px; border-bottom: 1px solid #e6ebe8; }
  54. .customer-master-layout > aside > header strong { color: #24352e; font-size: 14px; }
  55. .customer-master-layout > aside input { width: 100%; min-height: 36px; border: 1px solid #dce4e0; border-radius: 9px; padding: 0 10px; background: #fff; }
  56. .customer-master-layout > aside > div { display: grid; padding: 8px; gap: 7px; }
  57. .customer-master-list-item { width: 100%; display: grid; gap: 7px; padding: 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
  58. .customer-master-list-item:hover { background: #f1f7f4; }
  59. .customer-master-list-item.active { background: #e8f5ee; border-color: #b9dfcc; }
  60. .customer-master-list-item > div, .customer-master-list-item footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  61. .customer-master-list-item strong { color: #20332a; font-size: 13px; }
  62. .customer-master-list-item p { margin: 0; color: #68766f; font-size: 11px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  63. .customer-master-list-item footer { color: #849089; font-size: 10px; }
  64. .customer-stage { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; padding: 0 8px; color: #5c6b64; background: #edf1ef; font-size: 10px; white-space: nowrap; }
  65. .customer-stage.priority { color: #a34436; background: #fff0ed; }
  66. .customer-stage.qualified { color: #217349; background: #e5f6eb; }
  67. .customer-stage.profiling { color: #486c91; background: #edf5fc; }
  68. .customer-master-layout > main { min-width: 0; }
  69. .customer-master-detail { display: grid; gap: 16px; padding: 22px; }
  70. .customer-next-action-section, .customer-timeline-section { display: grid; gap: 11px; padding: 15px; border: 1px solid #e0e7e3; border-radius: 13px; }
  71. .customer-next-action-section > header, .customer-timeline-section > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  72. .customer-next-action-section > header > div, .customer-timeline-section > header > div { display: grid; gap: 2px; }
  73. .customer-next-action-section > header strong, .customer-timeline-section > header strong { color: #2b3c34; font-size: 13px; }
  74. .customer-next-action-section > header span, .customer-timeline-section > header span { color: #87938d; font-size: 10px; }
  75. .customer-next-action-section > header em, .customer-timeline-section > header em { color: #52705f; font-size: 10px; font-style: normal; }
  76. .customer-next-action-section > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  77. .customer-next-action-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .75fr); gap: 9px 13px; align-items: start; padding: 12px; border-radius: 10px; background: #f7f9f8; border-left: 3px solid #8eaa9b; }
  78. .customer-next-action-card.high { border-left-color: #e89545; background: #fffbf5; }
  79. .customer-next-action-card > div { display: grid; gap: 4px; }
  80. .customer-next-action-card > div span { color: #488064; font-size: 9px; font-weight: 700; }
  81. .customer-next-action-card strong { color: #2a3b33; font-size: 12px; }
  82. .customer-next-action-card p { margin: 0; color: #647169; font-size: 10px; line-height: 1.5; }
  83. .customer-next-action-card ul { margin: 0; padding-left: 16px; color: #77827c; font-size: 9px; line-height: 1.55; }
  84. .customer-next-action-card .btn { grid-column: 1 / -1; justify-self: start; }
  85. .customer-timeline-section > div { position: relative; display: grid; gap: 0; }
  86. .customer-timeline-item { display: grid; grid-template-columns: 10px 78px minmax(0, 1fr); gap: 9px; align-items: start; min-height: 60px; padding: 5px 0 12px; }
  87. .customer-timeline-item > i { position: relative; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #77a28c; box-shadow: 0 0 0 3px #edf5f1; }
  88. .customer-timeline-item:not(:last-child) > i::after { content: ''; position: absolute; top: 11px; left: 4px; width: 1px; height: 47px; background: #dce6e1; }
  89. .customer-timeline-item.inbound-message > i { background: #4e8ee1; }
  90. .customer-timeline-item.outbound-message > i { background: #65a67e; }
  91. .customer-timeline-item.alert > i { background: #e47a61; }
  92. .customer-timeline-item > time { color: #8b958f; font-size: 9px; line-height: 1.6; }
  93. .customer-timeline-item > div { display: grid; gap: 3px; }
  94. .customer-timeline-item strong { color: #33433b; font-size: 11px; }
  95. .customer-timeline-item p { margin: 0; color: #6f7b75; font-size: 10px; line-height: 1.5; }
  96. .customer-timeline-item small { color: #929b96; font-size: 8px; }
  97. .customer-master-detail-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
  98. .customer-master-detail-head > div:first-child { display: grid; gap: 4px; }
  99. .customer-master-detail-head > div:last-child { display: flex; align-items: center; gap: 8px; }
  100. .customer-master-detail-head span:first-child { color: #33805e; font-size: 9px; letter-spacing: 1px; font-weight: 750; }
  101. .customer-master-detail-head h3 { margin: 0; color: #1f3028; font-size: 22px; }
  102. .customer-master-detail-head p { margin: 0; color: #7d8983; font-size: 11px; }
  103. .customer-master-score-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  104. .customer-master-score-row > div { display: grid; gap: 3px; padding: 11px 13px; border-radius: 10px; background: #f6f8f7; }
  105. .customer-master-score-row strong { color: #244236; font-size: 17px; }
  106. .customer-master-score-row span { color: #839089; font-size: 10px; }
  107. .customer-profile-fields { display: grid; gap: 11px; padding: 15px; border: 1px solid #e0e7e3; border-radius: 13px; }
  108. .customer-profile-fields > header, .customer-master-intelligence-grid section > header, .customer-master-edit-form > header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  109. .customer-profile-fields > header strong, .customer-master-intelligence-grid section > header strong, .customer-master-edit-form > header strong { color: #2b3c34; font-size: 13px; }
  110. .customer-profile-fields > header span, .customer-master-intelligence-grid section > header span, .customer-master-edit-form > header span { color: #89948f; font-size: 10px; }
  111. .customer-profile-fields > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  112. .customer-profile-fields > div > div { display: grid; gap: 3px; min-height: 76px; padding: 10px; background: #f7f9f8; border-radius: 9px; }
  113. .customer-profile-fields small { color: #87928d; font-size: 9px; }
  114. .customer-profile-fields strong { color: #25372f; font-size: 13px; }
  115. .customer-profile-fields em { color: #5a8b73; font-size: 9px; font-style: normal; }
  116. .customer-profile-fields > footer { display: flex; flex-wrap: wrap; gap: 6px; }
  117. .customer-profile-fields > footer span { color: #2d7251; background: #e8f5ed; border-radius: 999px; padding: 4px 9px; font-size: 10px; }
  118. .customer-master-intelligence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  119. .customer-master-intelligence-grid > section { display: grid; align-content: start; gap: 9px; padding: 14px; border: 1px solid #e2e7e4; border-radius: 12px; }
  120. .customer-evidence-item, .customer-master-action-item { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #f7f9f8; }
  121. .customer-master-action-item.alert { background: #fff7f3; }
  122. .customer-evidence-item strong, .customer-master-action-item strong { color: #34443c; font-size: 11px; }
  123. .customer-evidence-item p, .customer-master-action-item p { margin: 0; color: #69766f; font-size: 10px; line-height: 1.5; }
  124. .customer-evidence-item small, .customer-master-action-item small { color: #909994; font-size: 9px; }
  125. .customer-latest-message { display: grid; gap: 5px; padding: 13px 15px; border-left: 3px solid #6aaf8b; background: #f4f9f6; border-radius: 0 10px 10px 0; }
  126. .customer-latest-message strong { color: #315343; font-size: 11px; }
  127. .customer-latest-message p { margin: 0; color: #51635a; font-size: 11px; line-height: 1.55; }
  128. .customer-latest-message small { color: #87948e; font-size: 9px; }
  129. .customer-master-edit-form { display: grid; gap: 11px; padding: 15px; border-radius: 13px; border: 1px solid #dce7e1; background: #fbfdfc; }
  130. .customer-master-edit-form > header > div { display: grid; gap: 2px; }
  131. .customer-master-edit-form > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  132. .customer-master-edit-form label { display: grid; gap: 5px; }
  133. .customer-master-edit-form label > span { color: #69776f; font-size: 10px; }
  134. .customer-master-edit-form input { width: 100%; min-height: 35px; border: 1px solid #dbe3df; border-radius: 8px; padding: 0 9px; background: #fff; }
  135. .customer-master-reason { grid-column: 1 / -1; }
  136. .customer-operations-hint { margin-top: 4px; }
  137. @media (max-width: 1100px) {
  138. .customer-master-layout { grid-template-columns: 240px minmax(0, 1fr); }
  139. .customer-profile-fields > div, .customer-master-edit-form > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  140. .customer-next-action-section > div { grid-template-columns: 1fr; }
  141. }
  142. @media (max-width: 760px) {
  143. .customer-master-stats, .customer-master-score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  144. .customer-master-layout { grid-template-columns: 1fr; }
  145. .customer-master-layout > aside { border-right: 0; border-bottom: 1px solid #e6ebe8; }
  146. .customer-master-intelligence-grid, .customer-profile-fields > div, .customer-master-edit-form > div { grid-template-columns: 1fr; }
  147. .customer-next-action-section > div { grid-template-columns: 1fr; }
  148. .customer-master-policy { grid-template-columns: 1fr; }
  149. .customer-master-policy small { grid-column: 1; }
  150. .customer-master-detail-head, .customer-master-hero { align-items: flex-start; flex-direction: column; }
  151. }
  152. .unified-task-workbench { display: grid; gap: 18px; }
  153. .task-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  154. .task-stat-row > div { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
  155. .task-stat-row strong { color: #18212f; font-size: 26px; line-height: 1; }
  156. .task-stat-row span { color: #7a8493; font-size: 12px; }
  157. .task-policy-banner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  158. .task-policy-banner > div { border: 1px solid #dbe8df; background: #f4fbf6; border-radius: 14px; padding: 14px 16px; display: grid; gap: 5px; }
  159. .task-policy-banner strong { color: #237344; font-size: 13px; }
  160. .task-policy-banner span { color: #607067; font-size: 12px; line-height: 1.65; }
  161. .task-create-form { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1.2fr) minmax(130px, .8fr) 175px 110px auto; gap: 10px; align-items: end; padding: 16px; background: #fff; border: 1px solid #e5e8ed; border-radius: 14px; }
  162. .task-create-form > div { display: grid; gap: 4px; align-self: center; }
  163. .task-create-form > div strong { color: #202a37; font-size: 14px; }
  164. .task-create-form > div span { color: #838c99; font-size: 11px; }
  165. .task-create-form input, .task-create-form select, .task-filterbar input, .task-filterbar select { width: 100%; min-height: 38px; border: 1px solid #dfe3e9; border-radius: 9px; padding: 0 11px; background: #fff; color: #26313f; }
  166. .task-filterbar { display: grid; grid-template-columns: minmax(240px, 1fr) 210px 140px auto auto; gap: 10px; align-items: center; }
  167. .task-filterbar > span { color: #7b8592; font-size: 12px; justify-self: end; }
  168. .unified-task-list { display: grid; gap: 10px; }
  169. .unified-task-card { position: relative; display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 15px; align-items: stretch; padding: 17px 18px; background: #fff; border: 1px solid #e5e8ed; border-radius: 14px; box-shadow: 0 7px 22px rgba(32, 42, 55, .035); }
  170. .unified-task-card.overdue { border-color: #f0c5c2; background: #fffafa; }
  171. .unified-task-card.candidate { border-style: dashed; background: #fbfbfe; }
  172. .task-priority { width: 4px; border-radius: 999px; background: #91a0af; }
  173. .task-priority.low { background: #a9b7c4; }
  174. .task-priority.medium { background: #4c8bea; }
  175. .task-priority.high { background: #f0993c; }
  176. .task-priority.urgent { background: #d7524d; }
  177. .unified-task-main { min-width: 0; display: grid; gap: 8px; }
  178. .unified-task-main > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
  179. .unified-task-main > header > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
  180. .unified-task-main > header small { color: #89919d; white-space: nowrap; }
  181. .unified-task-main h4 { margin: 0; color: #1e2937; font-size: 15px; line-height: 1.45; }
  182. .unified-task-main p { margin: 0; color: #67717f; font-size: 12px; line-height: 1.6; }
  183. .unified-task-main footer { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #8a929d; font-size: 11px; }
  184. .task-source, .task-status, .task-audience { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; padding: 0 9px; font-size: 10px; font-weight: 650; }
  185. .task-source { color: #40546c; background: #edf2f8; }
  186. .task-source.diagnosis { color: #276b4d; background: #e9f6ef; }
  187. .task-status { color: #3565a4; background: #edf5ff; }
  188. .task-status.done { color: #2d7a4d; background: #edf8f1; }
  189. .task-status.blocked, .task-status.dismissed { color: #8a5c22; background: #fff5e8; }
  190. .task-status.suggested { color: #6953a5; background: #f1edfb; }
  191. .task-audience { color: #237344; background: #eaf7ee; }
  192. .unified-task-actions { min-width: 135px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: 7px; }
  193. .unified-task-actions > span, .task-promoted { color: #76808d; font-size: 11px; align-self: center; }
  194. .diagnosis-feedback-summary { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 2.2fr); gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid #d9e7df; border-radius: 12px; background: #f7fbf9; }
  195. .diagnosis-feedback-summary > header { display: grid; gap: 3px; }
  196. .diagnosis-feedback-summary > header strong { color: #244d3a; font-size: 13px; }
  197. .diagnosis-feedback-summary > header span { color: #72847a; font-size: 11px; }
  198. .diagnosis-feedback-summary > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  199. .diagnosis-feedback-summary > div > span { min-width: 0; display: grid; gap: 2px; color: #748078; font-size: 10px; }
  200. .diagnosis-feedback-summary > div strong { color: #263c31; font-size: 17px; }
  201. .diagnosis-feedback-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 1fr) auto; gap: 10px; align-items: end; margin-top: 4px; padding: 12px; border: 1px solid #dfe8e3; border-radius: 10px; background: #f8fbf9; }
  202. .diagnosis-feedback-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  203. .diagnosis-feedback-head > div { display: grid; gap: 2px; }
  204. .diagnosis-feedback-head strong { color: #2a4337; font-size: 12px; }
  205. .diagnosis-feedback-head span, .diagnosis-feedback-head > em { color: #7a8880; font-size: 10px; font-style: normal; }
  206. .diagnosis-outcome { border-radius: 999px; padding: 4px 8px; font-weight: 650; }
  207. .diagnosis-outcome.effective { color: #217148; background: #e6f5ec; }
  208. .diagnosis-outcome.partially_effective { color: #7b6421; background: #fff7df; }
  209. .diagnosis-outcome.ineffective { color: #a3473f; background: #fff0ee; }
  210. .diagnosis-outcome.unknown { color: #52616d; background: #edf1f3; }
  211. .diagnosis-outcome-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d8e1dc; border-radius: 8px; overflow: hidden; background: #fff; }
  212. .diagnosis-outcome-options label { min-width: 0; min-height: 40px; display: grid; place-items: center; padding: 0 8px; border-right: 1px solid #e2e8e4; color: #59685f; font-size: 11px; cursor: pointer; transition: color .18s, background-color .18s; }
  213. .diagnosis-outcome-options label:last-child { border-right: 0; }
  214. .diagnosis-outcome-options label:hover { background: #f0f7f3; }
  215. .diagnosis-outcome-options label.selected, .diagnosis-outcome-options label:has(input:checked) { color: #216d48; background: #e7f5ed; font-weight: 650; }
  216. .diagnosis-outcome-options input { position: absolute; opacity: 0; pointer-events: none; }
  217. .diagnosis-outcome-options label:focus-within { outline: 2px solid #4d8f70; outline-offset: -2px; }
  218. .diagnosis-feedback-note { min-width: 0; display: grid; gap: 4px; }
  219. .diagnosis-feedback-note > span { color: #66766d; font-size: 10px; }
  220. .diagnosis-feedback-note input { width: 100%; min-height: 40px; border: 1px solid #d8e1dc; border-radius: 8px; padding: 0 10px; background: #fff; color: #26352e; }
  221. .diagnosis-feedback-form > .btn { min-height: 40px; }
  222. @media (max-width: 1500px) {
  223. .task-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  224. .task-create-form > div { grid-column: 1 / -1; }
  225. .task-filterbar { grid-template-columns: minmax(200px, 1fr) 180px 130px auto; }
  226. .task-filterbar > span { display: none; }
  227. .diagnosis-feedback-form { grid-template-columns: 1fr auto; }
  228. .diagnosis-outcome-options { grid-column: 1 / -1; }
  229. }
  230. @media (max-width: 760px) {
  231. .task-stat-row, .task-policy-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  232. .task-create-form, .task-filterbar { grid-template-columns: 1fr; }
  233. .unified-task-card { grid-template-columns: 4px minmax(0, 1fr); }
  234. .unified-task-actions { grid-column: 2; justify-content: flex-start; }
  235. .unified-task-main > header { align-items: flex-start; flex-direction: column; gap: 6px; }
  236. .diagnosis-feedback-summary { grid-template-columns: 1fr; }
  237. .diagnosis-feedback-summary > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  238. .diagnosis-feedback-form { grid-template-columns: 1fr; }
  239. .diagnosis-outcome-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  240. .diagnosis-outcome-options label { min-height: 44px; border-bottom: 1px solid #e2e8e4; }
  241. .diagnosis-feedback-note, .diagnosis-feedback-form > .btn { grid-column: 1; }
  242. }
  243. * { box-sizing: border-box; }
  244. html, body {
  245. margin: 0;
  246. padding: 0;
  247. height: 100%;
  248. font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  249. background: var(--page-bg);
  250. color: var(--text-primary);
  251. }
  252. .app {
  253. display: flex;
  254. min-height: 100vh;
  255. }
  256. .sidebar {
  257. width: 220px;
  258. background: var(--sidebar-bg);
  259. display: flex;
  260. flex-direction: column;
  261. position: fixed;
  262. top: 0;
  263. left: 0;
  264. bottom: 0;
  265. z-index: 100;
  266. transition: transform 0.25s ease;
  267. color: #fff;
  268. }
  269. .sidebar.hidden {
  270. transform: translateX(-100%);
  271. }
  272. .sidebar-backdrop { display: none; }
  273. .brand {
  274. display: flex;
  275. align-items: center;
  276. gap: 10px;
  277. padding: 22px 18px;
  278. border-bottom: 1px solid rgba(255,255,255,0.08);
  279. }
  280. .brand-icon {
  281. width: 36px;
  282. height: 36px;
  283. background: rgba(250, 140, 22, 0.18);
  284. color: var(--brand);
  285. border-radius: var(--radius-sm);
  286. display: flex;
  287. align-items: center;
  288. justify-content: center;
  289. }
  290. .brand-icon svg { width: 22px; height: 22px; }
  291. .brand-text {
  292. font-size: 17px;
  293. font-weight: 700;
  294. letter-spacing: 0.5px;
  295. }
  296. .nav {
  297. padding: 16px 12px;
  298. overflow-y: auto;
  299. flex: 1;
  300. }
  301. .nav-group { margin-bottom: 24px; }
  302. .nav-label {
  303. font-size: 11px;
  304. color: rgba(255,255,255,0.45);
  305. text-transform: uppercase;
  306. letter-spacing: 1px;
  307. padding: 0 12px;
  308. margin-bottom: 8px;
  309. }
  310. .nav-item {
  311. display: flex;
  312. align-items: center;
  313. gap: 10px;
  314. padding: 11px 12px;
  315. border-radius: var(--radius-sm);
  316. color: rgba(255,255,255,0.75);
  317. text-decoration: none;
  318. font-size: 14px;
  319. transition: all 0.2s;
  320. margin-bottom: 4px;
  321. }
  322. .nav-item svg {
  323. width: 20px;
  324. height: 20px;
  325. fill: currentColor;
  326. flex-shrink: 0;
  327. }
  328. .nav-item:hover {
  329. color: #fff;
  330. background: rgba(255,255,255,0.08);
  331. }
  332. .nav-item.active {
  333. color: #fff;
  334. background: var(--brand);
  335. box-shadow: 0 4px 14px rgba(250, 140, 22, 0.35);
  336. }
  337. .main {
  338. flex: 1;
  339. min-width: 0;
  340. margin-left: 220px;
  341. display: flex;
  342. flex-direction: column;
  343. min-height: 100vh;
  344. }
  345. .topbar {
  346. height: 68px;
  347. background: var(--panel-bg);
  348. border-bottom: 1px solid var(--border);
  349. display: flex;
  350. align-items: center;
  351. gap: 16px;
  352. padding: 0 32px;
  353. position: sticky;
  354. top: 0;
  355. z-index: 50;
  356. box-shadow: var(--shadow);
  357. }
  358. .menu-btn {
  359. display: none;
  360. background: none;
  361. border: none;
  362. padding: 6px;
  363. cursor: pointer;
  364. color: var(--text-secondary);
  365. border-radius: var(--radius-sm);
  366. }
  367. .menu-btn:hover { background: var(--brand-bg); color: var(--brand); }
  368. .menu-btn svg { width: 22px; height: 22px; fill: currentColor; }
  369. .page-title {
  370. font-size: 20px;
  371. font-weight: 700;
  372. margin: 0;
  373. flex: 1;
  374. }
  375. .account-switcher {
  376. position: relative;
  377. }
  378. .account-btn {
  379. display: flex;
  380. align-items: center;
  381. gap: 8px;
  382. background: var(--page-bg);
  383. border: 1px solid var(--border);
  384. border-radius: var(--radius-sm);
  385. padding: 8px 12px;
  386. cursor: pointer;
  387. font-size: 14px;
  388. color: var(--text-primary);
  389. transition: all 0.15s;
  390. }
  391. .account-btn:hover { border-color: var(--brand); background: var(--brand-bg); }
  392. .account-dot {
  393. width: 8px;
  394. height: 8px;
  395. border-radius: 50%;
  396. }
  397. .account-dot.online { background: var(--success); box-shadow: 0 0 0 3px rgba(82,196,26,0.15); }
  398. .account-dot.offline { background: var(--text-muted); }
  399. .account-chevron { width: 16px; height: 16px; fill: var(--text-muted); }
  400. .account-dropdown {
  401. position: absolute;
  402. top: calc(100% + 8px);
  403. right: 0;
  404. min-width: 220px;
  405. background: var(--panel-bg);
  406. border: 1px solid var(--border);
  407. border-radius: var(--radius-md);
  408. box-shadow: var(--shadow-hover);
  409. padding: 8px 0;
  410. display: none;
  411. z-index: 60;
  412. animation: scaleIn 0.2s ease;
  413. }
  414. .account-dropdown.open { display: block; }
  415. .dropdown-header {
  416. padding: 8px 16px;
  417. font-size: 12px;
  418. color: var(--text-muted);
  419. text-transform: uppercase;
  420. letter-spacing: 0.5px;
  421. }
  422. .account-list { max-height: 240px; overflow-y: auto; }
  423. .account-option {
  424. display: flex;
  425. align-items: center;
  426. gap: 10px;
  427. width: 100%;
  428. padding: 10px 16px;
  429. border: none;
  430. background: none;
  431. cursor: pointer;
  432. text-align: left;
  433. font-size: 14px;
  434. color: var(--text-primary);
  435. transition: background 0.15s;
  436. }
  437. .account-option:hover { background: var(--brand-bg); }
  438. .account-option.active { color: var(--brand); font-weight: 600; }
  439. .account-option .account-info {
  440. display: flex;
  441. flex-direction: column;
  442. flex: 1;
  443. min-width: 0;
  444. }
  445. .account-option .account-info strong {
  446. font-weight: 600;
  447. white-space: nowrap;
  448. overflow: hidden;
  449. text-overflow: ellipsis;
  450. }
  451. .account-option .account-info span {
  452. font-size: 12px;
  453. color: var(--text-muted);
  454. }
  455. .dropdown-divider {
  456. height: 1px;
  457. background: var(--border);
  458. margin: 8px 0;
  459. }
  460. .dropdown-item {
  461. display: flex;
  462. align-items: center;
  463. gap: 10px;
  464. width: 100%;
  465. padding: 10px 16px;
  466. border: none;
  467. background: none;
  468. cursor: pointer;
  469. font-size: 14px;
  470. color: var(--text-primary);
  471. transition: background 0.15s;
  472. }
  473. .dropdown-item:hover { background: var(--brand-bg); }
  474. .dropdown-item svg { width: 18px; height: 18px; fill: currentColor; }
  475. .content {
  476. flex: 1;
  477. padding: 28px 32px 48px;
  478. max-width: 1480px;
  479. width: 100%;
  480. margin: 0 auto;
  481. }
  482. /* ==================== Intelligent Conversations ==================== */
  483. .agent-page {
  484. --agent-brand: #5b63d3;
  485. --agent-brand-strong: #424aa8;
  486. --agent-brand-soft: #eef0ff;
  487. --agent-page-bg: #f4f6f8;
  488. --agent-panel: #ffffff;
  489. --agent-panel-muted: #f8f9fb;
  490. --agent-ink: #202632;
  491. --agent-text-secondary: #5d6677;
  492. --agent-text-muted: #8991a0;
  493. --agent-line: #dde2ea;
  494. --agent-focus: #6b73e6;
  495. --agent-success: #258066;
  496. --agent-success-soft: #eaf7f2;
  497. --agent-warning: #b7792b;
  498. --agent-warning-soft: #fff7e8;
  499. --agent-error: #bf4c45;
  500. --agent-error-soft: #fff2f1;
  501. --agent-soft: var(--agent-panel-muted);
  502. --agent-green: var(--agent-brand);
  503. --agent-green-soft: var(--agent-brand-soft);
  504. --agent-orange: var(--agent-warning);
  505. height: calc(100dvh - 144px);
  506. min-height: 0;
  507. display: flex;
  508. flex-direction: column;
  509. gap: 10px;
  510. overflow: hidden;
  511. }
  512. .agent-page[data-theme="xiaoniu"] {
  513. --agent-brand: #2369c8;
  514. --agent-brand-strong: #174f9b;
  515. --agent-brand-soft: #eaf2fc;
  516. --agent-focus: #367ed9;
  517. }
  518. .agent-commandbar {
  519. position: sticky;
  520. top: 0;
  521. z-index: 20;
  522. flex: 0 0 auto;
  523. min-height: 64px;
  524. display: grid;
  525. grid-template-columns: minmax(170px, 1fr) auto auto auto;
  526. align-items: center;
  527. gap: 12px;
  528. padding: 10px 12px;
  529. border: 1px solid var(--agent-line);
  530. border-radius: 8px;
  531. background: color-mix(in srgb, var(--agent-panel) 96%, transparent);
  532. box-shadow: 0 6px 18px rgba(31, 38, 51, .07);
  533. backdrop-filter: blur(12px);
  534. }
  535. .agent-command-account { min-width: 0; display: flex; align-items: center; gap: 10px; }
  536. .agent-command-account > div { min-width: 0; }
  537. .agent-command-account strong,
  538. .agent-command-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  539. .agent-command-account strong { color: var(--agent-ink); font-size: 12px; }
  540. .agent-command-account small { margin-top: 3px; color: var(--agent-text-muted); font-size: 9px; }
  541. .agent-command-kpis { display: flex; align-items: stretch; gap: 5px; }
  542. .agent-command-kpis span { min-width: 55px; padding: 5px 7px; border-radius: 6px; color: var(--agent-text-secondary); background: var(--agent-panel-muted); font-size: 8px; text-align: center; white-space: nowrap; }
  543. .agent-command-kpis b { display: block; color: var(--agent-ink); font-size: 13px; }
  544. .agent-command-kpis span.attention { color: var(--agent-warning); background: var(--agent-warning-soft); }
  545. .agent-command-kpis span.danger { color: var(--agent-error); background: var(--agent-error-soft); }
  546. .agent-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  547. .agent-command-actions .btn { min-height: 32px; padding: 6px 9px; border-radius: 6px; font-size: 9px; white-space: nowrap; }
  548. .agent-command-actions .btn:not(.btn-secondary) { border-color: var(--agent-brand); background: var(--agent-brand); }
  549. .agent-command-actions .has-alert { color: var(--agent-error); border-color: color-mix(in srgb, var(--agent-error) 34%, var(--agent-line)); background: var(--agent-error-soft); }
  550. .agent-commandbar .agent-mode-switch { padding: 3px; border-radius: 7px; background: var(--agent-panel-muted); }
  551. .agent-commandbar .agent-mode-btn { min-height: 30px; padding: 5px 8px; border-radius: 5px; font-size: 9px; white-space: nowrap; }
  552. .agent-commandbar .agent-mode-btn.active { color: var(--agent-brand-strong); background: var(--agent-panel); box-shadow: 0 1px 5px rgba(31, 38, 51, .09); }
  553. .agent-commandbar .agent-mode-btn.danger.active { color: var(--agent-error); background: var(--agent-error-soft); }
  554. .agent-drawer-backdrop { position: fixed; inset: 68px 0 0 220px; z-index: 70; border: 0; background: rgba(24, 29, 41, .26); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  555. .agent-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
  556. .agent-drawer { position: fixed; top: 68px; right: 0; bottom: 0; z-index: 80; width: min(440px, calc(100vw - 220px)); display: grid; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--agent-line); background: var(--agent-panel); box-shadow: -18px 0 44px rgba(24, 30, 42, .16); transform: translateX(102%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  557. .agent-drawer.open { transform: translateX(0); visibility: visible; }
  558. .agent-drawer > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--agent-line); }
  559. .agent-drawer > header strong,
  560. .agent-drawer > header span { display: block; }
  561. .agent-drawer > header strong { color: var(--agent-ink); font-size: 15px; }
  562. .agent-drawer > header span { margin-top: 3px; color: var(--agent-text-muted); font-size: 9px; }
  563. .agent-drawer > header button { min-height: 32px; padding: 0 10px; border: 1px solid var(--agent-line); border-radius: 6px; color: var(--agent-text-secondary); background: var(--agent-panel); cursor: pointer; }
  564. .agent-drawer-body { min-height: 0; padding: 16px; overflow-y: auto; background: var(--agent-page-bg); }
  565. .agent-connection-summary { margin-bottom: 12px; padding: 14px; border: 1px solid var(--agent-line); border-radius: 8px; background: var(--agent-panel); }
  566. .agent-connection-summary > div { display: flex; align-items: center; gap: 9px; }
  567. .agent-connection-summary > div strong { color: var(--agent-ink); font-size: 12px; }
  568. .agent-connection-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
  569. .agent-connection-summary dl div { min-width: 0; padding: 8px; border-radius: 6px; background: var(--agent-panel-muted); }
  570. .agent-connection-summary dt { color: var(--agent-text-muted); font-size: 8px; }
  571. .agent-connection-summary dd { margin: 3px 0 0; overflow: hidden; color: var(--agent-text-secondary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  572. .agent-intake-form { display: grid; gap: 11px; padding: 14px; border: 1px solid var(--agent-line); border-radius: 8px; background: var(--agent-panel); }
  573. .agent-drawer-section-heading strong,
  574. .agent-drawer-section-heading span { display: block; }
  575. .agent-drawer-section-heading strong { color: var(--agent-ink); font-size: 12px; }
  576. .agent-drawer-section-heading span { margin-top: 3px; color: var(--agent-text-muted); font-size: 9px; }
  577. .agent-field { display: grid; gap: 5px; color: var(--agent-text-secondary); font-size: 9px; }
  578. .agent-field select,
  579. .agent-field textarea { width: 100%; border: 1px solid var(--agent-line); border-radius: 6px; outline: 0; padding: 8px 9px; color: var(--agent-ink); background: var(--agent-panel); font: inherit; font-size: 10px; line-height: 1.45; }
  580. .agent-field textarea { resize: vertical; min-height: 76px; }
  581. .agent-field select:focus,
  582. .agent-field textarea:focus { border-color: var(--agent-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--agent-focus) 16%, transparent); }
  583. .agent-toggle-field { display: flex; align-items: flex-start; gap: 8px; color: var(--agent-text-secondary); }
  584. .agent-toggle-field input { margin-top: 2px; accent-color: var(--agent-brand); }
  585. .agent-toggle-field strong,
  586. .agent-toggle-field small { display: block; }
  587. .agent-toggle-field strong { font-size: 10px; }
  588. .agent-toggle-field small { margin-top: 3px; color: var(--agent-text-muted); font-size: 8px; }
  589. .agent-policy-warning,
  590. .agent-drawer-error { padding: 9px 10px; border-radius: 6px; color: var(--agent-warning); background: var(--agent-warning-soft); font-size: 8px; line-height: 1.5; }
  591. .agent-policy-warning.danger,
  592. .agent-drawer-error { color: var(--agent-error); background: var(--agent-error-soft); }
  593. .agent-intake-form > .btn { min-height: 36px; border-color: var(--agent-brand); background: var(--agent-brand); }
  594. .agent-drawer-boundary { margin-top: 12px; padding: 13px; border: 1px solid var(--agent-line); border-radius: 8px; background: var(--agent-panel); }
  595. .agent-drawer-boundary strong { color: var(--agent-ink); font-size: 10px; }
  596. .agent-drawer-boundary p { margin: 5px 0 0; color: var(--agent-text-secondary); font-size: 9px; line-height: 1.55; }
  597. .agent-drawer .response-monitor { margin: 0; border-radius: 8px; box-shadow: none; }
  598. .agent-drawer .response-monitor-body { grid-template-columns: 1fr; padding: 12px; }
  599. .agent-drawer .response-monitor-header { align-items: stretch; flex-direction: column; padding: 12px; }
  600. .agent-drawer .response-monitor-kpis { width: 100%; }
  601. .agent-drawer .response-monitor-kpis span { flex: 1; }
  602. .agent-drawer .response-reminder { grid-template-columns: 1fr; }
  603. .agent-loading {
  604. min-height: 420px;
  605. display: grid;
  606. place-items: center;
  607. color: var(--text-muted);
  608. }
  609. .agent-hero {
  610. position: relative;
  611. overflow: hidden;
  612. display: flex;
  613. align-items: center;
  614. justify-content: space-between;
  615. gap: 32px;
  616. padding: 30px 34px;
  617. margin-bottom: 16px;
  618. color: #fff;
  619. border-radius: 18px;
  620. background:
  621. radial-gradient(circle at 80% -20%, rgba(250,140,22,.35), transparent 38%),
  622. linear-gradient(125deg, #152622 0%, #164c3e 58%, #1a6e55 100%);
  623. box-shadow: 0 20px 44px rgba(20, 67, 54, .18);
  624. }
  625. .agent-hero::after {
  626. content: '';
  627. position: absolute;
  628. width: 220px;
  629. height: 220px;
  630. border: 1px solid rgba(255,255,255,.14);
  631. border-radius: 50%;
  632. right: 32%;
  633. top: -150px;
  634. }
  635. .agent-eyebrow {
  636. margin-bottom: 8px;
  637. color: #a9dec9;
  638. font-size: 11px;
  639. font-weight: 800;
  640. letter-spacing: 1.8px;
  641. }
  642. .agent-hero h2 {
  643. margin: 0 0 8px;
  644. font-size: 27px;
  645. line-height: 1.3;
  646. letter-spacing: .2px;
  647. }
  648. .agent-hero p {
  649. margin: 0;
  650. color: rgba(255,255,255,.72);
  651. font-size: 14px;
  652. }
  653. .agent-safety-card {
  654. position: relative;
  655. z-index: 1;
  656. min-width: 330px;
  657. display: grid;
  658. grid-template-columns: auto 1fr auto;
  659. align-items: center;
  660. gap: 12px;
  661. padding: 14px 16px;
  662. border: 1px solid rgba(255,255,255,.14);
  663. border-radius: 14px;
  664. background: rgba(255,255,255,.09);
  665. backdrop-filter: blur(14px);
  666. }
  667. .agent-safety-card .btn {
  668. padding: 8px 12px;
  669. white-space: nowrap;
  670. }
  671. .agent-safety-actions {
  672. display: flex;
  673. flex-direction: column;
  674. align-items: stretch;
  675. gap: 6px;
  676. }
  677. .agent-safety-card .btn-secondary {
  678. color: #fff;
  679. background: transparent;
  680. border-color: rgba(255,255,255,.28);
  681. }
  682. .agent-safety-card strong,
  683. .agent-safety-card small {
  684. display: block;
  685. }
  686. .agent-safety-card strong { font-size: 14px; }
  687. .agent-safety-card small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 11px; }
  688. .agent-live-dot {
  689. width: 10px;
  690. height: 10px;
  691. border-radius: 50%;
  692. background: #8d9b96;
  693. box-shadow: 0 0 0 5px rgba(141,155,150,.14);
  694. }
  695. .agent-live-dot.online {
  696. background: #5de0a4;
  697. box-shadow: 0 0 0 5px rgba(93,224,164,.14), 0 0 16px rgba(93,224,164,.4);
  698. }
  699. .agent-modebar {
  700. display: grid;
  701. grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  702. align-items: center;
  703. gap: 20px;
  704. padding: 14px 18px;
  705. margin-bottom: 16px;
  706. border: 1px solid var(--agent-line);
  707. border-radius: 14px;
  708. background: #fff;
  709. box-shadow: 0 4px 16px rgba(27,49,42,.05);
  710. }
  711. .agent-mode-copy strong,
  712. .agent-mode-copy span { display: block; }
  713. .agent-mode-copy strong { font-size: 14px; }
  714. .agent-mode-copy span { margin-top: 2px; color: var(--text-muted); font-size: 11px; }
  715. .agent-mode-switch {
  716. display: flex;
  717. gap: 4px;
  718. padding: 4px;
  719. border-radius: 10px;
  720. background: #f1f3f2;
  721. }
  722. .agent-mode-btn {
  723. padding: 8px 15px;
  724. border: 0;
  725. border-radius: 8px;
  726. background: transparent;
  727. color: #6d7773;
  728. font: inherit;
  729. font-size: 12px;
  730. cursor: pointer;
  731. }
  732. .agent-mode-btn:hover { color: var(--agent-green); }
  733. .agent-mode-btn.active { color: var(--agent-green); background: #fff; box-shadow: 0 2px 8px rgba(20,60,48,.1); font-weight: 700; }
  734. .agent-mode-btn.danger.active { color: #b44b26; background: #fff1eb; }
  735. .agent-guard {
  736. justify-self: end;
  737. color: #78827e;
  738. font-size: 11px;
  739. }
  740. .agent-guard span {
  741. margin-right: 7px;
  742. padding: 4px 7px;
  743. color: var(--agent-green);
  744. border-radius: 5px;
  745. background: var(--agent-green-soft);
  746. font-weight: 700;
  747. }
  748. .response-monitor {
  749. margin: 0 0 16px;
  750. overflow: hidden;
  751. border: 1px solid #dfe8e4;
  752. border-radius: 16px;
  753. background: #fff;
  754. box-shadow: 0 6px 20px rgba(27,49,42,.06);
  755. }
  756. .response-monitor.has-urgent { border-color: #efc1ad; }
  757. .response-monitor-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid #e8eeeb; background: linear-gradient(135deg, #f8fbfa, #fff); }
  758. .response-monitor.has-urgent .response-monitor-header { background: linear-gradient(135deg, #fff7f2, #fff); }
  759. .response-monitor-header > div:first-child span,
  760. .response-monitor-header > div:first-child strong,
  761. .response-monitor-header > div:first-child small { display: block; }
  762. .response-monitor-header > div:first-child span { color: #44816b; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
  763. .response-monitor-header > div:first-child strong { margin-top: 4px; color: #33443e; font-size: 15px; }
  764. .response-monitor-header > div:first-child small { margin-top: 3px; color: #89958f; font-size: 9px; }
  765. .response-monitor-kpis { display: flex; gap: 7px; }
  766. .response-monitor-kpis span { min-width: 70px; padding: 8px 10px; border-radius: 10px; color: #708079; background: #eef4f1; font-size: 8px; text-align: center; }
  767. .response-monitor-kpis b { display: block; color: #2f745c; font-size: 15px; }
  768. .response-monitor-kpis span.danger { color: #9b4c2e; background: #fff0e9; }
  769. .response-monitor-kpis span.danger b { color: #c85e39; }
  770. .response-monitor-body { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr); gap: 16px; padding: 15px 18px 18px; }
  771. .response-monitor-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
  772. .response-monitor-section-title strong { color: #4a5b54; font-size: 10px; }
  773. .response-monitor-section-title span { color: #96a19c; font-size: 8px; }
  774. .response-scope-list { display: flex; flex-wrap: wrap; gap: 6px; }
  775. .response-scope-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #e1e9e5; border-radius: 9px; color: #5e6e67; background: #fafcfb; font-size: 8px; }
  776. .response-scope-chip i { display: grid; place-items: center; min-width: 24px; height: 19px; padding: 0 5px; border-radius: 6px; color: #2f795f; background: #e7f3ed; font-size: 7px; font-style: normal; font-weight: 800; }
  777. .response-scope-chip em { color: #98a39e; font-size: 7px; font-style: normal; }
  778. .response-scope-chip.overdue { border-color: #f0c8b6; background: #fff8f4; }
  779. .response-scope-chip.awaiting_sync { border-style: dashed; }
  780. .response-reminder-list { min-width: 0; }
  781. .response-reminder { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(160px, 1fr) auto; align-items: center; gap: 12px; margin-top: 6px; padding: 9px 10px; border: 1px solid #ecd6a7; border-left: 3px solid #d4a548; border-radius: 10px; background: #fffaf0; }
  782. .response-reminder.urgent { border-color: #efc0ab; border-left-color: #d9633c; background: #fff5f0; }
  783. .response-reminder > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
  784. .response-reminder > div i { width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #996c25; background: #f5e5bc; font-size: 8px; font-style: normal; font-weight: 800; }
  785. .response-reminder.urgent > div i { color: #a84c2d; background: #f8d9cb; }
  786. .response-reminder > div strong { overflow: hidden; color: #536059; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  787. .response-reminder > div em { padding: 2px 5px; border-radius: 6px; color: #9b712c; background: rgba(255,255,255,.8); font-size: 7px; font-style: normal; }
  788. .response-reminder.urgent > div em { color: #b34e2c; }
  789. .response-reminder p { margin: 0; overflow: hidden; color: #79847f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  790. .response-reminder footer { display: flex; align-items: center; gap: 8px; }
  791. .response-reminder footer span { color: #a1603d; font-size: 8px; font-weight: 700; white-space: nowrap; }
  792. .response-reminder footer .btn { padding: 5px 8px; font-size: 8px; }
  793. .response-monitor-empty { display: block; padding: 12px; border-radius: 9px; color: #8d9993; background: #f5f8f6; font-size: 9px; text-align: center; }
  794. .response-monitor-empty.success { color: #3c8067; background: #edf7f2; }
  795. .agent-runtime-alert {
  796. display: flex;
  797. align-items: center;
  798. gap: 12px;
  799. flex: 0 0 auto;
  800. margin: 0;
  801. padding: 12px 16px;
  802. border: 1px solid #f2c7b4;
  803. border-radius: 12px;
  804. color: #8b4429;
  805. background: #fff5f0;
  806. font-size: 11px;
  807. }
  808. .agent-runtime-alert strong { flex: 0 0 auto; }
  809. .agent-runtime-alert span { line-height: 1.5; }
  810. .agent-runtime-alert.notice { border-color: #b9dfcf; color: #256b54; background: #eff9f4; }
  811. .agent-workspace {
  812. flex: 1 1 auto;
  813. min-height: 0;
  814. display: grid;
  815. grid-template-columns: 245px minmax(420px, 1fr) 330px;
  816. border: 1px solid var(--agent-line);
  817. border-radius: 8px;
  818. overflow: hidden;
  819. background: var(--agent-panel);
  820. box-shadow: 0 12px 38px rgba(24,54,45,.08);
  821. }
  822. .agent-conversation-list,
  823. .agent-insight-panel {
  824. min-width: 0;
  825. background: #fbfcfb;
  826. }
  827. .agent-conversation-list { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border-right: 1px solid var(--agent-line); }
  828. .agent-insight-panel { min-height: 0; overflow-y: auto; border-left: 1px solid var(--agent-line); overscroll-behavior: contain; }
  829. .agent-panel-heading {
  830. min-height: 72px;
  831. display: flex;
  832. align-items: center;
  833. justify-content: space-between;
  834. padding: 16px 18px;
  835. border-bottom: 1px solid var(--agent-line);
  836. }
  837. .agent-panel-heading strong,
  838. .agent-panel-heading small { display: block; }
  839. .agent-panel-heading strong { color: var(--agent-ink); font-size: 14px; }
  840. .agent-panel-heading small { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
  841. .agent-count { min-width: 24px; padding: 4px 7px; border-radius: 12px; text-align: center; color: var(--agent-green); background: var(--agent-green-soft); font-size: 11px; font-weight: 800; }
  842. .agent-list-tabs {
  843. display: grid;
  844. grid-template-columns: repeat(2, minmax(0, 1fr));
  845. gap: 5px;
  846. padding: 8px;
  847. border-bottom: 1px solid var(--agent-line);
  848. background: #f5f8f6;
  849. }
  850. .agent-list-tabs button {
  851. min-width: 0;
  852. display: flex;
  853. align-items: center;
  854. justify-content: center;
  855. gap: 5px;
  856. min-height: 34px;
  857. padding: 6px;
  858. border: 1px solid transparent;
  859. border-radius: 7px;
  860. color: #69756f;
  861. background: transparent;
  862. font: inherit;
  863. font-size: 10px;
  864. cursor: pointer;
  865. }
  866. .agent-list-tabs button.active { color: #245f4d; border-color: #cfe1d9; background: #fff; box-shadow: 0 2px 7px rgba(30,65,54,.07); font-weight: 700; }
  867. .agent-list-tabs b { min-width: 18px; padding: 2px 4px; border-radius: 8px; color: #68746f; background: #e5ebe8; font-size: 8px; }
  868. .agent-list-tabs button.active b { color: #fff; background: var(--agent-green); }
  869. .agent-list-scroll { min-height: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
  870. .agent-conversation-item {
  871. width: 100%;
  872. display: grid;
  873. grid-template-columns: auto minmax(0, 1fr) auto;
  874. align-items: start;
  875. gap: 10px;
  876. padding: 12px 10px;
  877. margin-bottom: 5px;
  878. border: 0;
  879. border-radius: 10px;
  880. text-align: left;
  881. color: var(--agent-ink);
  882. background: transparent;
  883. cursor: pointer;
  884. }
  885. .agent-conversation-item:hover { background: #f1f6f3; }
  886. .agent-conversation-item.active { background: var(--agent-green-soft); box-shadow: inset 3px 0 0 var(--agent-green); }
  887. .agent-conversation-item.group.active { background: #fff5ea; box-shadow: inset 3px 0 0 #d97b2f; }
  888. .agent-avatar {
  889. width: 34px;
  890. height: 34px;
  891. display: grid;
  892. place-items: center;
  893. color: #fff;
  894. border-radius: 11px;
  895. background: linear-gradient(145deg, #2f9b78, #145d49);
  896. font-size: 13px;
  897. font-weight: 800;
  898. }
  899. .agent-avatar.group { color: #8a4f20; background: #f4d8bd; }
  900. .agent-conversation-copy { min-width: 0; }
  901. .agent-conversation-name { min-width: 0; display: flex; align-items: center; gap: 5px; }
  902. .agent-conversation-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  903. .agent-channel-badge { flex: 0 0 auto; padding: 2px 4px; border-radius: 4px; font-size: 7px; font-style: normal; font-weight: 800; }
  904. .agent-channel-badge.private { color: #267057; background: #e6f3ed; }
  905. .agent-channel-badge.group { color: #9a571f; background: #fff0df; }
  906. .agent-conversation-copy strong,
  907. .agent-conversation-copy small,
  908. .agent-conversation-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  909. .agent-conversation-copy strong { font-size: 12px; }
  910. .agent-conversation-copy small { margin-top: 4px; color: #76817d; font-size: 10px; }
  911. .agent-conversation-copy em { width: max-content; max-width: 100%; margin-top: 6px; padding: 2px 6px; border-radius: 4px; color: var(--agent-green); background: rgba(19,122,91,.08); font-size: 9px; font-style: normal; }
  912. .agent-conversation-item time { color: #9aa29f; font-size: 9px; white-space: nowrap; }
  913. .agent-conversation-meta { display: grid; justify-items: end; gap: 5px; }
  914. .agent-conversation-meta i { padding: 2px 5px; border-radius: 4px; color: var(--agent-warning); background: var(--agent-warning-soft); font-size: 7px; font-style: normal; white-space: nowrap; }
  915. .agent-conversation-meta i.overdue { color: var(--agent-error); background: var(--agent-error-soft); }
  916. .agent-conversation-meta i.pending { color: var(--agent-brand-strong); background: var(--agent-brand-soft); }
  917. .agent-chat-panel {
  918. min-width: 0;
  919. min-height: 0;
  920. display: grid;
  921. grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  922. overflow: hidden;
  923. background: var(--agent-panel);
  924. }
  925. .agent-chat-panel > * { min-width: 0; }
  926. .agent-chat-panel.group-mode { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  927. .agent-chat-header {
  928. min-height: 72px;
  929. display: flex;
  930. align-items: center;
  931. justify-content: space-between;
  932. gap: 16px;
  933. padding: 13px 20px;
  934. border-bottom: 1px solid var(--agent-line);
  935. }
  936. .agent-chat-header strong,
  937. .agent-chat-header span { display: block; }
  938. .agent-chat-header strong { color: var(--agent-ink); font-size: 14px; }
  939. .agent-chat-header span { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
  940. .agent-chat-header .btn { padding: 7px 11px; font-size: 11px; }
  941. .agent-chat-header.group { background: #fffaf4; }
  942. .agent-group-mode-danger.active { color: #fff; border-color: #b94b3c; background: #b94b3c; }
  943. .agent-group-mode-danger.active:hover { background: #9f3d31; }
  944. .agent-group-auto-send { border-color: #b94b3c !important; background: #b94b3c !important; }
  945. .agent-group-auto-send:hover { background: #9f3d31 !important; }
  946. .agent-flow {
  947. padding: 12px 20px 13px;
  948. border-bottom: 1px solid var(--agent-line);
  949. background: #fbfcfb;
  950. }
  951. .agent-flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  952. .agent-flow-heading strong { color: #45554f; font-size: 10px; }
  953. .agent-flow-heading span { color: #88938e; font-size: 8px; }
  954. .agent-flow ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
  955. .agent-flow.group ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  956. .agent-flow li { position: relative; min-width: 0; display: flex; align-items: center; gap: 7px; padding-right: 14px; }
  957. .agent-flow li:not(:last-child)::after { content: ''; position: absolute; z-index: 0; top: 11px; right: 2px; width: 10px; height: 1px; background: #d8dfdc; }
  958. .agent-flow li i { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #d7dedb; border-radius: 50%; color: #89928f; background: #fff; font-size: 8px; font-style: normal; font-weight: 800; }
  959. .agent-flow li strong,
  960. .agent-flow li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  961. .agent-flow li strong { color: #69736f; font-size: 9px; }
  962. .agent-flow li small { margin-top: 2px; color: #9aa19e; font-size: 7px; }
  963. .agent-flow li.done i { color: #fff; border-color: var(--agent-green); background: var(--agent-green); }
  964. .agent-flow li.done strong { color: #2c6f59; }
  965. .agent-flow li.current i { color: #fff; border-color: #d47a32; background: #d47a32; box-shadow: 0 0 0 4px rgba(212,122,50,.1); }
  966. .agent-flow li.current strong { color: #98501b; }
  967. .agent-flow li.error i { color: #fff; border-color: #c65043; background: #c65043; }
  968. .agent-flow li.error strong { color: #a13d33; }
  969. .agent-group-monitor-view { min-height: 430px; display: grid; align-content: start; gap: 14px; padding: 22px; background: #fbfcfb; }
  970. .agent-group-status,
  971. .agent-group-latest,
  972. .agent-group-boundary { padding: 16px; border: 1px solid #e2e7e4; border-radius: 8px; background: #fff; }
  973. .agent-group-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; border-left: 4px solid #5f8c79; }
  974. .agent-group-status.overdue { border-left-color: #cf603c; }
  975. .agent-group-status.warning { border-left-color: #d49b37; }
  976. .agent-group-status span,
  977. .agent-group-latest > span { color: #8b9490; font-size: 8px; }
  978. .agent-group-status strong { color: #405049; font-size: 15px; }
  979. .agent-group-status small { grid-column: 2; grid-row: 1 / 3; color: #8c5a37; font-size: 9px; }
  980. .agent-group-latest blockquote { margin: 9px 0 7px; color: #34413c; font-size: 13px; line-height: 1.65; }
  981. .agent-group-latest small { color: #929a97; font-size: 8px; }
  982. .agent-group-boundary { display: flex; align-items: center; gap: 12px; color: #796248; background: #fffaf3; }
  983. .agent-group-boundary strong { flex: 0 0 auto; font-size: 10px; }
  984. .agent-group-boundary span { font-size: 9px; line-height: 1.5; }
  985. .agent-intent-card.group { border-color: #f0d8bd; background: #fff7ed; }
  986. .agent-intent-card.group > strong { color: #965521; }
  987. .agent-intent-card.group.auto { border-color: #efbeb6; background: #fff1ef; }
  988. .agent-intent-card.group.auto > strong { color: #a13d33; }
  989. .agent-group-sla { padding: 12px; border: 1px solid #e5e9e7; border-radius: 8px; background: #fff; }
  990. .agent-group-sla strong,
  991. .agent-group-sla span { display: block; }
  992. .agent-group-sla strong { color: #46534e; font-size: 15px; }
  993. .agent-group-sla span { margin-top: 4px; color: #8e9693; font-size: 8px; }
  994. .agent-boundary-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
  995. .agent-boundary-list li { padding-left: 13px; position: relative; color: #69746f; font-size: 9px; line-height: 1.45; }
  996. .agent-boundary-list li::before { content: ''; position: absolute; left: 1px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #d47a32; }
  997. .agent-boundary-list.danger li { color: #8f4036; }
  998. .agent-boundary-list.danger li::before { background: #bd4d3f; }
  999. .agent-conversation-modes {
  1000. display: flex;
  1001. flex-wrap: wrap;
  1002. justify-content: flex-end;
  1003. gap: 5px;
  1004. }
  1005. .agent-session-strip {
  1006. display: grid;
  1007. grid-template-columns: auto minmax(0, 1fr) auto;
  1008. align-items: center;
  1009. gap: 10px;
  1010. padding: 9px 20px;
  1011. color: #6f7874;
  1012. border-bottom: 1px solid var(--agent-line);
  1013. background: #f8faf9;
  1014. }
  1015. .agent-session-strip.ready { color: #245d4b; background: #f0f8f5; }
  1016. .agent-session-strip strong,
  1017. .agent-session-strip small { display: block; }
  1018. .agent-session-strip strong { color: inherit; font-size: 11px; }
  1019. .agent-session-strip small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #89918e; font-size: 9px; }
  1020. .agent-session-dot { width: 8px; height: 8px; border-radius: 50%; background: #b3bbb8; box-shadow: 0 0 0 4px rgba(137,145,142,.1); }
  1021. .agent-session-strip.ready .agent-session-dot { background: #22b981; box-shadow: 0 0 0 4px rgba(34,185,129,.12); }
  1022. .agent-session-action { min-width: 112px; }
  1023. .agent-session-action[aria-busy="true"] { cursor: wait; opacity: .72; }
  1024. .agent-session-spinner { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid #c9d8d1; border-top-color: var(--agent-green); border-radius: 50%; animation: spin .75s linear infinite; }
  1025. .agent-message-stream {
  1026. min-height: 0;
  1027. max-height: none;
  1028. overflow-y: auto;
  1029. padding: 20px;
  1030. background:
  1031. linear-gradient(rgba(244,247,245,.75), rgba(244,247,245,.75)),
  1032. radial-gradient(circle at 1px 1px, rgba(20,87,66,.1) 1px, transparent 0);
  1033. background-size: auto, 18px 18px;
  1034. }
  1035. .agent-message-stream.group { background-color: #fbfaf8; }
  1036. .agent-message { max-width: 86%; margin-bottom: 18px; }
  1037. .agent-message.customer { margin-right: auto; }
  1038. .agent-message.agent,
  1039. .agent-message.human { margin-left: auto; }
  1040. .agent-message-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: #8b9491; font-size: 9px; }
  1041. .agent-message.agent .agent-message-meta,
  1042. .agent-message.human .agent-message-meta { flex-direction: row-reverse; }
  1043. .agent-message-body { padding: 11px 13px; border: 1px solid #e3e8e5; border-radius: 4px 14px 14px 14px; color: #34413c; background: #fff; box-shadow: 0 5px 12px rgba(24,54,45,.05); font-size: 12px; line-height: 1.7; }
  1044. .agent-message.agent .agent-message-body { color: #164e3d; border-color: #cfe8de; border-radius: 14px 4px 14px 14px; background: #eef8f4; }
  1045. .agent-message.human .agent-message-body { color: #6d431b; border-color: #f3d9bd; border-radius: 14px 4px 14px 14px; background: #fff6eb; }
  1046. .agent-message-voice-row { display: flex; align-items: center; justify-content: flex-start; gap: 7px; max-width: 100%; }
  1047. .agent-message.agent .agent-message-voice-row,
  1048. .agent-message.human .agent-message-voice-row { justify-content: flex-end; }
  1049. .agent-voice-transcript-toggle,
  1050. .agent-voice-bubble { min-height: 44px; border: 1px solid transparent; font: inherit; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
  1051. .agent-voice-transcript-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 68px; flex: 0 0 68px; padding: 0 7px; border-color: #d8e2dd; border-radius: 7px; color: #53635c; background: #fff; font-size: 10px; font-weight: 650; }
  1052. .agent-voice-transcript-toggle:hover { color: var(--agent-green); border-color: #92c9b7; background: #f6fbf9; }
  1053. .agent-voice-transcript-toggle[aria-expanded="true"] { color: #166b50; border-color: #b9dacc; background: #edf7f3; }
  1054. .agent-voice-bubble { display: inline-flex; align-items: center; gap: 9px; width: min(var(--voice-bubble-width), calc(100% - 75px)); min-width: 118px; max-width: 232px; padding: 0 13px; border-color: #c9e3d8; border-radius: 5px 15px 15px 15px; color: #175a45; background: #dcf4e9; box-shadow: 0 4px 10px rgba(24, 84, 64, .08); }
  1055. .agent-message.agent .agent-voice-bubble,
  1056. .agent-message.human .agent-voice-bubble { border-radius: 15px 5px 15px 15px; }
  1057. .agent-message.human .agent-voice-bubble { color: #6b451f; border-color: #edd2b4; background: #ffedda; box-shadow: 0 4px 10px rgba(123, 77, 31, .08); }
  1058. .agent-voice-bubble:hover { border-color: #84c7af; background: #d2efdf; }
  1059. .agent-message.human .agent-voice-bubble:hover { border-color: #dfb989; background: #ffe5c8; }
  1060. .agent-voice-transcript-toggle:focus-visible,
  1061. .agent-voice-bubble:focus-visible { outline: 3px solid rgba(19, 122, 91, .2); outline-offset: 2px; }
  1062. .agent-voice-play-icon { display: inline-flex; flex: 0 0 auto; }
  1063. .agent-voice-play-icon .voice-icon { width: 18px; height: 18px; }
  1064. .agent-voice-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; flex: 1 1 auto; }
  1065. .agent-voice-wave i { width: 2px; height: 6px; border-radius: 1px; background: currentColor; opacity: .38; transform-origin: center; }
  1066. .agent-voice-wave i:nth-child(2) { height: 11px; opacity: .52; }
  1067. .agent-voice-wave i:nth-child(3) { height: 15px; opacity: .7; }
  1068. .agent-voice-wave i:nth-child(4) { height: 9px; opacity: .48; }
  1069. .agent-voice-bubble.playing .agent-voice-wave i { animation: agentVoiceWave .72s ease-in-out infinite alternate; }
  1070. .agent-voice-bubble.playing .agent-voice-wave i:nth-child(2) { animation-delay: .12s; }
  1071. .agent-voice-bubble.playing .agent-voice-wave i:nth-child(3) { animation-delay: .24s; }
  1072. .agent-voice-bubble.playing .agent-voice-wave i:nth-child(4) { animation-delay: .36s; }
  1073. .agent-voice-duration { flex: 0 0 auto; min-width: 25px; text-align: right; font-size: 11px; font-weight: 700; }
  1074. .agent-voice-audio { display: none; }
  1075. .agent-voice-transcript { margin-top: 7px; padding: 10px 12px; border: 1px solid #e1e8e5; border-radius: 8px; color: #45534d; background: #fff; font-size: 11px; line-height: 1.65; box-shadow: 0 3px 8px rgba(24, 54, 45, .04); }
  1076. .agent-voice-transcript[hidden] { display: none; }
  1077. @keyframes agentVoiceWave { from { transform: scaleY(.55); opacity: .38; } to { transform: scaleY(1.15); opacity: .9; } }
  1078. @media (prefers-reduced-motion: reduce) { .agent-voice-bubble.playing .agent-voice-wave i { animation: none; opacity: .85; } }
  1079. .agent-composer {
  1080. padding: 14px 18px 16px;
  1081. border-top: 1px solid var(--agent-line);
  1082. background: #fff;
  1083. }
  1084. .agent-composer.manual { background: #fffaf4; }
  1085. .agent-composer.group { background: #fffaf4; }
  1086. .agent-composer.group .agent-composer-label strong { color: #9a571f; }
  1087. .agent-composer-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  1088. .agent-composer-label strong { color: var(--agent-green); font-size: 11px; }
  1089. .agent-composer.manual .agent-composer-label strong { color: #b06c2a; }
  1090. .agent-composer-label span { color: var(--text-muted); font-size: 9px; }
  1091. .agent-composer textarea { width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border: 1px solid #dce5e1; border-radius: 10px; outline: 0; color: #34413c; background: #fbfdfc; font: inherit; font-size: 11px; line-height: 1.55; }
  1092. .agent-composer textarea:focus { border-color: var(--agent-green); box-shadow: 0 0 0 3px rgba(19,122,91,.08); }
  1093. .agent-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
  1094. .agent-composer-actions span { color: #9aa29f; font-size: 9px; }
  1095. .agent-composer-actions .btn { padding: 8px 14px; background: var(--agent-green); border-color: var(--agent-green); font-size: 11px; }
  1096. .voice-icon { width: 15px; height: 15px; flex: 0 0 auto; }
  1097. .voice-composer-toolbar { display: grid; grid-template-columns: auto auto minmax(180px, 1fr); align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e8eeeb; }
  1098. .voice-profile-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; border: 1px solid #d8e2dd; border-radius: 7px; color: #53635c; background: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; transition: border-color .18s ease, color .18s ease, background .18s ease; }
  1099. .voice-profile-button:hover { border-color: var(--agent-green); color: var(--agent-green); background: #f3faf7; }
  1100. .voice-profile-button:focus-visible, .voice-capture-button:focus-visible, .voice-tone-select select:focus-visible { outline: 3px solid rgba(19,122,91,.18); outline-offset: 1px; }
  1101. .voice-profile-button i { width: 6px; height: 6px; border-radius: 50%; background: #c9d1cd; }
  1102. .voice-profile-button i.ready { background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,.12); }
  1103. .voice-tone-select { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 1px solid #d8e2dd; border-radius: 7px; color: #7b8882; background: #fff; font-size: 9px; }
  1104. .voice-tone-select select { max-width: 110px; border: 0; outline: 0; color: #3f5048; background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; }
  1105. .voice-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
  1106. .agent-composer .voice-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 76px; min-height: 34px; padding: 7px 10px; }
  1107. .agent-composer .voice-action-button.btn-secondary { color: #4d6158; background: #fff; border-color: #d7e0dc; }
  1108. .voice-profile-modal { width: min(92vw, 520px); }
  1109. .voice-profile-modal-body { display: grid; gap: 14px; padding: 4px 0 2px; }
  1110. .voice-profile-status { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e1e7e4; border-radius: 8px; background: #f7f9f8; }
  1111. .voice-profile-status.ready { border-color: #cce5d8; background: #f1f9f5; }
  1112. .voice-profile-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #aeb9b4; }
  1113. .voice-profile-status.ready .voice-profile-dot { background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.12); }
  1114. .voice-profile-status div { display: grid; gap: 3px; min-width: 0; }
  1115. .voice-profile-status strong { color: #2f4038; font-size: 13px; }
  1116. .voice-profile-status small { overflow: hidden; color: #75827c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  1117. .voice-capture-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  1118. .voice-capture-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border: 1px solid #d7e0dc; border-radius: 8px; color: #4c5d55; background: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; transition: border-color .18s ease, color .18s ease, background .18s ease; }
  1119. .voice-capture-button:hover:not(:disabled) { border-color: var(--agent-green); color: var(--agent-green); background: #f3faf7; }
  1120. .voice-capture-button:disabled { cursor: not-allowed; opacity: .45; }
  1121. .voice-capture-button.recording { border-color: #d25b4b; color: #b64034; background: #fff4f2; }
  1122. .voice-selected-file { min-height: 34px; padding: 9px 11px; overflow: hidden; border: 1px dashed #d7e0dc; border-radius: 8px; color: #78857f; background: #fbfcfb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  1123. .voice-profile-preview { width: 100%; height: 36px; }
  1124. .voice-delete-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #a44338; }
  1125. .agent-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  1126. .agent-review-actions .btn-secondary { color: #5f6d68; border-color: #d7e0dc; background: #fff; }
  1127. .agent-tool-trace details {
  1128. margin-bottom: 6px;
  1129. border: 1px solid #e2e9e6;
  1130. border-radius: 8px;
  1131. background: #f8faf9;
  1132. }
  1133. .agent-tool-trace summary {
  1134. padding: 8px 9px;
  1135. color: #315e50;
  1136. cursor: pointer;
  1137. font-size: 9px;
  1138. font-weight: 700;
  1139. }
  1140. .agent-tool-trace pre {
  1141. max-height: 120px;
  1142. margin: 0;
  1143. overflow: auto;
  1144. padding: 0 9px 9px;
  1145. color: #67736f;
  1146. white-space: pre-wrap;
  1147. word-break: break-all;
  1148. font-size: 8px;
  1149. line-height: 1.45;
  1150. }
  1151. .agent-audit-list { display: grid; gap: 5px; }
  1152. .agent-audit-list > div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 5px; border-bottom: 1px dashed #e6ebe9; color: #66736e; font-size: 8px; }
  1153. .agent-audit-list time { flex: 0 0 auto; color: #9aa39f; }
  1154. .agent-activity-disclosure { border: 1px solid var(--agent-line); border-radius: 7px; background: var(--agent-panel); }
  1155. .agent-activity-disclosure > summary { padding: 9px 10px; color: var(--agent-brand-strong); cursor: pointer; font-size: 9px; font-weight: 700; }
  1156. .agent-activity-timeline { display: grid; gap: 8px; padding: 0 10px 10px; }
  1157. .agent-activity-phase { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  1158. .agent-activity-phase > header { display: flex; align-items: flex-start; gap: 6px; padding-top: 3px; }
  1159. .agent-activity-phase > header i { width: 18px; height: 18px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 5px; color: var(--agent-brand-strong); background: var(--agent-brand-soft); font-size: 8px; font-style: normal; font-weight: 800; }
  1160. .agent-activity-phase > header strong,
  1161. .agent-activity-phase > header small { display: block; }
  1162. .agent-activity-phase > header strong { color: var(--agent-text-secondary); font-size: 8px; line-height: 1.35; }
  1163. .agent-activity-phase > header small { margin-top: 2px; color: var(--agent-text-muted); font-size: 7px; }
  1164. .agent-activity-items { min-width: 0; display: grid; gap: 5px; }
  1165. .agent-activity-item { min-width: 0; padding: 7px 8px; border: 1px solid var(--agent-line); border-radius: 6px; background: var(--agent-panel-muted); }
  1166. .agent-activity-item > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
  1167. .agent-activity-item strong { overflow: hidden; color: var(--agent-ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  1168. .agent-activity-item em { flex: 0 0 auto; color: var(--agent-success); font-size: 7px; font-style: normal; }
  1169. .agent-activity-item small { display: block; margin-top: 4px; overflow: hidden; color: var(--agent-text-muted); font-size: 7px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
  1170. .agent-activity-item.failed { border-color: color-mix(in srgb, var(--agent-error) 28%, var(--agent-line)); background: var(--agent-error-soft); }
  1171. .agent-activity-item.failed em { color: var(--agent-error); }
  1172. .agent-activity-item.running em { color: var(--agent-warning); }
  1173. .agent-activity-empty { padding: 7px 8px; border: 1px dashed var(--agent-line); border-radius: 6px; color: var(--agent-text-muted); font-size: 7px; line-height: 1.4; }
  1174. .agent-page .agent-count,
  1175. .agent-page .agent-channel-badge.private { color: var(--agent-brand-strong); background: var(--agent-brand-soft); }
  1176. .agent-page .agent-conversation-item.active { background: var(--agent-brand-soft); box-shadow: inset 3px 0 0 var(--agent-brand); }
  1177. .agent-page .agent-conversation-copy em { color: var(--agent-brand-strong); background: var(--agent-brand-soft); }
  1178. .agent-page .agent-composer textarea:focus { border-color: var(--agent-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--agent-focus) 14%, transparent); }
  1179. .agent-insight-section { padding: 17px 18px; border-bottom: 1px solid var(--agent-line); }
  1180. .agent-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
  1181. .agent-section-title > span { color: #9bb7ae; font: 700 9px/1 monospace; }
  1182. .agent-section-title strong,
  1183. .agent-section-title small { display: block; }
  1184. .agent-section-title strong { color: var(--agent-ink); font-size: 12px; }
  1185. .agent-section-title small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
  1186. .agent-intent-card { padding: 11px 12px; border: 1px solid #d7ebe3; border-radius: 10px; background: var(--agent-green-soft); }
  1187. .agent-intent-card > strong { color: var(--agent-green); font-size: 13px; }
  1188. .agent-intent-card > span { float: right; color: #60756e; font-size: 9px; }
  1189. .agent-intent-card > div { clear: both; height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: rgba(19,122,91,.12); }
  1190. .agent-intent-card i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22a579, #73cfae); }
  1191. .agent-reasoning { margin: 9px 0 0; color: #75807c; font-size: 9px; line-height: 1.55; }
  1192. .agent-demand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  1193. .agent-demand-grid > div { padding: 8px 9px; border: 1px solid #e8ecea; border-radius: 8px; background: #fff; }
  1194. .agent-demand-grid small,
  1195. .agent-demand-grid strong { display: block; }
  1196. .agent-demand-grid small { color: #9aa29f; font-size: 8px; }
  1197. .agent-demand-grid strong { margin-top: 3px; overflow: hidden; color: #37443f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  1198. .agent-customer-task-list,
  1199. .agent-customer-alert-list { display: grid; gap: 8px; }
  1200. .agent-customer-task,
  1201. .agent-customer-alert { padding: 10px; border: 1px solid #e3e9e6; border-radius: 9px; background: #fff; }
  1202. .agent-customer-task.high,
  1203. .agent-customer-task.urgent { border-left: 3px solid #ed8a2e; }
  1204. .agent-customer-task.done,
  1205. .agent-customer-task.dismissed,
  1206. .agent-customer-alert.acknowledged,
  1207. .agent-customer-alert.resolved,
  1208. .agent-customer-alert.dismissed { opacity: .62; }
  1209. .agent-customer-task strong,
  1210. .agent-customer-task small { display: block; }
  1211. .agent-customer-task strong { color: #30423b; font-size: 10px; }
  1212. .agent-customer-task small { margin-top: 3px; color: #8d9692; font-size: 8px; }
  1213. .agent-customer-task p,
  1214. .agent-customer-alert p { margin: 6px 0 0; color: #68746f; font-size: 9px; line-height: 1.5; }
  1215. .agent-task-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
  1216. .agent-task-meta span { padding: 2px 5px; border-radius: 4px; color: #68746f; background: #f0f3f2; font-size: 8px; }
  1217. .agent-task-meta span.synced { color: #26745e; background: #e8f5ef; }
  1218. .agent-task-meta span.error { color: #a83831; background: #fff0ee; }
  1219. .agent-customer-alert.high { border-left: 3px solid #ed8a2e; background: #fffaf3; }
  1220. .agent-customer-alert.critical { border-left: 3px solid #d94f45; background: #fff5f4; }
  1221. .agent-alert-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  1222. .agent-alert-heading strong { color: #3e4844; font-size: 10px; }
  1223. .agent-alert-heading em { padding: 2px 5px; border-radius: 4px; color: #966023; background: rgba(237,138,46,.12); font-size: 8px; font-style: normal; }
  1224. .agent-customer-alert.critical .agent-alert-heading em { color: #a83831; background: rgba(217,79,69,.12); }
  1225. .agent-customer-alert > small { display: block; margin-top: 5px; color: #929a97; font-size: 8px; line-height: 1.4; }
  1226. .agent-intelligence-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 8px; }
  1227. .agent-intelligence-actions .btn { padding: 4px 7px; font-size: 8px; }
  1228. .agent-intelligence-actions span { color: #7d8783; font-size: 8px; }
  1229. /* ==================== Dashboard Motion System ==================== */
  1230. :root {
  1231. --motion-fast: 160ms;
  1232. --motion-base: 240ms;
  1233. --motion-slow: 320ms;
  1234. --motion-ease-out: cubic-bezier(.2, .72, .24, 1);
  1235. --motion-ease-soft: cubic-bezier(.22, .61, .36, 1);
  1236. }
  1237. /* 模块切换:页面立即出现,内容以短距离错峰进入,不延长数据加载。 */
  1238. .content > .page {
  1239. animation: dashboardPageIn var(--motion-base) var(--motion-ease-out) both;
  1240. }
  1241. .content > .page > * {
  1242. animation: dashboardSectionIn var(--motion-slow) var(--motion-ease-out) both;
  1243. }
  1244. .content > .page > *:nth-child(2) { animation-delay: 35ms; }
  1245. .content > .page > *:nth-child(3) { animation-delay: 70ms; }
  1246. .content > .page > *:nth-child(4) { animation-delay: 105ms; }
  1247. .content > .page > *:nth-child(5) { animation-delay: 140ms; }
  1248. .content > .page > *:nth-child(n+6) { animation-delay: 165ms; }
  1249. .content > .agent-page > * { animation: none; }
  1250. @keyframes dashboardPageIn {
  1251. from { opacity: 0; transform: translate3d(8px, 0, 0); }
  1252. to { opacity: 1; transform: translate3d(0, 0, 0); }
  1253. }
  1254. @keyframes dashboardSectionIn {
  1255. from { opacity: 0; transform: translate3d(0, 10px, 0); }
  1256. to { opacity: 1; transform: translate3d(0, 0, 0); }
  1257. }
  1258. /* 侧边导航:新模块图标轻微弹入,文字与底色保持原有品牌风格。 */
  1259. .nav-item { transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-base) ease, transform var(--motion-fast) ease; }
  1260. .nav-item:hover { transform: translate3d(2px, 0, 0); }
  1261. .nav-item.active svg { animation: dashboardNavIconIn var(--motion-base) var(--motion-ease-out) both; }
  1262. @keyframes dashboardNavIconIn {
  1263. 0% { opacity: .55; transform: scale(.78) rotate(-5deg); }
  1264. 100% { opacity: 1; transform: scale(1) rotate(0); }
  1265. }
  1266. /* 关键指标与状态卡:错峰进入,并提供稳定、不改变布局的悬停反馈。 */
  1267. .kpi-row > .kpi-card,
  1268. .status-cards > .status-card,
  1269. .workspace-stat-row > div,
  1270. .customer-master-stats > div,
  1271. .task-stat-row > div {
  1272. animation: dashboardMetricIn var(--motion-slow) var(--motion-ease-out) both;
  1273. transition: transform var(--motion-base) var(--motion-ease-out), border-color var(--motion-fast) ease, box-shadow var(--motion-base) ease;
  1274. }
  1275. .kpi-row > :nth-child(2), .status-cards > :nth-child(2), .workspace-stat-row > :nth-child(2), .customer-master-stats > :nth-child(2), .task-stat-row > :nth-child(2) { animation-delay: 45ms; }
  1276. .kpi-row > :nth-child(3), .status-cards > :nth-child(3), .workspace-stat-row > :nth-child(3), .customer-master-stats > :nth-child(3), .task-stat-row > :nth-child(3) { animation-delay: 90ms; }
  1277. .kpi-row > :nth-child(4), .workspace-stat-row > :nth-child(4), .customer-master-stats > :nth-child(4), .task-stat-row > :nth-child(4) { animation-delay: 135ms; }
  1278. .kpi-row > :nth-child(5), .workspace-stat-row > :nth-child(5) { animation-delay: 180ms; }
  1279. .kpi-row > :nth-child(6), .workspace-stat-row > :nth-child(6) { animation-delay: 225ms; }
  1280. .kpi-card:hover,
  1281. .status-card:hover,
  1282. .customer-master-stats > div:hover,
  1283. .task-stat-row > div:hover {
  1284. transform: translate3d(0, -2px, 0);
  1285. border-color: #d5dde2;
  1286. box-shadow: 0 10px 28px rgba(28,45,59,.075);
  1287. }
  1288. @keyframes dashboardMetricIn {
  1289. from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.985); }
  1290. to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  1291. }
  1292. /* 页签、筛选结果和局部工作区切换。 */
  1293. [data-group-ops-panel]:not([hidden]),
  1294. .agent-knowledge-view,
  1295. .customer-master-detail,
  1296. .meeting-detail,
  1297. .doc-detail,
  1298. .todo-detail {
  1299. animation: dashboardPanelIn var(--motion-base) var(--motion-ease-soft) both;
  1300. }
  1301. @keyframes dashboardPanelIn {
  1302. from { opacity: 0; transform: translate3d(6px, 0, 0); }
  1303. to { opacity: 1; transform: translate3d(0, 0, 0); }
  1304. }
  1305. /* 常用列表与操作卡仅在悬停时轻移,避免数据密集页面持续运动。 */
  1306. .skill-capability-card,
  1307. .customer-master-list-item,
  1308. .meeting-list-item,
  1309. .office-list-item,
  1310. .unified-task-card,
  1311. .group-ops-playbooks article,
  1312. .group-ops-task-list article {
  1313. transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-base) ease;
  1314. }
  1315. .skill-capability-card:hover,
  1316. .customer-master-list-item:hover,
  1317. .meeting-list-item:hover,
  1318. .office-list-item:hover,
  1319. .unified-task-card:hover,
  1320. .group-ops-playbooks article:hover,
  1321. .group-ops-task-list article:hover {
  1322. transform: translate3d(0, -1px, 0);
  1323. }
  1324. /* Hero 装饰只做低频漂移,主体文字与操作按钮保持稳定。 */
  1325. .customer-workspace-hero::before { animation: dashboardHeroFloat 8s ease-in-out infinite alternate; }
  1326. .customer-workspace-hero::after { animation: dashboardHeroFloatReverse 10s ease-in-out infinite alternate; }
  1327. @keyframes dashboardHeroFloat {
  1328. from { transform: translate3d(0, 0, 0); }
  1329. to { transform: translate3d(-10px, 8px, 0); }
  1330. }
  1331. @keyframes dashboardHeroFloatReverse {
  1332. from { transform: translate3d(0, 0, 0); }
  1333. to { transform: translate3d(9px, -6px, 0); }
  1334. }
  1335. .agent-match-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed #e5e9e7; }
  1336. .agent-match-card:last-child { border-bottom: 0; }
  1337. .agent-match-card > span { width: 20px; height: 20px; display: grid; place-items: center; color: var(--agent-green); border-radius: 6px; background: var(--agent-green-soft); font-size: 9px; font-weight: 800; }
  1338. .agent-match-card strong,
  1339. .agent-match-card small,
  1340. .agent-match-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  1341. .agent-match-card strong { color: #34413c; font-size: 10px; }
  1342. .agent-match-card small { margin-top: 3px; color: #6f7b76; font-size: 9px; }
  1343. .agent-match-card em { margin-top: 3px; color: #9a7a51; font-size: 8px; font-style: normal; }
  1344. .agent-match-card b { color: var(--agent-orange); font: 800 13px/1 monospace; }
  1345. .agent-insight-section.knowledge ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
  1346. .agent-insight-section.knowledge li { padding: 6px 7px; border-radius: 6px; color: #5c6c66; background: #f0f3f2; font-size: 8px; }
  1347. .agent-insight-section.knowledge li::before { content: '✓'; margin-right: 4px; color: var(--agent-green); font-weight: 800; }
  1348. .agent-muted { margin: 0; color: var(--text-muted); font-size: 10px; }
  1349. .agent-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--text-muted); }
  1350. .agent-empty.large { min-height: 560px; }
  1351. .agent-empty strong { color: #53605b; font-size: 13px; }
  1352. .agent-empty span { max-width: 360px; font-size: 10px; line-height: 1.5; }
  1353. @media (max-width: 1320px) {
  1354. .agent-workspace { grid-template-columns: 220px minmax(390px, 1fr) 300px; }
  1355. .agent-commandbar { grid-template-columns: minmax(150px, 1fr) auto auto; }
  1356. .agent-command-actions { grid-column: 1 / -1; justify-content: flex-start; }
  1357. }
  1358. @media (min-width: 1051px) and (max-width: 1320px) {
  1359. .agent-commandbar { grid-template-columns: minmax(150px, 1fr) auto auto auto; }
  1360. .agent-command-actions { grid-column: auto; justify-content: flex-end; }
  1361. }
  1362. @media (max-width: 1050px) {
  1363. .agent-commandbar { grid-template-columns: minmax(0, 1fr) auto; }
  1364. .agent-commandbar .agent-mode-switch,
  1365. .agent-command-actions { grid-column: 1 / -1; }
  1366. .agent-command-actions { justify-content: flex-start; }
  1367. .agent-guard { display: none; }
  1368. .response-monitor-body { grid-template-columns: 1fr; }
  1369. .agent-workspace { grid-template-columns: 210px minmax(0, 1fr); overflow-y: auto; }
  1370. .agent-insight-panel { grid-column: 1 / -1; max-height: 440px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--agent-line); border-left: 0; }
  1371. }
  1372. @media (min-width: 761px) and (max-height: 760px) {
  1373. .agent-chat-header { min-height: 60px; padding: 8px 14px; }
  1374. .agent-conversation-modes { flex-wrap: nowrap; overflow-x: auto; }
  1375. .agent-conversation-modes .btn { flex: 0 0 auto; }
  1376. .agent-flow { padding: 7px 14px 8px; }
  1377. .agent-flow-heading { margin-bottom: 4px; }
  1378. .agent-flow-heading span { display: none; }
  1379. .agent-session-strip { padding: 6px 14px; }
  1380. .agent-session-strip small { display: none; }
  1381. .agent-message-stream { padding: 14px; }
  1382. .agent-composer { padding: 10px 14px 11px; }
  1383. .agent-composer textarea { min-height: 54px; }
  1384. .agent-composer-actions { align-items: stretch; flex-direction: column; gap: 6px; }
  1385. .agent-composer-actions > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  1386. .agent-review-actions { flex-wrap: nowrap; }
  1387. .agent-review-actions .btn { flex: 0 0 auto; }
  1388. .voice-composer-toolbar { min-height: 34px; margin-top: 4px; padding-top: 4px; }
  1389. }
  1390. @media (max-width: 760px) {
  1391. .agent-page { height: calc(100dvh - 128px); gap: 8px; }
  1392. .agent-commandbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  1393. .agent-commandbar .agent-mode-switch { width: 100%; overflow-x: auto; }
  1394. .agent-commandbar .agent-mode-btn { flex: 1 0 auto; min-width: 62px; }
  1395. .agent-command-kpis span { min-width: 48px; }
  1396. .agent-command-actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  1397. .agent-command-actions .btn { flex: 0 0 auto; min-height: 36px; }
  1398. .agent-drawer-backdrop { inset: 68px 0 0; }
  1399. .agent-drawer { width: 100vw; }
  1400. .agent-drawer > header { min-height: 60px; padding: 12px 14px; }
  1401. .agent-drawer-body { padding: 12px; }
  1402. .response-monitor-header { align-items: stretch; flex-direction: column; }
  1403. .response-monitor-kpis { width: 100%; }
  1404. .response-monitor-kpis span { flex: 1; }
  1405. .response-monitor-body { padding: 12px; }
  1406. .response-reminder { grid-template-columns: 1fr; }
  1407. .response-reminder footer { justify-content: space-between; }
  1408. .agent-workspace { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(170px, 28dvh) minmax(520px, auto) auto; overflow-y: auto; }
  1409. .agent-conversation-list { border-right: 0; border-bottom: 1px solid var(--agent-line); }
  1410. .agent-flow { padding: 12px; overflow-x: auto; }
  1411. .agent-flow-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  1412. .agent-flow ol,
  1413. .agent-flow.group ol { min-width: 560px; }
  1414. .agent-chat-panel { min-height: 720px; grid-template-rows: auto auto auto minmax(160px, 1fr) auto; }
  1415. .agent-chat-header { align-items: flex-start; flex-direction: column; }
  1416. .agent-conversation-modes { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  1417. .agent-conversation-modes .btn { flex: 0 0 auto; min-height: 36px; }
  1418. .agent-insight-panel { display: block; max-height: none; overflow: visible; }
  1419. .agent-activity-phase { grid-template-columns: 64px minmax(0, 1fr); }
  1420. }
  1421. .page {
  1422. animation: fadeInUp 0.4s ease both;
  1423. }
  1424. .page.agent-page { animation: none; transform: none; }
  1425. @keyframes fadeInUp {
  1426. from { opacity: 0; transform: translateY(16px); }
  1427. to { opacity: 1; transform: translateY(0); }
  1428. }
  1429. .section-title {
  1430. font-size: 14px;
  1431. color: var(--text-secondary);
  1432. margin: 0 0 14px;
  1433. font-weight: 600;
  1434. }
  1435. .card {
  1436. background: var(--panel-bg);
  1437. border: 1px solid var(--border);
  1438. border-radius: var(--radius-lg);
  1439. padding: 24px;
  1440. margin-bottom: 24px;
  1441. box-shadow: var(--shadow);
  1442. transition: box-shadow 0.2s, transform 0.2s;
  1443. animation: fadeInUp 0.4s ease both;
  1444. }
  1445. .card:hover { box-shadow: var(--shadow-hover); }
  1446. .card-header {
  1447. display: flex;
  1448. align-items: center;
  1449. justify-content: space-between;
  1450. margin-bottom: 20px;
  1451. flex-wrap: wrap;
  1452. gap: 12px;
  1453. }
  1454. .card-title {
  1455. font-size: 16px;
  1456. font-weight: 700;
  1457. margin: 0;
  1458. display: flex;
  1459. align-items: center;
  1460. gap: 8px;
  1461. }
  1462. .card-title svg { width: 20px; height: 20px; fill: var(--brand); }
  1463. .card-subtitle {
  1464. font-size: 13px;
  1465. color: var(--text-muted);
  1466. margin-top: 4px;
  1467. }
  1468. .form-row {
  1469. display: flex;
  1470. flex-wrap: wrap;
  1471. gap: 20px;
  1472. margin-bottom: 20px;
  1473. }
  1474. .form-group {
  1475. display: flex;
  1476. flex-direction: column;
  1477. gap: 8px;
  1478. flex: 1;
  1479. min-width: 180px;
  1480. }
  1481. .form-group label {
  1482. font-size: 13px;
  1483. color: var(--text-secondary);
  1484. font-weight: 500;
  1485. }
  1486. .form-group input,
  1487. .form-group select,
  1488. .form-group textarea {
  1489. padding: 10px 12px;
  1490. border: 1px solid var(--border);
  1491. border-radius: var(--radius-sm);
  1492. font-size: 14px;
  1493. outline: none;
  1494. transition: border-color 0.15s, box-shadow 0.15s;
  1495. font-family: inherit;
  1496. background: var(--panel-bg);
  1497. }
  1498. .form-group input:focus,
  1499. .form-group select:focus,
  1500. .form-group textarea:focus {
  1501. border-color: var(--brand);
  1502. box-shadow: 0 0 0 3px rgba(250, 140, 22, 0.1);
  1503. }
  1504. .form-group input[type="checkbox"] {
  1505. width: auto;
  1506. margin: 0;
  1507. }
  1508. .checkbox-row {
  1509. display: flex;
  1510. align-items: center;
  1511. gap: 8px;
  1512. font-size: 14px;
  1513. color: var(--text-secondary);
  1514. }
  1515. .checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }
  1516. .btn {
  1517. display: inline-flex;
  1518. align-items: center;
  1519. justify-content: center;
  1520. gap: 8px;
  1521. border: none;
  1522. background: var(--brand);
  1523. color: #fff;
  1524. font-size: 14px;
  1525. font-weight: 600;
  1526. padding: 10px 20px;
  1527. border-radius: var(--radius-sm);
  1528. cursor: pointer;
  1529. transition: all 0.15s;
  1530. font-family: inherit;
  1531. box-shadow: 0 4px 12px rgba(250, 140, 22, 0.25);
  1532. }
  1533. .btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
  1534. .btn:active { transform: translateY(0); }
  1535. .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
  1536. .btn-sm { padding: 7px 14px; font-size: 13px; }
  1537. .btn-secondary {
  1538. background: var(--panel-bg);
  1539. color: var(--text-secondary);
  1540. border: 1px solid var(--border);
  1541. box-shadow: none;
  1542. }
  1543. .btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
  1544. .btn-danger { background: var(--error); box-shadow: 0 4px 12px rgba(255,77,79,0.25); }
  1545. .btn svg { width: 16px; height: 16px; fill: currentColor; }
  1546. .spinner {
  1547. width: 16px;
  1548. height: 16px;
  1549. border: 2px solid rgba(255,255,255,0.4);
  1550. border-top-color: #fff;
  1551. border-radius: 50%;
  1552. animation: spin 0.8s linear infinite;
  1553. }
  1554. @keyframes spin { to { transform: rotate(360deg); } }
  1555. .stats-grid {
  1556. display: grid;
  1557. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  1558. gap: 16px;
  1559. margin-bottom: 24px;
  1560. }
  1561. .stat-card {
  1562. background: var(--panel-bg);
  1563. border: 1px solid var(--border);
  1564. border-radius: var(--radius-md);
  1565. padding: 20px 16px;
  1566. text-align: center;
  1567. transition: all 0.2s;
  1568. box-shadow: var(--shadow);
  1569. }
  1570. .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  1571. .stat-value {
  1572. font-size: 32px;
  1573. font-weight: 800;
  1574. color: var(--brand);
  1575. line-height: 1.2;
  1576. }
  1577. .stat-label {
  1578. font-size: 13px;
  1579. color: var(--text-muted);
  1580. margin-top: 6px;
  1581. }
  1582. .table-wrap {
  1583. overflow-x: auto;
  1584. border: 1px solid var(--border);
  1585. border-radius: var(--radius-md);
  1586. }
  1587. table {
  1588. width: 100%;
  1589. border-collapse: collapse;
  1590. font-size: 13px;
  1591. }
  1592. th, td {
  1593. padding: 14px 16px;
  1594. text-align: left;
  1595. border-bottom: 1px solid var(--border);
  1596. }
  1597. th {
  1598. background: var(--page-bg);
  1599. color: var(--text-secondary);
  1600. font-weight: 600;
  1601. font-size: 12px;
  1602. text-transform: uppercase;
  1603. letter-spacing: 0.5px;
  1604. }
  1605. tr:last-child td { border-bottom: none; }
  1606. tr:hover td { background: var(--brand-bg); }
  1607. .badge {
  1608. display: inline-flex;
  1609. align-items: center;
  1610. padding: 4px 10px;
  1611. border-radius: 999px;
  1612. font-size: 12px;
  1613. font-weight: 600;
  1614. }
  1615. .badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
  1616. .badge-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
  1617. .badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #ffe58f; }
  1618. .badge-info { background: var(--info-bg); color: var(--info); border: 1px solid #91d5ff; }
  1619. .badge-default { background: var(--page-bg); color: var(--text-muted); border: 1px solid var(--border); }
  1620. .confidence-bar {
  1621. width: 80px;
  1622. height: 6px;
  1623. background: var(--border);
  1624. border-radius: 3px;
  1625. overflow: hidden;
  1626. }
  1627. .confidence-bar-fill {
  1628. height: 100%;
  1629. background: linear-gradient(90deg, var(--brand) 0%, #ffc53d 100%);
  1630. border-radius: 3px;
  1631. transition: width 0.5s ease;
  1632. }
  1633. .filter-bar {
  1634. display: flex;
  1635. flex-wrap: wrap;
  1636. gap: 10px;
  1637. align-items: flex-end;
  1638. }
  1639. .filter-bar input,
  1640. .filter-bar select {
  1641. padding: 8px 12px;
  1642. border: 1px solid var(--border);
  1643. border-radius: var(--radius-sm);
  1644. font-size: 13px;
  1645. outline: none;
  1646. background: var(--panel-bg);
  1647. }
  1648. .filter-bar input:focus,
  1649. .filter-bar select:focus { border-color: var(--brand); }
  1650. .empty-state {
  1651. text-align: center;
  1652. padding: 56px 20px;
  1653. color: var(--text-muted);
  1654. }
  1655. .empty-state svg {
  1656. width: 56px;
  1657. height: 56px;
  1658. fill: var(--border);
  1659. margin-bottom: 16px;
  1660. }
  1661. .empty-state-title { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
  1662. .empty-state-desc { font-size: 13px; }
  1663. .progress-wrap { margin: 18px 0; }
  1664. .progress-bar {
  1665. height: 8px;
  1666. background: var(--border);
  1667. border-radius: 4px;
  1668. overflow: hidden;
  1669. }
  1670. .progress-bar-fill {
  1671. height: 100%;
  1672. background: linear-gradient(90deg, var(--brand) 0%, #ffc53d 100%);
  1673. border-radius: 4px;
  1674. background-image: linear-gradient(45deg, rgba(255,255,255,0.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.3) 75%, transparent 75%, transparent);
  1675. background-size: 20px 20px;
  1676. animation: progressStripes 1s linear infinite;
  1677. transition: width 0.3s ease;
  1678. }
  1679. @keyframes progressStripes {
  1680. from { background-position: 0 0; }
  1681. to { background-position: 20px 0; }
  1682. }
  1683. .job-log {
  1684. background: #fafafa;
  1685. border: 1px solid var(--border);
  1686. border-radius: var(--radius-sm);
  1687. padding: 14px;
  1688. font-size: 13px;
  1689. color: var(--text-secondary);
  1690. max-height: 180px;
  1691. overflow-y: auto;
  1692. white-space: pre-wrap;
  1693. margin-top: 14px;
  1694. }
  1695. .toast-container {
  1696. position: fixed;
  1697. top: 24px;
  1698. right: 24px;
  1699. z-index: 200;
  1700. display: flex;
  1701. flex-direction: column;
  1702. gap: 12px;
  1703. }
  1704. .toast {
  1705. min-width: 280px;
  1706. max-width: 400px;
  1707. padding: 14px 18px;
  1708. border-radius: var(--radius-md);
  1709. font-size: 14px;
  1710. box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  1711. animation: slideIn 0.3s ease;
  1712. display: flex;
  1713. align-items: flex-start;
  1714. gap: 12px;
  1715. }
  1716. @keyframes slideIn {
  1717. from { opacity: 0; transform: translateX(100%); }
  1718. to { opacity: 1; transform: translateX(0); }
  1719. }
  1720. .toast.success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
  1721. .toast.error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
  1722. .toast.warning { background: var(--warning-bg); color: #d48806; border: 1px solid #ffe58f; }
  1723. .modal-overlay {
  1724. position: fixed;
  1725. inset: 0;
  1726. background: rgba(0,0,0,0.45);
  1727. backdrop-filter: blur(2px);
  1728. display: flex;
  1729. align-items: center;
  1730. justify-content: center;
  1731. z-index: 150;
  1732. animation: fadeIn 0.2s ease;
  1733. }
  1734. @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  1735. .modal {
  1736. background: var(--panel-bg);
  1737. border-radius: var(--radius-lg);
  1738. padding: 28px;
  1739. width: 90%;
  1740. max-width: 440px;
  1741. animation: scaleIn 0.25s ease;
  1742. box-shadow: var(--shadow-hover);
  1743. }
  1744. @keyframes scaleIn {
  1745. from { opacity: 0; transform: scale(0.96); }
  1746. to { opacity: 1; transform: scale(1); }
  1747. }
  1748. .modal-title {
  1749. font-size: 18px;
  1750. font-weight: 700;
  1751. margin: 0 0 18px;
  1752. }
  1753. .modal-actions {
  1754. display: flex;
  1755. justify-content: flex-end;
  1756. gap: 12px;
  1757. margin-top: 24px;
  1758. }
  1759. body.modal-open { overflow: hidden; }
  1760. /* Customer portrait detail */
  1761. .portrait-modal-overlay {
  1762. align-items: flex-start;
  1763. padding: 24px;
  1764. overflow-x: hidden;
  1765. overflow-y: auto;
  1766. }
  1767. .portrait-modal {
  1768. width: min(100%, 960px);
  1769. max-width: 960px;
  1770. max-height: calc(100vh - 48px);
  1771. padding: 0;
  1772. overflow-x: hidden;
  1773. overflow-y: auto;
  1774. border: 1px solid rgba(255,255,255,.75);
  1775. border-radius: 20px;
  1776. box-shadow: 0 28px 80px rgba(20,34,44,.24);
  1777. }
  1778. .portrait-modal > .modal-title {
  1779. position: sticky;
  1780. top: 0;
  1781. z-index: 3;
  1782. margin: 0;
  1783. padding: 21px 26px 18px;
  1784. border-bottom: 1px solid #e9eeec;
  1785. color: #1f3029;
  1786. background: rgba(255,255,255,.96);
  1787. backdrop-filter: blur(10px);
  1788. font-size: 20px;
  1789. }
  1790. .portrait-profile { padding: 24px 26px 18px; background: linear-gradient(145deg, #f4faf7, #fff 72%); }
  1791. .portrait-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; }
  1792. .portrait-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #218263, #155b48); box-shadow: 0 8px 18px rgba(21,91,72,.2); font-size: 21px; font-weight: 800; }
  1793. .portrait-identity { min-width: 0; }
  1794. .portrait-name { color: #20342b; font-size: 20px; font-weight: 750; }
  1795. .portrait-subtitle { margin-top: 4px; overflow-wrap: anywhere; color: #75847d; font-size: 11px; line-height: 1.55; }
  1796. .portrait-chip-row, .portrait-tags, .portrait-evidence { display: flex; flex-wrap: wrap; gap: 6px; }
  1797. .portrait-chip-row { margin-top: 8px; }
  1798. .portrait-soft-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; color: #547066; background: #e8f2ed; font-size: 10px; }
  1799. .portrait-meta { min-width: 132px; padding-left: 14px; text-align: right; }
  1800. .portrait-meta div { color: #89958f; font-size: 9px; }
  1801. .portrait-meta strong { display: block; margin-top: 4px; color: #496057; font-size: 11px; }
  1802. .portrait-tags { margin-top: 16px; padding-top: 14px; border-top: 1px solid #dfeae5; }
  1803. .portrait-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 17px; }
  1804. .portrait-section { margin: 0 26px 18px; padding: 17px; border: 1px solid #e1e8e4; border-radius: 14px; background: #fff; }
  1805. .portrait-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  1806. .portrait-section-head h3 { margin: 0; color: #293b33; font-size: 14px; }
  1807. .portrait-section-head span { padding: 3px 7px; border-radius: 999px; color: #6f7e77; background: #f0f4f2; font-size: 9px; }
  1808. .portrait-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  1809. .portrait-insight-card { min-width: 0; padding: 12px 13px; border: 1px solid #e7ece9; border-radius: 10px; background: #f8faf9; }
  1810. .portrait-insight-label { margin-bottom: 5px; color: #78867f; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
  1811. .portrait-insight-value { overflow-wrap: anywhere; color: #304139; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
  1812. .portrait-insight-note { margin-top: 6px; color: #71847a; font-size: 9px; }
  1813. .portrait-evidence { margin-top: 8px; }
  1814. .portrait-evidence span { padding: 3px 7px; border-radius: 999px; color: #2f7258; background: #e7f4ed; font-size: 9px; }
  1815. .portrait-empty-panel { margin: 0 26px 18px; padding: 28px; border: 1px dashed #dbe4df; border-radius: 13px; color: #819087; background: #fafcfb; text-align: center; }
  1816. .portrait-modal .raw-toggle { display: flex; align-items: center; gap: 7px; margin: 0 26px; padding: 11px 13px; border: 1px solid #e1e7e4; border-radius: 10px; color: #65746d; background: #f7f9f8; cursor: pointer; font-size: 11px; font-weight: 650; }
  1817. .portrait-modal .raw-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; transition: transform .18s ease; }
  1818. .portrait-modal .raw-toggle.open svg { transform: rotate(180deg); }
  1819. .portrait-modal .raw-panel { display: none; max-height: 360px; margin: 10px 26px 0; padding: 14px; overflow: auto; border: 1px solid #dde5e1; border-radius: 10px; color: #4d5f56; background: #f5f8f6; font: 10px/1.65 Consolas, "SFMono-Regular", monospace; white-space: pre-wrap; word-break: break-word; }
  1820. .portrait-modal > .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 18px 0 0; padding: 14px 26px; border-top: 1px solid #e9eeec; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  1821. .portrait-modal-loading { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 36px; color: #708078; text-align: center; }
  1822. .portrait-modal-loading .spinner { width: 30px; height: 30px; margin-bottom: 4px; }
  1823. .portrait-modal-loading strong { color: #304139; font-size: 14px; }
  1824. .portrait-modal-loading small { font-size: 10px; }
  1825. .portrait-modal-error { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 32px; color: #8b5d54; text-align: center; }
  1826. .portrait-modal-error strong { font-size: 14px; }
  1827. .portrait-modal-error span { font-size: 11px; }
  1828. /* Customer detail modal */
  1829. .customer-detail-modal-overlay { align-items: flex-start; padding: 24px; overflow-x: hidden; overflow-y: auto; }
  1830. .customer-detail-modal {
  1831. width: min(100%, 720px);
  1832. max-width: 720px;
  1833. max-height: calc(100vh - 48px);
  1834. padding: 0;
  1835. overflow-x: hidden;
  1836. overflow-y: auto;
  1837. border: 1px solid rgba(255,255,255,.75);
  1838. border-radius: 20px;
  1839. box-shadow: 0 28px 80px rgba(20,34,44,.24);
  1840. }
  1841. .customer-detail-modal > .modal-title {
  1842. position: sticky;
  1843. top: 0;
  1844. z-index: 3;
  1845. margin: 0;
  1846. padding: 21px 26px 18px;
  1847. border-bottom: 1px solid #e9eeec;
  1848. color: #1f3029;
  1849. background: rgba(255,255,255,.96);
  1850. backdrop-filter: blur(10px);
  1851. font-size: 20px;
  1852. }
  1853. .customer-detail-modal .detail-card {
  1854. margin: 18px 26px 0;
  1855. border: 1px solid #e1e8e4;
  1856. border-radius: 14px;
  1857. background: #fff;
  1858. overflow: hidden;
  1859. }
  1860. .customer-detail-modal .detail-card-header {
  1861. display: flex;
  1862. align-items: center;
  1863. gap: 10px;
  1864. padding: 13px 16px;
  1865. border-bottom: 1px solid #eef2f0;
  1866. background: #fafcfb;
  1867. color: #293b33;
  1868. font-size: 13px;
  1869. font-weight: 700;
  1870. }
  1871. .customer-detail-modal .detail-card-header svg { width: 18px; height: 18px; fill: currentColor; }
  1872. .customer-detail-modal .detail-card-body { padding: 16px; }
  1873. .customer-detail-modal .detail-section-title {
  1874. display: flex;
  1875. align-items: center;
  1876. gap: 8px;
  1877. margin: 0 0 12px;
  1878. color: #2b3c34;
  1879. font-size: 13px;
  1880. font-weight: 700;
  1881. }
  1882. .customer-detail-modal .detail-section-title svg { width: 18px; height: 18px; fill: currentColor; }
  1883. .customer-detail-modal .detail-grid {
  1884. display: grid;
  1885. grid-template-columns: repeat(2, minmax(0, 1fr));
  1886. gap: 12px;
  1887. }
  1888. .customer-detail-modal .detail-grid.compact { gap: 10px; }
  1889. .customer-detail-modal .detail-item { display: grid; gap: 4px; }
  1890. .customer-detail-modal .detail-item-label { color: #89948f; font-size: 11px; }
  1891. .customer-detail-modal .detail-item-value { color: #2b3c34; font-size: 12px; line-height: 1.5; word-break: break-word; }
  1892. .customer-detail-modal .detail-list { display: grid; gap: 8px; }
  1893. .customer-detail-modal .detail-list.compact { gap: 6px; }
  1894. .customer-detail-modal .detail-list-item {
  1895. display: grid;
  1896. grid-template-columns: auto minmax(0, 1fr);
  1897. align-items: center;
  1898. gap: 10px;
  1899. padding: 10px 12px;
  1900. border-radius: 10px;
  1901. background: #f7f9f8;
  1902. }
  1903. .customer-detail-modal .detail-list-item > div { min-width: 0; }
  1904. .customer-detail-modal .detail-list-item > div > div:first-child { color: #34443c; font-size: 12px; font-weight: 650; }
  1905. .customer-detail-modal .detail-muted { color: #8e9a93; font-size: 11px; }
  1906. .customer-detail-modal .detail-empty { padding: 20px; border-radius: 10px; color: #8e9a93; background: #f7f9f8; font-size: 12px; text-align: center; }
  1907. .customer-detail-modal .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  1908. .customer-detail-modal .detail-tags .tag { padding: 4px 10px; border-radius: 999px; color: #2f7258; background: #e7f4ed; font-size: 11px; }
  1909. .customer-detail-modal .detail-id-line { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f0; color: #9aa49d; font-size: 11px; }
  1910. .customer-detail-modal .detail-actions {
  1911. display: flex;
  1912. justify-content: flex-end;
  1913. gap: 10px;
  1914. margin: 18px 26px 0;
  1915. }
  1916. .customer-detail-modal .raw-toggle {
  1917. display: flex;
  1918. align-items: center;
  1919. gap: 7px;
  1920. margin: 18px 26px 0;
  1921. padding: 11px 13px;
  1922. border: 1px solid #e1e7e4;
  1923. border-radius: 10px;
  1924. color: #65746d;
  1925. background: #f7f9f8;
  1926. cursor: pointer;
  1927. font-size: 11px;
  1928. font-weight: 650;
  1929. }
  1930. .customer-detail-modal .raw-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; transition: transform .18s ease; }
  1931. .customer-detail-modal .raw-toggle.open svg { transform: rotate(180deg); }
  1932. .customer-detail-modal .raw-panel {
  1933. display: none;
  1934. max-height: 360px;
  1935. margin: 10px 26px 0;
  1936. padding: 14px;
  1937. overflow: auto;
  1938. border: 1px solid #dde5e1;
  1939. border-radius: 10px;
  1940. color: #4d5f56;
  1941. background: #f5f8f6;
  1942. font: 10px/1.65 Consolas, "SFMono-Regular", monospace;
  1943. white-space: pre-wrap;
  1944. word-break: break-word;
  1945. }
  1946. .customer-detail-modal > .modal-actions {
  1947. position: sticky;
  1948. bottom: 0;
  1949. z-index: 3;
  1950. margin: 18px 0 0;
  1951. padding: 14px 26px;
  1952. border-top: 1px solid #e9eeec;
  1953. background: rgba(255,255,255,.96);
  1954. backdrop-filter: blur(10px);
  1955. }
  1956. @media (max-width: 700px) {
  1957. .customer-detail-modal-overlay { align-items: flex-end; padding: 0; }
  1958. .customer-detail-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  1959. .customer-detail-modal > .modal-title { padding: 18px 18px 15px; font-size: 18px; }
  1960. .customer-detail-modal .detail-card { margin: 14px 14px 0; }
  1961. .customer-detail-modal .detail-grid { grid-template-columns: 1fr; }
  1962. .customer-detail-modal .detail-actions,
  1963. .customer-detail-modal .raw-toggle,
  1964. .customer-detail-modal .raw-panel { margin: 14px 14px 0; }
  1965. .customer-detail-modal > .modal-actions { padding: 12px 14px; }
  1966. .customer-detail-modal > .modal-actions .btn { flex: 1; min-height: 44px; }
  1967. }
  1968. /* Customer selector */
  1969. .customer-selector-modal-overlay { align-items: flex-start; padding: 24px; overflow-x: hidden; overflow-y: auto; }
  1970. .customer-selector-modal { width: min(100%, 760px); max-width: 760px; max-height: calc(100vh - 48px); padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; box-shadow: 0 28px 80px rgba(20,34,44,.24); }
  1971. .customer-selector-modal > .modal-title { position: sticky; top: 0; z-index: 3; margin: 0; padding: 21px 24px 18px; border-bottom: 1px solid #e8edeb; color: #26362f; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); font-size: 20px; }
  1972. .customer-selector-modal > .form-group { padding: 20px 24px 4px; }
  1973. .customer-selector-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 150px; gap: 9px; }
  1974. .customer-selector-search, .customer-selector-filter { width: 100%; min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid #dbe3df; border-radius: 9px; outline: 0; color: #33433b; background: #fff; font: inherit; font-size: 12px; }
  1975. .customer-selector-search:focus, .customer-selector-filter:focus { border-color: #4e9677; box-shadow: 0 0 0 3px rgba(44,126,91,.1); }
  1976. .customer-selector-count { margin: 13px 1px 8px; color: #77857e; font-size: 10px; }
  1977. .customer-selector-list { min-height: 260px; max-height: 420px; display: grid; align-content: start; gap: 7px; overflow-y: auto; padding: 6px; border: 1px solid #e2e8e5; border-radius: 12px; background: #f8faf9; }
  1978. .customer-selector-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; color: #34433c; background: #fff; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
  1979. .customer-selector-item:hover { border-color: #ceddd6; background: #fbfdfc; }
  1980. .customer-selector-item.selected { border-color: #9ecdb9; background: #eef8f3; box-shadow: inset 3px 0 0 #2d8664; }
  1981. .customer-selector-item input { width: 18px; height: 18px; margin: 0; accent-color: #25815f; cursor: pointer; }
  1982. .customer-selector-info { min-width: 0; }
  1983. .customer-selector-name { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #293a32; font-size: 12px; font-weight: 700; }
  1984. .customer-selector-phone { margin-top: 4px; overflow: hidden; color: #849088; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  1985. .customer-selector-empty { min-height: 240px; display: grid; place-items: center; color: #87938d; font-size: 12px; text-align: center; }
  1986. .customer-selector-empty.error { color: #a95a4c; }
  1987. .customer-selector-pagination { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; }
  1988. .customer-selector-modal > .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 16px 0 0; padding: 14px 24px; border-top: 1px solid #e8edeb; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  1989. @media (max-width: 700px) {
  1990. .portrait-modal-overlay { align-items: flex-end; padding: 0; }
  1991. .portrait-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  1992. .portrait-modal > .modal-title { padding: 18px 18px 15px; font-size: 18px; }
  1993. .portrait-profile { padding: 18px; }
  1994. .portrait-hero { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
  1995. .portrait-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
  1996. .portrait-name { font-size: 18px; }
  1997. .portrait-meta { grid-column: 1 / -1; min-width: 0; padding: 10px 0 0; border-top: 1px solid #dfe9e4; text-align: left; }
  1998. .portrait-highlight-grid, .portrait-insight-grid { grid-template-columns: 1fr; }
  1999. .portrait-section { margin: 0 14px 14px; padding: 14px; }
  2000. .portrait-empty-panel { margin: 0 14px 14px; }
  2001. .portrait-modal .raw-toggle { margin: 0 14px; }
  2002. .portrait-modal .raw-panel { margin: 8px 14px 0; }
  2003. .portrait-modal > .modal-actions { padding: 12px 14px; }
  2004. .portrait-modal > .modal-actions .btn { flex: 1; min-height: 44px; }
  2005. .customer-selector-modal-overlay { align-items: flex-end; padding: 0; }
  2006. .customer-selector-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  2007. .customer-selector-modal > .modal-title { padding: 18px 18px 15px; font-size: 18px; }
  2008. .customer-selector-modal > .form-group { padding: 15px 14px 2px; }
  2009. .customer-selector-filters { grid-template-columns: 1fr; }
  2010. .customer-selector-list { min-height: 240px; max-height: 46vh; }
  2011. .customer-selector-modal > .modal-actions { padding: 12px 14px; }
  2012. .customer-selector-modal > .modal-actions .btn { flex: 1; min-height: 44px; }
  2013. }
  2014. .modal.allowlist-modal {
  2015. width: min(92vw, 700px);
  2016. max-width: 700px;
  2017. max-height: min(760px, calc(100vh - 40px));
  2018. overflow: hidden;
  2019. padding: 0;
  2020. }
  2021. body.allowlist-modal-open { overflow: hidden; }
  2022. .allowlist-modal .modal-title {
  2023. margin: 0;
  2024. padding: 22px 24px 16px;
  2025. border-bottom: 1px solid #e8eeeb;
  2026. }
  2027. .allowlist-intro {
  2028. padding: 16px 24px 12px;
  2029. }
  2030. .allowlist-intro strong,
  2031. .allowlist-intro span { display: block; }
  2032. .allowlist-intro strong { color: #31433c; font-size: 14px; }
  2033. .allowlist-intro span { margin-top: 4px; color: #7f8b86; font-size: 12px; line-height: 1.5; }
  2034. .allowlist-toolbar {
  2035. display: grid;
  2036. grid-template-columns: minmax(0, 1fr) auto;
  2037. gap: 10px;
  2038. padding: 0 24px;
  2039. }
  2040. .allowlist-toolbar input,
  2041. .allowlist-manual input {
  2042. width: 100%;
  2043. height: 38px;
  2044. padding: 0 12px;
  2045. border: 1px solid #dce5e1;
  2046. border-radius: 7px;
  2047. outline: none;
  2048. color: #34443e;
  2049. background: #fff;
  2050. font: inherit;
  2051. font-size: 12px;
  2052. }
  2053. .allowlist-toolbar input:focus,
  2054. .allowlist-manual input:focus { border-color: #4c9277; box-shadow: 0 0 0 3px rgba(76,146,119,.12); }
  2055. .allowlist-summary {
  2056. min-height: 32px;
  2057. display: flex;
  2058. align-items: center;
  2059. justify-content: space-between;
  2060. gap: 16px;
  2061. padding: 8px 24px 6px;
  2062. color: #4b685d;
  2063. font-size: 11px;
  2064. }
  2065. .allowlist-summary em { color: #aa6f24; font-style: normal; text-align: right; }
  2066. .allowlist-contact-list {
  2067. height: 330px;
  2068. overflow-y: auto;
  2069. margin: 0 24px;
  2070. border: 1px solid #e2e9e6;
  2071. border-radius: 7px;
  2072. background: #fafcfb;
  2073. }
  2074. .allowlist-contact {
  2075. min-height: 62px;
  2076. display: grid;
  2077. grid-template-columns: auto auto minmax(0, 1fr) auto;
  2078. align-items: center;
  2079. gap: 11px;
  2080. padding: 10px 12px;
  2081. border-bottom: 1px solid #e7ecea;
  2082. cursor: pointer;
  2083. transition: background .15s ease;
  2084. }
  2085. .allowlist-contact:last-child { border-bottom: 0; }
  2086. .allowlist-contact:hover { background: #f1f7f4; }
  2087. .allowlist-contact.selected { background: #edf7f2; }
  2088. .allowlist-contact input { width: 16px; height: 16px; accent-color: #347b61; }
  2089. .allowlist-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #23624d; background: #dcefe7; font-size: 13px; font-weight: 800; }
  2090. .allowlist-contact-copy { min-width: 0; }
  2091. .allowlist-contact-copy strong,
  2092. .allowlist-contact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  2093. .allowlist-contact-copy strong { color: #35443e; font-size: 13px; }
  2094. .allowlist-contact-copy small { margin-top: 4px; color: #89938f; font-size: 10px; }
  2095. .allowlist-contact > em { color: #929c98; font-size: 10px; font-style: normal; }
  2096. .allowlist-contact.selected > em { color: #2f765d; font-weight: 700; }
  2097. .allowlist-loading,
  2098. .allowlist-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 24px; color: #87928d; font-size: 12px; text-align: center; }
  2099. .allowlist-empty strong { color: #54615c; font-size: 13px; }
  2100. .allowlist-empty.error strong { color: #a24536; }
  2101. .allowlist-manual { margin: 12px 24px 0; color: #78847f; font-size: 11px; }
  2102. .allowlist-manual summary { cursor: pointer; }
  2103. .allowlist-manual > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 9px; }
  2104. .allowlist-manual small { display: block; min-height: 18px; padding-top: 4px; color: #b14535; }
  2105. .allowlist-modal .modal-actions { margin: 14px 0 0; padding: 14px 24px 20px; border-top: 1px solid #e8eeeb; }
  2106. @media (max-width: 620px) {
  2107. .modal.allowlist-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  2108. .allowlist-modal .modal-title,
  2109. .allowlist-intro { padding-left: 16px; padding-right: 16px; }
  2110. .allowlist-toolbar { grid-template-columns: 1fr; padding: 0 16px; }
  2111. .allowlist-summary { align-items: flex-start; flex-direction: column; gap: 3px; padding-left: 16px; padding-right: 16px; }
  2112. .allowlist-summary em { text-align: left; }
  2113. .allowlist-contact-list { height: 300px; margin: 0 16px; }
  2114. .allowlist-contact { grid-template-columns: auto auto minmax(0, 1fr); }
  2115. .allowlist-contact > em { display: none; }
  2116. .allowlist-manual { margin-left: 16px; margin-right: 16px; }
  2117. .allowlist-modal .modal-actions { padding-left: 16px; padding-right: 16px; }
  2118. }
  2119. body.business-modal-open { overflow: hidden; }
  2120. .business-modal-backdrop {
  2121. position: fixed;
  2122. inset: 0;
  2123. z-index: 220;
  2124. display: grid;
  2125. place-items: center;
  2126. padding: 24px;
  2127. background: rgba(20, 30, 38, .52);
  2128. backdrop-filter: blur(5px);
  2129. animation: fadeIn .18s ease;
  2130. }
  2131. .business-modal {
  2132. width: min(100%, 560px);
  2133. max-height: calc(100vh - 48px);
  2134. overflow: auto;
  2135. border: 1px solid rgba(255, 255, 255, .75);
  2136. border-radius: 20px;
  2137. background: #fff;
  2138. box-shadow: 0 28px 80px rgba(20, 34, 44, .24);
  2139. animation: businessModalIn .22s ease;
  2140. }
  2141. @keyframes businessModalIn {
  2142. from { opacity: 0; transform: translateY(10px) scale(.985); }
  2143. to { opacity: 1; transform: translateY(0) scale(1); }
  2144. }
  2145. .business-modal-header {
  2146. display: flex;
  2147. align-items: flex-start;
  2148. justify-content: space-between;
  2149. gap: 24px;
  2150. padding: 25px 27px 20px;
  2151. border-bottom: 1px solid #edf0f2;
  2152. background: linear-gradient(145deg, #f8fbfa 0%, #fff 66%);
  2153. }
  2154. .business-modal-header > div > span {
  2155. display: block;
  2156. margin-bottom: 7px;
  2157. color: #178a69;
  2158. font-size: 10px;
  2159. font-weight: 800;
  2160. letter-spacing: .12em;
  2161. }
  2162. .business-modal-header h3 { margin: 0; color: #1e2a32; font-size: 21px; line-height: 1.3; }
  2163. .business-modal-header p { margin: 7px 0 0; color: #68757d; font-size: 13px; line-height: 1.65; white-space: pre-line; }
  2164. .business-modal-close {
  2165. flex: 0 0 34px;
  2166. width: 34px;
  2167. height: 34px;
  2168. border: 0;
  2169. border-radius: 10px;
  2170. color: #7d878e;
  2171. background: #f1f4f3;
  2172. font-size: 22px;
  2173. line-height: 1;
  2174. cursor: pointer;
  2175. }
  2176. .business-modal-close:hover { color: #25333b; background: #e7ecea; }
  2177. .business-modal-close:focus-visible,
  2178. .business-modal-actions .btn:focus-visible { outline: 3px solid rgba(42, 154, 119, .22); outline-offset: 2px; }
  2179. .business-modal-form { padding: 22px 27px 25px; }
  2180. .business-modal-fields { display: grid; gap: 16px; }
  2181. .business-modal-field { display: grid; gap: 7px; }
  2182. .business-modal-field > span { color: #38454d; font-size: 13px; font-weight: 650; }
  2183. .business-modal-field > span em { margin-left: 3px; color: #d9574f; font-style: normal; }
  2184. .business-modal-field input,
  2185. .business-modal-field textarea,
  2186. .business-modal-field select {
  2187. width: 100%;
  2188. min-height: 43px;
  2189. padding: 10px 12px;
  2190. border: 1px solid #d9e0e3;
  2191. border-radius: 10px;
  2192. outline: none;
  2193. color: #1f2c34;
  2194. background: #fff;
  2195. font: inherit;
  2196. transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  2197. }
  2198. .business-modal-field input:focus,
  2199. .business-modal-field textarea:focus,
  2200. .business-modal-field select:focus { border-color: #2a9a77; box-shadow: 0 0 0 3px rgba(42, 154, 119, .12); }
  2201. .business-modal-field.readonly input { color: #67737b; background: #f5f7f7; }
  2202. .business-modal-field small { color: #929ba1; font-size: 11px; line-height: 1.5; }
  2203. .business-modal-field.invalid input,
  2204. .business-modal-field.invalid textarea,
  2205. .business-modal-field.invalid select { border-color: #dd655d; box-shadow: 0 0 0 3px rgba(221, 101, 93, .1); }
  2206. .business-modal-shortcuts { margin-top: 17px; }
  2207. .business-modal-shortcuts > span { display: block; margin-bottom: 8px; color: #78848c; font-size: 11px; }
  2208. .business-modal-shortcuts > div { display: flex; flex-wrap: wrap; gap: 8px; }
  2209. .business-modal-shortcuts button {
  2210. padding: 7px 11px;
  2211. border: 1px solid #dce8e4;
  2212. border-radius: 999px;
  2213. color: #26775f;
  2214. background: #f4faf8;
  2215. font-size: 12px;
  2216. cursor: pointer;
  2217. }
  2218. .business-modal-shortcuts button:hover,
  2219. .business-modal-shortcuts button:focus { border-color: #60b79b; background: #eaf7f2; outline: none; }
  2220. .business-modal-live-warning {
  2221. display: flex;
  2222. gap: 11px;
  2223. margin-top: 19px;
  2224. padding: 13px 14px;
  2225. border: 1px solid #f1d6a5;
  2226. border-radius: 12px;
  2227. color: #815917;
  2228. background: #fffaf0;
  2229. }
  2230. .business-modal-live-warning > i { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #d99a2b; font-size: 12px; font-style: normal; font-weight: 800; }
  2231. .business-modal-live-warning strong,
  2232. .business-modal-live-warning span { display: block; }
  2233. .business-modal-live-warning strong { font-size: 12px; }
  2234. .business-modal-live-warning span { margin-top: 3px; font-size: 11px; line-height: 1.55; }
  2235. .business-modal-error { margin: 13px 0 0; color: #c3443d; font-size: 12px; }
  2236. .business-modal-dont-ask { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #5c6f66; font-size: 12px; cursor: pointer; user-select: none; }
  2237. .business-modal-dont-ask input { width: 14px; height: 14px; margin: 0; accent-color: #3f9c7c; cursor: pointer; }
  2238. .business-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
  2239. .business-modal-confirm { min-width: 128px; }
  2240. .business-modal-confirm.danger { border-color: #c94b43; color: #fff; background: #c94b43; }
  2241. .business-modal-confirm.danger:hover { border-color: #b33f38; background: #b33f38; }
  2242. @media (max-width: 600px) {
  2243. .business-modal-backdrop { align-items: end; padding: 0; }
  2244. .business-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  2245. .business-modal-header { padding: 22px 20px 17px; }
  2246. .business-modal-form { padding: 19px 20px 22px; }
  2247. .business-modal-actions .btn { flex: 1; }
  2248. }
  2249. @media (prefers-reduced-motion: reduce) {
  2250. .business-modal-backdrop,
  2251. .business-modal { animation: none; }
  2252. }
  2253. .agent-session-modal-status { padding: 12px 14px; border-radius: 10px; color: #6d7673; background: #f4f6f5; }
  2254. .agent-session-modal-status.ready { color: #146a4f; background: #eaf7f2; }
  2255. .agent-session-modal-status strong,
  2256. .agent-session-modal-status span { display: block; }
  2257. .agent-session-modal-status span { margin-top: 4px; font-size: 12px; line-height: 1.6; }
  2258. .agent-session-modal dl { margin: 16px 0; }
  2259. .agent-session-modal dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0ee; }
  2260. .agent-session-modal dt { color: var(--text-muted); font-size: 12px; }
  2261. .agent-session-modal dd { margin: 0; color: var(--text-main); font-size: 12px; word-break: break-word; }
  2262. .agent-session-modal label { display: block; margin: 12px 0 6px; color: var(--text-muted); font-size: 12px; }
  2263. .agent-session-modal pre { margin: 0; padding: 12px; overflow-x: auto; border: 1px solid #dfe8e3; border-radius: 8px; color: #155b45; background: #f7fbf9; font-size: 11px; white-space: pre-wrap; word-break: break-all; }
  2264. .agent-session-modal p { margin: 12px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
  2265. .tag-list {
  2266. display: flex;
  2267. flex-wrap: wrap;
  2268. gap: 8px;
  2269. margin-top: 10px;
  2270. }
  2271. .tag {
  2272. display: inline-flex;
  2273. align-items: center;
  2274. gap: 4px;
  2275. padding: 5px 12px;
  2276. background: var(--brand-bg);
  2277. color: var(--brand-dark);
  2278. border-radius: 999px;
  2279. font-size: 13px;
  2280. font-weight: 500;
  2281. }
  2282. .tag button {
  2283. background: none;
  2284. border: none;
  2285. color: inherit;
  2286. cursor: pointer;
  2287. font-size: 14px;
  2288. line-height: 1;
  2289. padding: 0;
  2290. }
  2291. .skeleton {
  2292. background: linear-gradient(90deg, var(--border) 25%, #f5f5f5 50%, var(--border) 75%);
  2293. background-size: 200% 100%;
  2294. animation: shimmer 1.2s infinite;
  2295. border-radius: var(--radius-sm);
  2296. }
  2297. @keyframes shimmer {
  2298. 0% { background-position: 200% 0; }
  2299. 100% { background-position: -200% 0; }
  2300. }
  2301. .status-dot {
  2302. width: 8px;
  2303. height: 8px;
  2304. border-radius: 50%;
  2305. display: inline-block;
  2306. margin-right: 6px;
  2307. }
  2308. .status-dot.online { background: var(--success); box-shadow: 0 0 0 3px rgba(82,196,26,0.15); }
  2309. .status-dot.offline { background: var(--text-muted); }
  2310. .login-page {
  2311. display: flex;
  2312. align-items: center;
  2313. justify-content: center;
  2314. min-height: calc(100vh - 68px);
  2315. padding: 40px 20px;
  2316. }
  2317. .login-card {
  2318. background: var(--panel-bg);
  2319. border: 1px solid var(--border);
  2320. border-radius: var(--radius-lg);
  2321. padding: 40px;
  2322. width: 100%;
  2323. max-width: 420px;
  2324. text-align: center;
  2325. box-shadow: var(--shadow-hover);
  2326. }
  2327. .login-card h2 {
  2328. margin: 0 0 10px;
  2329. font-size: 22px;
  2330. }
  2331. .login-card p {
  2332. color: var(--text-muted);
  2333. font-size: 14px;
  2334. margin-bottom: 28px;
  2335. }
  2336. .qr-wrap {
  2337. background: var(--page-bg);
  2338. border: 1px solid var(--border);
  2339. border-radius: var(--radius-md);
  2340. padding: 20px;
  2341. margin-bottom: 20px;
  2342. }
  2343. .qr-wrap img {
  2344. width: 220px;
  2345. height: 220px;
  2346. border-radius: var(--radius-sm);
  2347. background: #fff;
  2348. padding: 8px;
  2349. }
  2350. .qr-status {
  2351. font-size: 14px;
  2352. color: var(--text-secondary);
  2353. margin-top: 14px;
  2354. }
  2355. .status-cards {
  2356. display: grid;
  2357. grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  2358. gap: 20px;
  2359. margin-bottom: 24px;
  2360. }
  2361. .status-card {
  2362. background: var(--panel-bg);
  2363. border: 1px solid var(--border);
  2364. border-radius: var(--radius-md);
  2365. padding: 22px;
  2366. display: flex;
  2367. align-items: flex-start;
  2368. gap: 16px;
  2369. box-shadow: var(--shadow);
  2370. transition: all 0.2s;
  2371. }
  2372. .status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  2373. .status-icon {
  2374. width: 44px;
  2375. height: 44px;
  2376. border-radius: var(--radius-sm);
  2377. display: flex;
  2378. align-items: center;
  2379. justify-content: center;
  2380. flex-shrink: 0;
  2381. }
  2382. .status-icon.green { background: var(--success-bg); color: var(--success); }
  2383. .status-icon.orange { background: var(--warning-bg); color: var(--warning); }
  2384. .status-icon.red { background: var(--error-bg); color: var(--error); }
  2385. .status-icon.blue { background: var(--info-bg); color: var(--info); }
  2386. .status-icon svg { width: 24px; height: 24px; fill: currentColor; }
  2387. .status-content { flex: 1; }
  2388. .status-content h3 {
  2389. margin: 0 0 4px;
  2390. font-size: 15px;
  2391. }
  2392. .status-content p {
  2393. margin: 0;
  2394. font-size: 13px;
  2395. color: var(--text-muted);
  2396. }
  2397. .status-content .status-detail {
  2398. margin-top: 10px;
  2399. padding-top: 10px;
  2400. border-top: 1px solid var(--border);
  2401. font-size: 13px;
  2402. color: var(--text-secondary);
  2403. }
  2404. .hint-box {
  2405. background: var(--brand-bg);
  2406. border: 1px solid #ffd591;
  2407. border-radius: var(--radius-sm);
  2408. padding: 14px 16px;
  2409. font-size: 13px;
  2410. color: var(--brand-dark);
  2411. margin-bottom: 20px;
  2412. display: flex;
  2413. align-items: flex-start;
  2414. gap: 10px;
  2415. }
  2416. .hint-box svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; margin-top: 1px; }
  2417. /* ==================== Unified Skills & Knowledge Library ==================== */
  2418. .workspace-hero {
  2419. display: flex;
  2420. align-items: flex-end;
  2421. justify-content: space-between;
  2422. gap: 30px;
  2423. margin-bottom: 18px;
  2424. padding: 28px 30px;
  2425. overflow: hidden;
  2426. border-radius: 20px;
  2427. color: #fff;
  2428. background: linear-gradient(135deg, #17243d, #21365e 62%, #315985);
  2429. box-shadow: 0 16px 36px rgba(21,37,67,.16);
  2430. }
  2431. .knowledge-hero { background: linear-gradient(135deg, #113a2e, #17674f 62%, #49804f); }
  2432. .workspace-hero > div:first-child { max-width: 650px; }
  2433. .workspace-hero > div:first-child > span { color: rgba(255,255,255,.65); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
  2434. .workspace-hero h2 { margin: 7px 0 5px; font-size: 30px; }
  2435. .workspace-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.65; }
  2436. .workspace-stat-row { display: flex; flex: 0 0 auto; gap: 8px; }
  2437. .workspace-stat-row > div { min-width: 88px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
  2438. .workspace-stat-row strong, .workspace-stat-row span { display: block; }
  2439. .workspace-stat-row strong { font-size: 22px; }
  2440. .workspace-stat-row span { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 9px; }
  2441. .skill-toolbar {
  2442. display: flex;
  2443. align-items: center;
  2444. justify-content: space-between;
  2445. gap: 20px;
  2446. margin-bottom: 14px;
  2447. padding: 14px 18px;
  2448. border: 1px solid var(--border);
  2449. border-radius: 14px;
  2450. background: #fff;
  2451. box-shadow: var(--shadow);
  2452. }
  2453. .skill-toolbar strong, .skill-toolbar span { display: block; }
  2454. .skill-toolbar strong { font-size: 14px; }
  2455. .skill-toolbar span { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
  2456. .skill-toolbar input { width: min(360px, 42vw); padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; outline: 0; font: inherit; }
  2457. .skill-toolbar input:focus { border-color: #315985; box-shadow: 0 0 0 3px rgba(49,89,133,.08); }
  2458. .skill-hub-layout {
  2459. min-height: 680px;
  2460. display: grid;
  2461. grid-template-columns: 210px minmax(380px, 1fr) minmax(300px, .7fr);
  2462. overflow: hidden;
  2463. border: 1px solid var(--border);
  2464. border-radius: 18px;
  2465. background: #fff;
  2466. box-shadow: var(--shadow);
  2467. }
  2468. .skill-package-list { padding: 10px; border-right: 1px solid var(--border); background: #f8fafc; }
  2469. .skill-package-item { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; margin-bottom: 7px; padding: 13px 12px; border: 0; border-radius: 10px; text-align: left; color: #485466; background: transparent; cursor: pointer; }
  2470. .skill-package-item:hover { background: #edf2f8; }
  2471. .skill-package-item.active { color: #1c4673; background: #e8f1fb; box-shadow: inset 3px 0 #315985; }
  2472. .skill-package-item span { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  2473. .skill-package-item em { min-width: 22px; padding: 2px 5px; border-radius: 10px; text-align: center; background: rgba(49,89,133,.1); font-size: 9px; font-style: normal; }
  2474. .skill-package-item small { grid-column: 1 / -1; color: #8a95a4; font-size: 8px; }
  2475. .skill-card-panel { min-width: 0; padding: 18px; overflow-y: auto; max-height: 780px; }
  2476. .skill-card-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
  2477. .skill-card-panel > header strong, .skill-card-panel > header span { display: block; }
  2478. .skill-card-panel > header strong { font-size: 15px; }
  2479. .skill-card-panel > header span { margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
  2480. .skill-card-panel > header code { max-width: 44%; overflow: hidden; color: #8894a4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  2481. .skill-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  2482. .skill-capability-card { min-height: 145px; padding: 15px; border: 1px solid #e4e9ef; border-radius: 13px; text-align: left; color: var(--text); background: #fff; cursor: pointer; transition: .18s ease; }
  2483. .skill-capability-card:hover { transform: translateY(-2px); border-color: #aac3df; box-shadow: 0 10px 22px rgba(34,66,104,.09); }
  2484. .skill-capability-card.active { border-color: #5f8bb7; background: #f5f9fe; box-shadow: inset 0 0 0 1px #5f8bb7; }
  2485. .skill-capability-card > div { display: flex; justify-content: space-between; gap: 10px; }
  2486. .skill-capability-card > div span { font-size: 12px; font-weight: 750; }
  2487. .skill-capability-card > div em { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; color: #315985; background: #e8f1fb; font-size: 8px; font-style: normal; }
  2488. .skill-capability-card p { min-height: 47px; margin: 10px 0; overflow: hidden; color: #758091; font-size: 9px; line-height: 1.65; }
  2489. .skill-capability-card footer { display: flex; flex-wrap: wrap; gap: 4px; }
  2490. .skill-capability-card footer i { padding: 3px 6px; border-radius: 5px; color: #697687; background: #f0f3f6; font-size: 8px; font-style: normal; }
  2491. .skill-detail-panel { min-width: 0; overflow-y: auto; max-height: 780px; border-left: 1px solid var(--border); background: #fbfcfe; }
  2492. .skill-detail-heading { padding: 20px; border-bottom: 1px solid var(--border); background: #fff; }
  2493. .skill-detail-heading > span { color: #6f86a2; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
  2494. .skill-detail-heading h3 { margin: 6px 0 7px; font-size: 18px; }
  2495. .skill-detail-heading p { margin: 0 0 14px; color: var(--text-muted); font-size: 10px; line-height: 1.6; }
  2496. .skill-markdown { padding: 20px; }
  2497. .markdown-view { color: #3e4a57; font-size: 11px; line-height: 1.75; }
  2498. .markdown-view h2, .markdown-view h3, .markdown-view h4 { margin: 20px 0 8px; color: #1f2d3c; }
  2499. .markdown-view h2 { font-size: 20px; }
  2500. .markdown-view h3 { font-size: 16px; }
  2501. .markdown-view h4 { font-size: 13px; }
  2502. .markdown-view p { margin: 7px 0; }
  2503. .markdown-view ul, .markdown-view ol { margin: 8px 0 8px 20px; padding: 0; }
  2504. .markdown-view li { margin: 4px 0; }
  2505. .markdown-view code { padding: 2px 5px; border-radius: 4px; color: #b54d20; background: #fff1eb; font-family: Consolas, monospace; font-size: .92em; }
  2506. .markdown-view pre, .code-view { margin: 12px 0; overflow: auto; padding: 15px; border: 1px solid #dfe6e9; border-radius: 10px; color: #dce7e2; background: #182421; font: 10px/1.6 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
  2507. .markdown-view pre code { padding: 0; color: inherit; background: transparent; }
  2508. .markdown-view blockquote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid #4e9b7e; color: #5f736b; background: #eef8f4; }
  2509. .md-table-line { padding: 5px 8px; border-bottom: 1px solid #e8ecea; font-family: Consolas, monospace; font-size: 9px; }
  2510. .knowledge-layout { min-height: 720px; display: grid; grid-template-columns: 285px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  2511. .knowledge-tree-panel { border-right: 1px solid var(--border); background: #f7faf8; }
  2512. .knowledge-tree-panel > header { padding: 16px 17px; border-bottom: 1px solid var(--border); background: #fff; }
  2513. .knowledge-tree-panel > header strong, .knowledge-tree-panel > header span { display: block; }
  2514. .knowledge-tree-panel > header strong { font-size: 14px; }
  2515. .knowledge-tree-panel > header span { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
  2516. .knowledge-tree { max-height: 780px; overflow: auto; padding: 9px 7px 20px; }
  2517. .knowledge-tree-folder { margin: 2px 0; }
  2518. .knowledge-tree-folder > summary { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 8px 8px 8px calc(8px + var(--tree-depth) * 12px); border-radius: 8px; color: #42534d; cursor: pointer; list-style: none; }
  2519. .knowledge-tree-folder > summary:hover { background: #eaf2ee; }
  2520. .knowledge-tree-folder > summary::-webkit-details-marker { display: none; }
  2521. .knowledge-tree-folder > summary span { color: #348064; font-size: 10px; }
  2522. .knowledge-tree-folder > summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  2523. .knowledge-tree-folder > summary em { padding: 2px 5px; border-radius: 8px; color: #779087; background: #e5eeea; font-size: 8px; font-style: normal; }
  2524. .knowledge-tree-file { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 7px 7px 7px calc(8px + var(--tree-depth) * 12px); border: 0; border-radius: 7px; text-align: left; color: #63726c; background: transparent; cursor: pointer; }
  2525. .knowledge-tree-file:hover { background: #edf4f1; }
  2526. .knowledge-tree-file.active { color: #17674f; background: #deefe7; box-shadow: inset 3px 0 #238463; }
  2527. .knowledge-tree-file > span { display: grid; place-items: center; color: #3c8a6d; font: 700 8px/1 Consolas, monospace; }
  2528. .knowledge-tree-file strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  2529. .knowledge-tree-file small { color: #9aa7a2; font-size: 7px; }
  2530. .knowledge-viewer { min-width: 0; max-height: 820px; overflow: auto; }
  2531. .knowledge-view-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border); background: #fff; }
  2532. .knowledge-view-header > div > span { color: #438269; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
  2533. .knowledge-view-header h3 { margin: 5px 0 4px; font-size: 18px; }
  2534. .knowledge-view-header p { margin: 0; color: var(--text-muted); font-size: 9px; }
  2535. .knowledge-view-header code { max-width: 48%; overflow: hidden; color: #8b9893; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  2536. .knowledge-view-header > em { padding: 4px 7px; border-radius: 6px; color: #257254; background: #e3f2eb; font-size: 8px; font-style: normal; }
  2537. .knowledge-viewer > .markdown-view { padding: 22px 26px 40px; }
  2538. .knowledge-viewer > .code-view { margin: 20px 22px 30px; }
  2539. .json-summary { margin: 18px 22px -5px; color: #668078; font-size: 10px; }
  2540. .meeting-workbench { min-width: 0; background: #f7faf8; }
  2541. .meeting-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 18px 0; }
  2542. .meeting-stat-row > div { padding: 11px 13px; border: 1px solid #e0ebe6; border-radius: 10px; background: #fff; }
  2543. .meeting-stat-row strong, .meeting-stat-row span { display: block; }
  2544. .meeting-stat-row strong { overflow: hidden; color: #285e4b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  2545. .meeting-stat-row span { margin-top: 3px; color: #8a9993; font-size: 8px; }
  2546. .meeting-cli-banner { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, auto) auto; align-items: center; gap: 10px; margin: 12px 18px; padding: 12px 14px; border: 1px solid; border-radius: 11px; }
  2547. .meeting-cli-banner.ready { border-color: #b9dfce; background: #edf8f3; }
  2548. .meeting-cli-banner.waiting { border-color: #efd2a2; background: #fff8eb; }
  2549. .meeting-cli-banner.blocked { border-color: #e8bea9; background: #fff3ed; }
  2550. .meeting-cli-banner > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 8px; }
  2551. .meeting-cli-banner i { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #d9952f; box-shadow: 0 0 0 3px rgba(217,149,47,.13); }
  2552. .meeting-cli-banner.ready i { background: #278263; box-shadow: 0 0 0 3px rgba(39,130,99,.13); }
  2553. .meeting-cli-banner.blocked i { background: #cf6748; box-shadow: 0 0 0 3px rgba(207,103,72,.13); }
  2554. .meeting-cli-banner strong { color: #44554e; font-size: 10px; }
  2555. .meeting-cli-banner span { grid-column: 2; color: #7d8d87; font-size: 8px; }
  2556. .meeting-cli-banner code { overflow: hidden; padding: 7px 9px; border-radius: 7px; color: #7a6543; background: rgba(255,255,255,.72); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  2557. .meeting-sync-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 90px auto; align-items: end; gap: 8px; padding: 0 18px 14px; }
  2558. .meeting-sync-form label span { display: block; margin: 0 0 5px 2px; color: #75867f; font-size: 8px; font-weight: 700; }
  2559. .meeting-sync-form input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #dbe6e1; border-radius: 8px; color: #43544d; background: #fff; font-size: 9px; }
  2560. .meeting-sync-form .btn { height: 34px; }
  2561. .meeting-browser { min-height: 520px; display: grid; grid-template-columns: 245px minmax(0, 1fr); border-top: 1px solid #dfe8e4; background: #fff; }
  2562. .meeting-browser > aside { border-right: 1px solid #e2ebe7; background: #f8fbf9; }
  2563. .meeting-browser > aside > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px 9px; color: #54665f; font-size: 9px; }
  2564. .meeting-browser > aside > header span { color: #91a09a; font-size: 8px; }
  2565. .meeting-list { max-height: 590px; overflow: auto; padding: 0 7px 14px; }
  2566. .meeting-list-item { width: 100%; margin: 3px 0; padding: 11px 10px; border: 1px solid transparent; border-radius: 10px; text-align: left; color: #52625c; background: transparent; cursor: pointer; }
  2567. .meeting-list-item:hover { border-color: #d9e7e1; background: #fff; }
  2568. .meeting-list-item.active { border-color: #bbdccf; background: #eaf6f0; box-shadow: inset 3px 0 #298264; }
  2569. .meeting-list-item > div, .meeting-list-item footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  2570. .meeting-list-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  2571. .meeting-list-item em { flex: 0 0 auto; padding: 2px 5px; border-radius: 7px; color: #4d806d; background: #e2eee9; font-size: 7px; font-style: normal; }
  2572. .meeting-list-item p { margin: 6px 0; overflow: hidden; color: #85928d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  2573. .meeting-list-item footer { color: #8d9b96; font-size: 7px; }
  2574. .meeting-list-item footer small { color: #2d7d60; font-size: 7px; font-weight: 700; }
  2575. .meeting-browser > main { min-width: 0; }
  2576. .meeting-detail { padding: 18px 20px 34px; }
  2577. .meeting-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid #e6edea; }
  2578. .meeting-detail > header span, .meeting-analysis-summary > span, .meeting-actions header span { color: #348064; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
  2579. .meeting-detail > header h3 { margin: 5px 0 4px; color: #33483f; font-size: 18px; }
  2580. .meeting-detail > header p { margin: 0; color: #82908b; font-size: 9px; }
  2581. .meeting-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 14px 0; }
  2582. .meeting-meta-grid > div { padding: 10px; border: 1px solid #e4ece8; border-radius: 9px; background: #fafcfb; }
  2583. .meeting-meta-grid small, .meeting-meta-grid strong { display: block; }
  2584. .meeting-meta-grid small { color: #92a09a; font-size: 7px; }
  2585. .meeting-meta-grid strong { margin-top: 4px; color: #50625a; font-size: 9px; }
  2586. .meeting-source-note { padding: 13px 14px; border-left: 3px solid #69a58d; border-radius: 0 9px 9px 0; background: #f3f8f6; }
  2587. .meeting-source-note strong { color: #476057; font-size: 9px; }
  2588. .meeting-source-note p { margin: 7px 0; color: #687a73; font-size: 9px; line-height: 1.65; }
  2589. .meeting-source-note small { color: #9aa6a1; font-size: 7px; }
  2590. .meeting-analysis-error { display: flex; gap: 8px; margin-top: 12px; padding: 11px 13px; border: 1px solid #edc2b2; border-radius: 9px; color: #91482e; background: #fff4ef; font-size: 8px; }
  2591. .meeting-analysis-summary { margin-top: 14px; padding: 14px; border: 1px solid #d7e7e0; border-radius: 11px; background: linear-gradient(135deg, #f0f8f4, #f8fbf9); }
  2592. .meeting-analysis-summary h4 { margin: 6px 0; color: #3e554c; font-size: 13px; line-height: 1.55; }
  2593. .meeting-analysis-summary p { margin: 0; color: #87958f; font-size: 8px; }
  2594. .meeting-analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
  2595. .meeting-analysis-grid > section { padding: 12px 13px; border: 1px solid #e2ebe7; border-radius: 10px; background: #fff; }
  2596. .meeting-analysis-grid h4, .meeting-actions h4 { margin: 0 0 8px; color: #4b5e56; font-size: 10px; }
  2597. .meeting-analysis-grid ul { margin: 0; padding-left: 16px; color: #687972; font-size: 8px; line-height: 1.65; }
  2598. .meeting-empty-copy { margin: 0; color: #9aa7a2; font-size: 8px; line-height: 1.6; }
  2599. .meeting-actions { margin-top: 10px; padding: 13px; border: 1px solid #dce8e3; border-radius: 11px; background: #fbfdfc; }
  2600. .meeting-actions > header { display: flex; align-items: center; justify-content: space-between; }
  2601. .meeting-actions > header h4 { margin: 4px 0 8px; }
  2602. .meeting-actions > header > em { padding: 3px 6px; border-radius: 7px; color: #34785f; background: #e5f2ec; font-size: 8px; font-style: normal; }
  2603. .meeting-action-item { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 10px; margin-top: 6px; padding: 10px; border-radius: 9px; background: #fff; box-shadow: 0 1px 6px rgba(33,73,58,.06); }
  2604. .meeting-action-item > i { width: 4px; border-radius: 4px; background: #d3a64d; }
  2605. .meeting-action-item > i.high { background: #d96b55; }
  2606. .meeting-action-item > i.low { background: #5d9f88; }
  2607. .meeting-action-item strong { color: #4b5d56; font-size: 9px; }
  2608. .meeting-action-item p { margin: 4px 0; color: #7c8b85; font-size: 8px; }
  2609. .meeting-action-item small { color: #98a49f; font-size: 7px; }
  2610. .meeting-action-item > em { color: #3c8468; font-size: 9px; font-style: normal; font-weight: 800; }
  2611. .meeting-tags { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #596b64; font-size: 9px; }
  2612. .meeting-tags div { display: flex; flex-wrap: wrap; gap: 5px; }
  2613. .meeting-tags span { padding: 3px 7px; border-radius: 9px; color: #37775f; background: #e5f2ec; font-size: 7px; }
  2614. .office-workbench { min-width: 0; background: #f7faf8; }
  2615. .office-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 18px 0; }
  2616. .office-stat-row > div { padding: 11px 13px; border: 1px solid #e0ebe6; border-radius: 10px; background: #fff; }
  2617. .office-stat-row strong, .office-stat-row span { display: block; }
  2618. .office-stat-row strong { color: #285e4b; font-size: 15px; }
  2619. .office-stat-row span { margin-top: 3px; color: #8a9993; font-size: 8px; }
  2620. .office-cli-banner { display: flex; align-items: center; gap: 10px; margin: 12px 18px; padding: 11px 13px; border: 1px solid; border-radius: 10px; }
  2621. .office-cli-banner.ready { border-color: #b9dfce; background: #edf8f3; }
  2622. .office-cli-banner.blocked { border-color: #e8bea9; background: #fff3ed; }
  2623. .office-cli-banner > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #278263; box-shadow: 0 0 0 3px rgba(39,130,99,.12); }
  2624. .office-cli-banner.blocked > i { background: #cf6748; }
  2625. .office-cli-banner strong, .office-cli-banner span { display: block; }
  2626. .office-cli-banner strong { color: #455a51; font-size: 10px; }
  2627. .office-cli-banner span { margin-top: 3px; color: #7f8f89; font-size: 8px; }
  2628. .office-action-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; padding: 0 18px 14px; }
  2629. .office-action-grid form { padding: 13px; border: 1px solid #e0e9e5; border-radius: 11px; background: #fff; }
  2630. .office-action-grid form header { margin-bottom: 9px; }
  2631. .office-action-grid form header strong, .office-action-grid form header span { display: block; }
  2632. .office-action-grid form header strong { color: #506159; font-size: 10px; }
  2633. .office-action-grid form header span { margin-top: 3px; color: #92a09a; font-size: 8px; }
  2634. .office-action-grid input, .office-action-grid textarea, .todo-toolbar input, .todo-create-form input, .todo-create-form select { width: 100%; margin-bottom: 7px; padding: 8px 9px; border: 1px solid #dbe6e1; border-radius: 8px; color: #45564f; background: #fff; font: 9px/1.45 inherit; }
  2635. .office-action-grid textarea { resize: vertical; }
  2636. .office-browser { min-height: 500px; display: grid; grid-template-columns: 235px minmax(0, 1fr); border-top: 1px solid #dfe8e4; background: #fff; }
  2637. .office-browser > aside { padding: 8px; border-right: 1px solid #e2ebe7; background: #f8fbf9; }
  2638. .office-browser > aside > header { display: flex; justify-content: space-between; padding: 6px 5px 9px; color: #576861; font-size: 9px; }
  2639. .office-list-item { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; margin: 3px 0; padding: 10px; border: 1px solid transparent; border-radius: 9px; text-align: left; color: #56665f; background: transparent; cursor: pointer; }
  2640. .office-list-item:hover { border-color: #d8e6df; background: #fff; }
  2641. .office-list-item.active { border-color: #b9dccd; background: #e9f5ef; box-shadow: inset 3px 0 #288064; }
  2642. .office-list-item strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  2643. .office-list-item span { color: #94a19c; font-size: 7px; }
  2644. .office-list-item small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #2f7d60; font-size: 7px; }
  2645. .office-browser > main { min-width: 0; }
  2646. .doc-detail { padding: 18px 20px 35px; }
  2647. .doc-detail > header { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid #e5ece9; }
  2648. .doc-detail > header span, .doc-analysis > span, .todo-detail > span { color: #348064; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
  2649. .doc-detail > header h3, .todo-detail h3 { margin: 5px 0; color: #364b42; font-size: 18px; }
  2650. .doc-detail > header p { margin: 0; color: #88968f; font-size: 8px; }
  2651. .doc-detail > header > div:last-child { display: flex; align-items: center; gap: 8px; }
  2652. .doc-detail > header a { color: #287b5e; font-size: 8px; }
  2653. .doc-readback-warning { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid #edcf9c; border-radius: 9px; color: #785b2b; background: #fff8eb; font-size: 8px; }
  2654. .doc-readback-warning strong { flex: 0 0 auto; }
  2655. .doc-analysis { margin: 13px 0; padding: 13px; border: 1px solid #d9e8e1; border-radius: 10px; background: #f2f8f5; }
  2656. .doc-analysis > h4 { margin: 6px 0 10px; color: #44594f; font-size: 12px; line-height: 1.5; }
  2657. .doc-analysis > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
  2658. .doc-analysis section { padding: 9px; border-radius: 8px; background: #fff; }
  2659. .doc-analysis section strong { color: #566860; font-size: 8px; }
  2660. .doc-analysis ul { margin: 6px 0 0; padding-left: 15px; color: #74837d; font-size: 8px; line-height: 1.55; }
  2661. .doc-analysis section p { color: #9aa6a1; font-size: 8px; }
  2662. .doc-original { border: 1px solid #e1e9e5; border-radius: 10px; overflow: hidden; }
  2663. .doc-original > header { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e5ece9; color: #52645c; font-size: 9px; }
  2664. .doc-original > header span { color: #96a29d; font-size: 8px; }
  2665. .doc-original .markdown-view { max-height: 480px; overflow: auto; padding: 16px 18px; }
  2666. .todo-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 10px; }
  2667. .todo-toolbar form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
  2668. .todo-toolbar input { margin: 0; }
  2669. .todo-user-results { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
  2670. .todo-user-results button { padding: 7px 10px; border: 1px solid #cfe2d9; border-radius: 8px; text-align: left; color: #4b6258; background: #fff; cursor: pointer; }
  2671. .todo-user-results strong, .todo-user-results span { display: block; font-size: 8px; }
  2672. .todo-user-results span { margin-top: 2px; color: #8e9b96; }
  2673. .todo-create-form { display: grid; grid-template-columns: 1.4fr 1fr 170px 120px auto; gap: 7px; padding: 0 18px 14px; }
  2674. .todo-create-form input, .todo-create-form select { margin: 0; }
  2675. .todo-detail { padding: 24px; }
  2676. .todo-detail .todo-status { display: inline-block; margin: 8px 0 14px; padding: 4px 8px; border-radius: 9px; color: #347a60; background: #e3f1eb; font-size: 8px; }
  2677. .todo-detail .todo-status.done { color: #71807a; background: #edf1ef; }
  2678. .todo-detail dl { display: grid; gap: 7px; margin: 0 0 16px; }
  2679. .todo-detail dl > div { display: grid; grid-template-columns: 75px minmax(0,1fr); padding: 9px 10px; border-radius: 8px; background: #f7faf8; font-size: 9px; }
  2680. .todo-detail dt { color: #8a9892; }
  2681. .todo-detail dd { margin: 0; color: #506159; }
  2682. .todo-detail > p { margin-top: 14px; color: #96a29d; font-size: 8px; }
  2683. .library-empty, .library-error { padding: 35px; text-align: center; color: var(--text-muted); font-size: 11px; }
  2684. .library-empty.large { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  2685. .library-empty strong, .library-empty span { display: block; }
  2686. .library-empty strong { color: #53635d; font-size: 14px; }
  2687. .library-error { margin: 20px; border: 1px solid #efc7b6; border-radius: 12px; color: #934a2e; background: #fff4ef; }
  2688. @media (max-width: 1280px) {
  2689. .skill-hub-layout { grid-template-columns: 190px minmax(360px, 1fr) 290px; }
  2690. }
  2691. @media (max-width: 1050px) {
  2692. .workspace-hero { align-items: stretch; flex-direction: column; }
  2693. .skill-hub-layout { grid-template-columns: 190px minmax(0, 1fr); }
  2694. .skill-detail-panel { grid-column: 1 / -1; max-height: none; border-top: 1px solid var(--border); border-left: 0; }
  2695. .knowledge-layout { grid-template-columns: 235px minmax(0, 1fr); }
  2696. .meeting-cli-banner { grid-template-columns: 1fr auto; }
  2697. .meeting-cli-banner code { grid-column: 1 / -1; }
  2698. .meeting-browser { grid-template-columns: 210px minmax(0, 1fr); }
  2699. .meeting-meta-grid { grid-template-columns: repeat(2, 1fr); }
  2700. .office-browser { grid-template-columns: 205px minmax(0, 1fr); }
  2701. .todo-create-form { grid-template-columns: 1fr 1fr; }
  2702. }
  2703. @media (max-width: 768px) {
  2704. .sidebar { transform: translateX(-100%); }
  2705. .sidebar.open { transform: translateX(0); }
  2706. .sidebar-backdrop { position: fixed; inset: 0; z-index: 90; display: block; border: 0; background: rgba(15, 23, 42, .42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  2707. .sidebar-backdrop.active { opacity: 1; pointer-events: auto; }
  2708. .main { margin-left: 0; }
  2709. .menu-btn { display: block; }
  2710. .content { padding: 20px 16px 40px; }
  2711. .stats-grid { grid-template-columns: repeat(2, 1fr); }
  2712. .account-name { display: none; }
  2713. .topbar { padding: 0 16px; }
  2714. .workspace-stat-row { flex-wrap: wrap; }
  2715. .skill-toolbar { align-items: stretch; flex-direction: column; }
  2716. .skill-toolbar input { width: 100%; }
  2717. .skill-hub-layout, .knowledge-layout { display: block; }
  2718. .skill-package-list { border-right: 0; border-bottom: 1px solid var(--border); }
  2719. .skill-card-grid { grid-template-columns: 1fr; }
  2720. .knowledge-tree-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  2721. .knowledge-tree { max-height: 330px; }
  2722. .meeting-stat-row { grid-template-columns: repeat(2, 1fr); }
  2723. .meeting-cli-banner, .meeting-sync-form, .meeting-browser { display: block; }
  2724. .meeting-cli-banner code, .meeting-cli-banner .btn { display: block; width: 100%; margin-top: 8px; }
  2725. .meeting-sync-form label, .meeting-sync-form .btn { display: block; width: 100%; margin-top: 8px; }
  2726. .meeting-browser > aside { border-right: 0; border-bottom: 1px solid #e2ebe7; }
  2727. .meeting-list { max-height: 260px; }
  2728. .meeting-analysis-grid { grid-template-columns: 1fr; }
  2729. .office-stat-row, .doc-analysis > div { grid-template-columns: 1fr; }
  2730. .office-action-grid, .office-browser, .todo-toolbar, .todo-create-form { display: block; }
  2731. .office-action-grid form, .todo-toolbar form, .todo-create-form input, .todo-create-form select, .todo-create-form .btn { margin-top: 8px; }
  2732. .office-browser > aside { border-right: 0; border-bottom: 1px solid #e2ebe7; }
  2733. }
  2734. /* 社群运营 */
  2735. /* Business overview */
  2736. .overview-root { max-width: 1520px; margin: 0 auto; }
  2737. .overview-page { display: grid; gap: 16px; }
  2738. .overview-command {
  2739. display: grid;
  2740. grid-template-columns: minmax(270px, .72fr) minmax(440px, 1.28fr);
  2741. gap: 30px;
  2742. align-items: center;
  2743. min-height: 190px;
  2744. padding: 26px 30px;
  2745. border: 1px solid #dce4e1;
  2746. border-radius: 12px;
  2747. background: #fff;
  2748. box-shadow: 0 8px 26px rgba(26, 52, 43, .055);
  2749. }
  2750. .overview-command-copy { display: grid; gap: 7px; }
  2751. .overview-command-copy h2 { margin: 0; color: #172b23; font-size: 30px; line-height: 1.25; letter-spacing: 0; }
  2752. .overview-command-copy p { max-width: 520px; margin: 0; color: #64736c; font-size: 13px; line-height: 1.7; }
  2753. .overview-kicker { display: flex; align-items: center; gap: 7px; color: #648076; font-size: 11px; font-weight: 700; }
  2754. .overview-live { width: 8px; height: 8px; border-radius: 50%; background: #a9b2ae; box-shadow: 0 0 0 4px #f0f3f2; }
  2755. .overview-live.online { background: #24a369; box-shadow: 0 0 0 4px #e6f6ee; }
  2756. .overview-query-form { display: grid; gap: 9px; }
  2757. .overview-query-form > label { color: #35483f; font-size: 12px; font-weight: 700; }
  2758. .overview-query-form > div:first-of-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  2759. .overview-query-form input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d7dfdc; border-radius: 8px; color: #1e3028; background: #fbfcfc; font: inherit; }
  2760. .overview-query-form input:focus { border-color: #2a8a64; outline: 3px solid rgba(42, 138, 100, .13); background: #fff; }
  2761. .overview-query-form .btn { min-height: 46px; padding-inline: 19px; background: #237858; border-color: #237858; }
  2762. .overview-query-form .btn:hover { background: #1b684b; border-color: #1b684b; }
  2763. .overview-query-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  2764. .overview-query-chips button { min-height: 30px; padding: 5px 10px; border: 1px solid #e0e5e3; border-radius: 999px; color: #617069; background: #fff; font: inherit; font-size: 11px; cursor: pointer; transition: border-color .18s, color .18s, background-color .18s; }
  2765. .overview-query-chips button:hover { border-color: #a8c9bb; color: #246b50; background: #f4faf7; }
  2766. .overview-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  2767. .overview-kpi { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 104px; padding: 16px; border: 1px solid #dfe5e2; border-radius: 10px; color: inherit; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 4px 16px rgba(28, 49, 41, .035); transition: border-color .18s, box-shadow .18s, background-color .18s; }
  2768. .overview-kpi:hover { border-color: #b8cfc5; background: #fcfefd; box-shadow: 0 8px 22px rgba(28, 69, 52, .075); }
  2769. .overview-kpi.attention { border-color: #efc9bf; background: #fffdfc; }
  2770. .overview-kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; color: #347659; background: #eaf5ef; }
  2771. .overview-kpi-icon.portrait { color: #376b96; background: #edf5fb; }
  2772. .overview-kpi-icon.task { color: #956925; background: #fff6e7; }
  2773. .overview-kpi-icon.risk { color: #aa5043; background: #fff0ed; }
  2774. .overview-kpi-icon svg { width: 21px; height: 21px; fill: currentColor; }
  2775. .overview-kpi > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; }
  2776. .overview-kpi small { grid-column: 1 / -1; color: #75827c; font-size: 11px; }
  2777. .overview-kpi strong { color: #1d3028; font-size: 26px; line-height: 1; }
  2778. .overview-kpi em { justify-self: end; color: #87918c; font-size: 10px; font-style: normal; white-space: nowrap; }
  2779. .overview-main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 12px; align-items: start; }
  2780. .overview-primary-column, .overview-secondary-column { display: grid; gap: 12px; }
  2781. .overview-panel { padding: 18px; border: 1px solid #dfe5e2; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(24, 48, 38, .035); }
  2782. .overview-panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
  2783. .overview-panel-header > div { display: grid; gap: 2px; }
  2784. .overview-panel-header span { color: #5d8473; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
  2785. .overview-panel-header h3 { margin: 0; color: #23372e; font-size: 16px; letter-spacing: 0; }
  2786. .overview-panel-header > small { color: #89948f; font-size: 10px; }
  2787. .overview-panel-header > strong { color: #223a30; font-size: 22px; }
  2788. .overview-diagnosis-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; border-top: 1px solid #edf0ee; color: #78857f; text-align: center; }
  2789. .overview-diagnosis-empty strong { color: #40534a; font-size: 14px; }
  2790. .overview-diagnosis-empty span { max-width: 520px; font-size: 11px; line-height: 1.7; }
  2791. .overview-diagnosis-result { display: grid; gap: 13px; padding-top: 14px; border-top: 1px solid #edf0ee; }
  2792. .overview-diagnosis-result > header { display: grid; gap: 5px; padding-left: 12px; border-left: 3px solid #4b89b6; }
  2793. .overview-diagnosis-result.warning > header { border-left-color: #d99335; }
  2794. .overview-diagnosis-result.danger > header { border-left-color: #cc5e50; }
  2795. .overview-diagnosis-result.success > header { border-left-color: #319267; }
  2796. .overview-diagnosis-result > header span { color: #638072; font-size: 10px; font-weight: 700; }
  2797. .overview-diagnosis-result > header strong { color: #263a31; font-size: 17px; }
  2798. .overview-diagnosis-result > p { margin: 0; color: #65726c; font-size: 12px; line-height: 1.7; }
  2799. .overview-evidence { display: flex; flex-wrap: wrap; gap: 7px; }
  2800. .overview-evidence span { padding: 6px 9px; border-radius: 6px; color: #53665d; background: #f2f6f4; font-size: 10px; }
  2801. .overview-data-gaps { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 10px 12px; border-left: 3px solid #d99a43; background: #fffaf1; }
  2802. .overview-data-gaps > strong { color: #8b6327; font-size: 10px; white-space: nowrap; }
  2803. .overview-data-gaps > div { display: flex; flex-wrap: wrap; gap: 6px; }
  2804. .overview-data-gaps span { display: inline-flex; flex-direction: column; gap: 2px; padding-right: 9px; border-right: 1px solid #eadcc2; color: #765d35; font-size: 10px; }
  2805. .overview-data-gaps span:last-child { border-right: 0; }
  2806. .overview-data-gaps small { color: #9a845f; font-size: 8px; }
  2807. .overview-diagnosis-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
  2808. .overview-diagnosis-action { min-width: 0; display: grid; grid-template-rows: minmax(70px, 1fr) auto; border-right: 1px solid #edf0ee; }
  2809. .overview-diagnosis-action:last-child { border-right: 0; }
  2810. .overview-diagnosis-go { position: relative; min-width: 0; min-height: 70px; display: grid; gap: 4px; align-content: center; padding: 11px 34px 8px 12px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: background-color .18s; }
  2811. .overview-diagnosis-go:hover { background: #f7faf8; }
  2812. .overview-diagnosis-go > span { color: #2e4b3e; font-size: 12px; font-weight: 700; }
  2813. .overview-diagnosis-go > small { overflow: hidden; color: #68776f; font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
  2814. .overview-diagnosis-go svg { position: absolute; top: 50%; right: 10px; width: 15px; height: 15px; fill: #7f9a8d; transform: translateY(-50%); }
  2815. .overview-candidate-btn { min-height: 31px; padding: 0 12px; border: 0; border-top: 1px solid #edf0ee; color: #327157; background: #fbfdfc; font: inherit; font-size: 9px; font-weight: 700; text-align: left; cursor: pointer; transition: color .18s, background-color .18s; }
  2816. .overview-candidate-btn:hover { color: #1f5e45; background: #f0f8f4; }
  2817. .overview-candidate-btn.added, .overview-candidate-btn:disabled { color: #718079; background: #f3f5f4; cursor: default; }
  2818. .overview-action-list { display: grid; gap: 7px; }
  2819. .overview-action { display: grid; grid-template-columns: 4px 42px minmax(0, 1fr) 18px; gap: 10px; align-items: center; min-height: 61px; padding: 8px 11px; border: 1px solid #e4e8e6; border-radius: 8px; color: inherit; background: #fff; text-align: left; cursor: pointer; transition: border-color .18s, background-color .18s; }
  2820. .overview-action:hover { border-color: #bdcec7; background: #fafcfb; }
  2821. .overview-action > i { align-self: stretch; border-radius: 999px; background: #5f8fbc; }
  2822. .overview-action.warning > i { background: #d99a43; }
  2823. .overview-action.danger > i { background: #cf675b; }
  2824. .overview-action > strong { color: #2a3f36; font-size: 21px; text-align: center; }
  2825. .overview-action > span { min-width: 0; display: grid; gap: 3px; }
  2826. .overview-action b { color: #35483f; font-size: 12px; }
  2827. .overview-action small { overflow: hidden; color: #849089; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  2828. .overview-action > svg { width: 16px; height: 16px; fill: #8da096; }
  2829. .overview-health-track { height: 7px; margin: 17px 0; overflow: hidden; border-radius: 999px; background: #edf1ef; }
  2830. .overview-health-track i { display: block; height: 100%; border-radius: inherit; background: #3d9b70; }
  2831. .overview-health-panel dl { display: grid; gap: 9px; margin: 0 0 16px; }
  2832. .overview-health-panel dl div { display: flex; justify-content: space-between; gap: 16px; color: #6f7e77; font-size: 11px; }
  2833. .overview-health-panel dt, .overview-health-panel dd { margin: 0; }
  2834. .overview-health-panel dd { color: #33493f; font-weight: 700; }
  2835. .overview-text-action { width: 100%; min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; border: 0; border-top: 1px solid #edf0ee; color: #39735a; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
  2836. .overview-text-action svg { width: 15px; height: 15px; fill: currentColor; }
  2837. .overview-worker { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; border-top: 1px solid #edf0ee; }
  2838. .overview-worker-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; color: #417a61; background: #eef6f2; }
  2839. .overview-worker-icon svg { width: 17px; height: 17px; fill: currentColor; }
  2840. .overview-worker > div { min-width: 0; display: grid; gap: 3px; }
  2841. .overview-worker strong { color: #30443a; font-size: 12px; }
  2842. .overview-worker small { overflow: hidden; color: #87928c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  2843. .overview-worker em { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; color: #69756f; background: #f0f2f1; font-size: 9px; font-style: normal; white-space: nowrap; }
  2844. .overview-worker em.online { color: #227149; background: #e9f7ef; }
  2845. .overview-data-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 40px; padding: 0 4px; color: #8a9590; font-size: 10px; }
  2846. .overview-data-note button { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 9px; border: 0; color: #547065; background: transparent; font: inherit; cursor: pointer; }
  2847. .overview-data-note button svg { width: 14px; height: 14px; fill: currentColor; }
  2848. .overview-query-form button:focus-visible, .overview-kpi:focus-visible, .overview-action:focus-visible, .overview-diagnosis-actions button:focus-visible, .overview-text-action:focus-visible, .overview-data-note button:focus-visible { outline: 3px solid rgba(35, 120, 88, .22); outline-offset: 2px; }
  2849. /* Business overview visual refresh */
  2850. .overview-page { gap: 18px; }
  2851. .overview-command {
  2852. position: relative;
  2853. overflow: hidden;
  2854. min-height: 224px;
  2855. padding: 32px 34px;
  2856. border: 0;
  2857. border-radius: 8px;
  2858. color: #fff;
  2859. background: #153c32;
  2860. box-shadow: 0 18px 42px rgba(21, 60, 50, .17);
  2861. }
  2862. .overview-command::after {
  2863. position: absolute;
  2864. right: 0;
  2865. bottom: 0;
  2866. width: 38%;
  2867. height: 3px;
  2868. background: #e5a33f;
  2869. content: '';
  2870. }
  2871. .overview-command-copy { gap: 10px; }
  2872. .overview-command-copy h2 { color: #fff; font-size: 34px; line-height: 1.2; }
  2873. .overview-command-copy p { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.65; }
  2874. .overview-kicker { color: #b9d8cd; font-size: 12px; }
  2875. .overview-live { background: #91a89f; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
  2876. .overview-live.online { background: #55d794; box-shadow: 0 0 0 4px rgba(85, 215, 148, .15); }
  2877. .overview-command-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
  2878. .overview-command-status span { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; color: rgba(255, 255, 255, .76); background: rgba(255, 255, 255, .07); font-size: 12px; }
  2879. .overview-command-status strong { color: #fff; font-size: 14px; }
  2880. .overview-command-status .is-risk { border-color: rgba(255, 193, 181, .3); color: #ffd5cd; background: rgba(154, 54, 42, .26); }
  2881. .overview-query-form { position: relative; z-index: 1; gap: 11px; padding: 0; background: transparent; box-shadow: none; }
  2882. .overview-query-form > label { color: #c6ded5; font-size: 13px; }
  2883. .overview-query-form input { min-height: 48px; padding: 0 15px; border-color: rgba(255, 255, 255, .7); border-radius: 6px; color: #172b23; background: rgba(255, 255, 255, .96); font-size: 14px; box-shadow: 0 7px 20px rgba(6, 27, 21, .13); }
  2884. .overview-query-form input::placeholder { color: #75837d; }
  2885. .overview-query-form input:focus { border-color: #f1b252; outline-color: rgba(241, 178, 82, .28); }
  2886. .overview-query-form .btn { min-height: 48px; border-color: #e7a03a; border-radius: 6px; color: #17372e; background: #f0aa43; box-shadow: 0 7px 18px rgba(6, 27, 21, .18); }
  2887. .overview-query-form .btn:hover { border-color: #f3b75b; color: #102e26; background: #f3b75b; }
  2888. .overview-query-chips { gap: 7px; }
  2889. .overview-query-chips button { min-height: 34px; padding: 6px 11px; border-color: rgba(255, 255, 255, .18); border-radius: 6px; color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .06); font-size: 12px; }
  2890. .overview-query-chips button:hover { border-color: rgba(255, 255, 255, .36); color: #fff; background: rgba(255, 255, 255, .12); }
  2891. .overview-kpi-grid { gap: 12px; }
  2892. .overview-kpi { min-height: 118px; padding: 18px; border-color: #dce4e0; border-radius: 8px; box-shadow: 0 6px 20px rgba(29, 54, 44, .045); }
  2893. .overview-kpi:hover { border-color: #9fc3b3; box-shadow: 0 12px 28px rgba(28, 69, 52, .1); }
  2894. .overview-kpi-icon { width: 44px; height: 44px; border-radius: 7px; }
  2895. .overview-kpi small { color: #65766e; font-size: 13px; font-weight: 650; }
  2896. .overview-kpi strong { font-size: 30px; }
  2897. .overview-kpi em { color: #738179; font-size: 12px; }
  2898. .overview-main-grid { grid-template-columns: minmax(0, 1.58fr) minmax(320px, .72fr); gap: 14px; }
  2899. .overview-primary-column, .overview-secondary-column { gap: 14px; }
  2900. .overview-panel { padding: 21px; border-color: #dce4e0; border-radius: 8px; box-shadow: 0 7px 24px rgba(24, 48, 38, .045); }
  2901. .overview-panel-header { margin-bottom: 17px; }
  2902. .overview-panel-header span { color: #477664; font-size: 10px; letter-spacing: 1px; }
  2903. .overview-panel-header h3 { font-size: 18px; }
  2904. .overview-panel-header > small { color: #74827b; font-size: 12px; }
  2905. .overview-panel-header > strong { font-size: 24px; }
  2906. .overview-diagnosis-empty { min-height: 200px; gap: 9px; }
  2907. .overview-diagnosis-empty strong { font-size: 16px; }
  2908. .overview-diagnosis-empty span { color: #697870; font-size: 13px; }
  2909. .overview-diagnosis-result > header span { font-size: 11px; }
  2910. .overview-diagnosis-result > header strong { font-size: 18px; }
  2911. .overview-diagnosis-result > p { font-size: 14px; }
  2912. .overview-evidence span, .overview-data-gaps > strong, .overview-data-gaps span { font-size: 12px; }
  2913. .overview-data-gaps small { font-size: 11px; }
  2914. .overview-diagnosis-go { min-height: 82px; padding: 13px 36px 10px 14px; }
  2915. .overview-diagnosis-go > span { font-size: 14px; }
  2916. .overview-diagnosis-go > small { font-size: 12px; }
  2917. .overview-candidate-btn { min-height: 38px; font-size: 12px; }
  2918. .overview-action { min-height: 72px; padding: 10px 13px; border-radius: 7px; }
  2919. .overview-action > strong { font-size: 23px; }
  2920. .overview-action b { font-size: 14px; }
  2921. .overview-action small { color: #718078; font-size: 12px; }
  2922. .overview-health-track { height: 8px; }
  2923. .overview-health-panel dl { gap: 12px; }
  2924. .overview-health-panel dl div, .overview-text-action { font-size: 13px; }
  2925. .overview-text-action { min-height: 44px; }
  2926. .overview-worker { grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 68px; }
  2927. .overview-worker-icon { width: 40px; height: 40px; }
  2928. .overview-worker strong { font-size: 14px; }
  2929. .overview-worker small { color: #6f7d76; font-size: 12px; }
  2930. .overview-worker em { min-height: 26px; font-size: 11px; }
  2931. .overview-data-note { min-height: 44px; color: #6e7c75; font-size: 12px; }
  2932. .overview-data-note button { min-height: 44px; }
  2933. @media (max-width: 1180px) {
  2934. .overview-command { grid-template-columns: 1fr; gap: 18px; }
  2935. .overview-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  2936. .overview-main-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  2937. }
  2938. @media (max-width: 860px) {
  2939. .overview-main-grid { grid-template-columns: 1fr; }
  2940. .overview-secondary-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  2941. }
  2942. @media (max-width: 640px) {
  2943. .overview-page { gap: 12px; }
  2944. .overview-command { min-height: 0; padding: 22px 16px; }
  2945. .overview-command-copy h2 { font-size: 28px; }
  2946. .overview-command-copy p { font-size: 15px; }
  2947. .overview-command-status { display: grid; grid-template-columns: 1fr; }
  2948. .overview-command-status span { width: 100%; font-size: 13px; }
  2949. .overview-query-form { padding: 0; }
  2950. .overview-query-form > div:first-of-type { grid-template-columns: 1fr; }
  2951. .overview-query-form input { font-size: 16px; }
  2952. .overview-query-form .btn { width: 100%; }
  2953. .overview-query-chips button { min-height: 44px; }
  2954. .overview-kpi-grid, .overview-secondary-column { grid-template-columns: 1fr; }
  2955. .overview-kpi { min-height: 104px; }
  2956. .overview-panel { padding: 16px; }
  2957. .overview-diagnosis-actions { grid-template-columns: 1fr; }
  2958. .overview-diagnosis-action { border-right: 0; border-bottom: 1px solid #edf0ee; }
  2959. .overview-diagnosis-action:last-child { border-bottom: 0; }
  2960. .overview-data-note { align-items: flex-start; flex-direction: column; padding-bottom: 10px; }
  2961. .overview-data-note button { margin-left: 0; }
  2962. }
  2963. @media (prefers-reduced-motion: reduce) {
  2964. .overview-query-chips button, .overview-kpi, .overview-action, .overview-diagnosis-actions button { transition: none; }
  2965. }
  2966. .group-ops-page { display: flex; flex-direction: column; gap: 20px; }
  2967. .group-ops-tabs { display: flex; gap: 6px; padding: 5px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel-bg); box-shadow: var(--shadow); }
  2968. .group-ops-tabs button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
  2969. .group-ops-tabs button:hover, .group-ops-tabs button:focus-visible { color: var(--brand); background: var(--brand-bg); outline: none; }
  2970. .group-ops-tabs button.active { color: #873800; background: #fff1d6; box-shadow: inset 0 0 0 1px #ffd591; }
  2971. .group-ops-hero {
  2972. display: flex; align-items: center; justify-content: space-between; gap: 20px;
  2973. padding: 22px 24px; border: 1px solid #ffd8a8; border-radius: var(--radius-md);
  2974. background: linear-gradient(120deg, #fff7e6 0%, #fff 68%); box-shadow: var(--shadow);
  2975. }
  2976. .group-ops-hero h2 { margin: 4px 0 6px; color: var(--text-primary); font-size: 24px; }
  2977. .group-ops-hero p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
  2978. .group-ops-kicker { color: #ad4e00; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
  2979. .group-ops-stats { margin-bottom: 0; grid-template-columns: repeat(5, minmax(130px, 1fr)); }
  2980. .group-ops-stats .stat-card { text-align: left; }
  2981. .group-ops-stats .stat-card.danger .stat-value { color: var(--error); }
  2982. .group-ops-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; }
  2983. .group-ops-builder, .group-ops-risks, .group-ops-workbench { padding: 20px; }
  2984. .group-ops-form { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 16px; background: var(--page-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
  2985. .group-ops-form label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
  2986. .group-ops-form input, .group-ops-form textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-bg); color: var(--text-primary); font: inherit; resize: vertical; }
  2987. .group-ops-form input:focus, .group-ops-form textarea:focus { outline: 3px solid rgba(250, 140, 22, .16); border-color: var(--brand); }
  2988. .group-ops-form .btn { grid-column: 2; justify-self: start; min-height: 40px; }
  2989. .group-ops-plan-form { margin-top: 16px; }
  2990. .group-ops-playbooks { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  2991. .group-ops-playbooks article { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
  2992. .group-ops-playbooks article > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
  2993. .group-ops-playbooks article span { color: var(--text-muted); font-size: 12px; }
  2994. .group-ops-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
  2995. .group-ops-risk { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--radius-sm); }
  2996. .group-ops-risk.high { border-left-color: var(--error); background: var(--error-bg); }
  2997. .group-ops-risk > div:first-child { min-width: 0; }
  2998. .group-ops-risk p { margin: 5px 0; color: var(--text-secondary); font-size: 13px; }
  2999. .group-ops-risk small { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
  3000. .group-ops-risk > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  3001. .group-ops-copy { min-width: 260px; max-width: 520px; white-space: normal; line-height: 1.6; }
  3002. .group-ops-workbench .table-wrap { max-width: 100%; }
  3003. .group-ops-workbench table { min-width: 880px; }
  3004. .group-ops-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--page-bg); }
  3005. .group-ops-inline-form label { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
  3006. .group-ops-inline-form input, .group-ops-inline-form select { min-height: 40px; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-bg); color: var(--text-primary); font: inherit; }
  3007. .group-ops-inline-form input:focus, .group-ops-inline-form select:focus { border-color: var(--brand); outline: 3px solid rgba(250,140,22,.16); }
  3008. .group-ops-quality-form input { min-width: 180px; flex: 1; }
  3009. .group-ops-task-list { display: flex; flex-direction: column; gap: 8px; }
  3010. .group-ops-task-list article { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
  3011. .group-ops-task-list article > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
  3012. .group-ops-task-list article span { color: var(--text-muted); font-size: 12px; }
  3013. .group-ops-automation { padding: 20px; border-color: #ffd591; }
  3014. .group-ops-automation-state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  3015. .group-ops-automation-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; }
  3016. .group-ops-time-window { display: flex; align-items: center; gap: 8px; }
  3017. .group-ops-time-window input { min-width: 0; }
  3018. .group-ops-automation-summary { padding: 18px; border: 1px solid #ffd591; border-radius: var(--radius-md); background: #fffaf0; }
  3019. .group-ops-automation-summary h4 { margin: 0 0 14px; color: var(--text-primary); font-size: 16px; }
  3020. .group-ops-automation-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
  3021. .group-ops-automation-summary dl div { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-bg); }
  3022. .group-ops-automation-summary dt { color: var(--text-muted); font-size: 12px; }
  3023. .group-ops-automation-summary dd { margin: 4px 0 0; color: var(--text-primary); font-weight: 700; }
  3024. .group-ops-automation-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  3025. .group-ops-automation-log-header { margin-top: 22px; }
  3026. @media (max-width: 1100px) {
  3027. .group-ops-stats { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  3028. .group-ops-grid { grid-template-columns: 1fr; }
  3029. .group-ops-automation-grid { grid-template-columns: 1fr; }
  3030. }
  3031. @media (max-width: 700px) {
  3032. .group-ops-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  3033. .group-ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  3034. .group-ops-form { grid-template-columns: 1fr; }
  3035. .group-ops-form .btn { grid-column: 1; width: 100%; }
  3036. .group-ops-builder, .group-ops-risks, .group-ops-workbench { padding: 14px; }
  3037. .group-ops-inline-form { align-items: stretch; flex-direction: column; }
  3038. .group-ops-inline-form input, .group-ops-inline-form select, .group-ops-inline-form .btn { width: 100%; }
  3039. .group-ops-task-list article { align-items: flex-start; flex-wrap: wrap; }
  3040. .group-ops-time-window { flex-wrap: wrap; }
  3041. .group-ops-automation-summary dl { grid-template-columns: 1fr; }
  3042. .group-ops-automation-actions .btn { width: 100%; }
  3043. }
  3044. /* 社群运营:对齐客户群、画像与交接工作台的视觉语言 */
  3045. .group-ops-page {
  3046. display: grid;
  3047. gap: 16px;
  3048. min-width: 0;
  3049. }
  3050. .group-ops-page .group-ops-hero {
  3051. min-height: 158px;
  3052. margin: 0;
  3053. padding: 26px 30px;
  3054. border: 0;
  3055. border-radius: 20px;
  3056. color: #fff;
  3057. background: linear-gradient(135deg, #172d4f, #294d7e 62%, #507fa3);
  3058. box-shadow: 0 16px 36px rgba(21, 45, 79, .16);
  3059. }
  3060. .group-ops-page .group-ops-hero::before,
  3061. .group-ops-page .group-ops-hero::after {
  3062. position: absolute;
  3063. z-index: -1;
  3064. content: '';
  3065. border: 1px solid rgba(255,255,255,.09);
  3066. border-radius: 50%;
  3067. pointer-events: none;
  3068. }
  3069. .group-ops-page .group-ops-hero::before { width: 270px; height: 270px; top: -195px; right: 250px; }
  3070. .group-ops-page .group-ops-hero::after { width: 220px; height: 220px; right: -82px; bottom: -162px; }
  3071. .group-ops-page .group-ops-hero h2 { margin: 7px 0 5px; color: #fff; font-size: 30px; }
  3072. .group-ops-page .group-ops-hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.65; }
  3073. .group-ops-hero-side { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
  3074. .group-ops-hero-status { display: flex; gap: 8px; }
  3075. .group-ops-hero-status > span {
  3076. min-width: 76px;
  3077. padding: 11px 13px;
  3078. border: 1px solid rgba(255,255,255,.16);
  3079. border-radius: 12px;
  3080. color: rgba(255,255,255,.62);
  3081. background: rgba(255,255,255,.08);
  3082. font-size: 9px;
  3083. text-align: left;
  3084. backdrop-filter: blur(10px);
  3085. }
  3086. .group-ops-hero-status strong { display: block; margin-bottom: 3px; color: #fff; font-size: 20px; line-height: 1; }
  3087. .group-ops-hero-status .is-risk { border-color: rgba(255,183,178,.34); background: rgba(170,48,48,.2); }
  3088. .group-ops-refresh { min-height: 44px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12); box-shadow: none; backdrop-filter: blur(10px); }
  3089. .group-ops-refresh:hover { background: rgba(255,255,255,.2); }
  3090. .group-ops-refresh:focus-visible { outline: 3px solid rgba(255,255,255,.38); outline-offset: 2px; }
  3091. .group-ops-page .group-ops-tabs {
  3092. gap: 3px;
  3093. margin: 0;
  3094. padding: 5px;
  3095. border-color: #e1e7ea;
  3096. border-radius: 13px;
  3097. background: #fff;
  3098. box-shadow: 0 6px 18px rgba(28,45,59,.035);
  3099. scrollbar-width: thin;
  3100. }
  3101. .group-ops-page .group-ops-tabs button { min-height: 44px; flex: 1 0 auto; padding: 9px 15px; color: #6f7c84; font-size: 12px; font-weight: 650; }
  3102. .group-ops-page .group-ops-tabs button:hover { color: #294d7e; background: #f2f6fa; }
  3103. .group-ops-page .group-ops-tabs button:focus-visible { color: #294d7e; outline: 2px solid #6f93b5; outline-offset: -2px; }
  3104. .group-ops-page .group-ops-tabs button.active { color: #23496f; background: #eaf1f7; box-shadow: inset 0 0 0 1px #d2e0eb; }
  3105. .group-ops-page .group-ops-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; }
  3106. .group-ops-page .group-ops-stats .kpi-card { min-height: 108px; }
  3107. .group-ops-page .group-ops-stats .kpi-card.danger { border-color: #f0d4d0; background: linear-gradient(145deg, #fff, #fff8f7); }
  3108. .group-ops-page .group-ops-stats .kpi-card.danger .kpi-value { color: #bd5149; }
  3109. .group-ops-page > .card {
  3110. min-width: 0;
  3111. margin: 0;
  3112. padding: 17px;
  3113. overflow: hidden;
  3114. border-color: #e1e7ea;
  3115. border-radius: 14px;
  3116. box-shadow: 0 8px 24px rgba(28,45,59,.04);
  3117. transform: none;
  3118. }
  3119. .group-ops-page > .card:hover { box-shadow: 0 10px 28px rgba(28,45,59,.06); }
  3120. .group-ops-page > .card > .card-header { margin-bottom: 13px; padding: 0; }
  3121. .group-ops-page > .card > .card-header h3 { margin: 0; color: #2b3b43; font-size: 13px; }
  3122. .group-ops-page > .card > .card-header p { margin: 4px 0 0; color: #8b969c; font-size: 10px; line-height: 1.55; }
  3123. .group-ops-page > .card > .card-header > span { color: #7d898f; font-size: 10px; }
  3124. .group-ops-page .table-wrap { max-width: 100%; border-color: #e4e9ec; border-radius: 10px; }
  3125. .group-ops-page table { min-width: 820px; }
  3126. .group-ops-page th { padding: 10px 12px; color: #78848b; background: #f7f9fa; font-size: 10px; letter-spacing: .02em; }
  3127. .group-ops-page td { padding: 11px 12px; color: #4b5b63; }
  3128. .group-ops-page tbody tr:hover { background: #fafcfd; }
  3129. .group-ops-page .group-ops-form,
  3130. .group-ops-page .group-ops-inline-form {
  3131. gap: 11px 14px;
  3132. margin-bottom: 14px;
  3133. padding: 15px;
  3134. border-color: #e2e7ea;
  3135. border-radius: 11px;
  3136. background: #f8fafb;
  3137. }
  3138. .group-ops-page .group-ops-form label,
  3139. .group-ops-page .group-ops-inline-form label { color: #66747b; font-size: 11px; }
  3140. .group-ops-page .group-ops-form input,
  3141. .group-ops-page .group-ops-form textarea,
  3142. .group-ops-page .group-ops-inline-form input,
  3143. .group-ops-page .group-ops-inline-form select { min-height: 42px; border-color: #dce3e7; border-radius: 9px; background: #fff; font-size: 12px; }
  3144. .group-ops-page .group-ops-form input:focus,
  3145. .group-ops-page .group-ops-form textarea:focus,
  3146. .group-ops-page .group-ops-inline-form input:focus,
  3147. .group-ops-page .group-ops-inline-form select:focus { border-color: #6f93b5; outline: 3px solid rgba(55,100,140,.11); }
  3148. .group-ops-page .group-ops-form .btn,
  3149. .group-ops-page .group-ops-inline-form .btn { min-height: 42px; }
  3150. .group-ops-playbooks article,
  3151. .group-ops-task-list article,
  3152. .group-ops-risk { border-color: #e2e7ea; border-radius: 10px; background: #fff; }
  3153. .group-ops-playbooks article:hover,
  3154. .group-ops-task-list article:hover { border-color: #cedbe3; background: #fafcfd; }
  3155. .group-ops-task-list article { min-height: 54px; }
  3156. .group-ops-risk { padding: 13px 14px; border-left-width: 3px; }
  3157. .group-ops-risk.high { border-color: #f0d4d0; border-left-color: #ca5b52; background: #fff9f8; }
  3158. .group-ops-risk > div:last-child { flex-flow: row wrap; justify-content: flex-end; }
  3159. .group-ops-page .group-ops-automation { border-color: #e1e7ea; }
  3160. .group-ops-automation-summary { border-color: #dbe5eb; border-radius: 11px; background: #f4f8fb; }
  3161. .group-ops-automation-summary dl div { border-color: #e0e7eb; border-radius: 9px; }
  3162. .group-ops-automation-log-header { padding-top: 20px !important; border-top: 1px solid #e7ecef; }
  3163. @media (max-width: 1180px) {
  3164. .group-ops-page .group-ops-hero { align-items: flex-start; flex-direction: column; }
  3165. .group-ops-hero-side { width: 100%; justify-content: space-between; }
  3166. .group-ops-page .group-ops-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  3167. }
  3168. @media (max-width: 700px) {
  3169. .group-ops-page { gap: 12px; }
  3170. .group-ops-page .group-ops-hero { min-height: 0; padding: 20px; border-radius: 16px; }
  3171. .group-ops-page .group-ops-hero h2 { font-size: 25px; }
  3172. .group-ops-hero-side { align-items: stretch; flex-direction: column; }
  3173. .group-ops-hero-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  3174. .group-ops-hero-status > span { min-width: 0; padding: 10px; }
  3175. .group-ops-refresh { width: 100%; }
  3176. .group-ops-page .group-ops-tabs button { flex: 0 0 auto; }
  3177. .group-ops-page .group-ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  3178. .group-ops-page .group-ops-stats .kpi-card { min-height: 98px; padding: 13px; }
  3179. .group-ops-page > .card { padding: 14px; }
  3180. .group-ops-risk > div:last-child { width: 100%; align-items: stretch; }
  3181. }
  3182. /* ==================== Customer Operations Workspaces ==================== */
  3183. .customer-workspace-page {
  3184. display: grid;
  3185. gap: 16px;
  3186. min-width: 0;
  3187. }
  3188. .customer-workspace-hero {
  3189. position: relative;
  3190. isolation: isolate;
  3191. margin-bottom: 0;
  3192. min-height: 150px;
  3193. align-items: center;
  3194. }
  3195. .customer-workspace-hero::before,
  3196. .customer-workspace-hero::after {
  3197. position: absolute;
  3198. z-index: -1;
  3199. content: '';
  3200. border: 1px solid rgba(255,255,255,.09);
  3201. border-radius: 50%;
  3202. pointer-events: none;
  3203. }
  3204. .customer-workspace-hero::before { width: 260px; height: 260px; top: -190px; right: 240px; }
  3205. .customer-workspace-hero::after { width: 210px; height: 210px; right: -80px; bottom: -155px; }
  3206. .group-hero { background: linear-gradient(135deg, #153449, #215b70 62%, #428090); }
  3207. .portrait-dashboard-hero { background: linear-gradient(135deg, #123c32, #1d7156 62%, #5b8d59); }
  3208. .transfer-dashboard-hero { background: linear-gradient(135deg, #172d4f, #294d7e 62%, #5179a8); }
  3209. .hero-feature-list {
  3210. display: flex;
  3211. flex: 0 0 auto;
  3212. flex-wrap: wrap;
  3213. justify-content: flex-end;
  3214. gap: 8px;
  3215. max-width: 330px;
  3216. }
  3217. .hero-feature-list span {
  3218. padding: 9px 12px;
  3219. border: 1px solid rgba(255,255,255,.17);
  3220. border-radius: 999px;
  3221. color: rgba(255,255,255,.82);
  3222. background: rgba(255,255,255,.08);
  3223. font-size: 11px;
  3224. font-weight: 650;
  3225. backdrop-filter: blur(8px);
  3226. }
  3227. .handover-flow {
  3228. display: flex;
  3229. flex: 0 0 auto;
  3230. align-items: center;
  3231. gap: 8px;
  3232. padding: 12px 14px;
  3233. border: 1px solid rgba(255,255,255,.15);
  3234. border-radius: 14px;
  3235. background: rgba(255,255,255,.08);
  3236. backdrop-filter: blur(8px);
  3237. }
  3238. .handover-flow span { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); font-size: 10px; white-space: nowrap; }
  3239. .handover-flow b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 10px; }
  3240. .handover-flow i { width: 22px; height: 1px; background: rgba(255,255,255,.25); }
  3241. /* Group management */
  3242. .group-stat-row > div { min-width: 100px; }
  3243. .group-workspace {
  3244. min-width: 0;
  3245. display: grid;
  3246. grid-template-columns: 300px minmax(0, 1fr);
  3247. overflow: hidden;
  3248. border: 1px solid #e2e7ea;
  3249. border-radius: 16px;
  3250. background: #fff;
  3251. box-shadow: 0 10px 30px rgba(27,49,65,.055);
  3252. }
  3253. .group-sync-panel { min-width: 0; padding: 18px; border-right: 1px solid #e6ebee; background: #f8fafb; }
  3254. .group-list-panel { min-width: 0; padding: 18px; }
  3255. .group-sync-card,
  3256. .group-filter-card,
  3257. .group-list-panel #groups-table-card > .card { margin: 0; box-shadow: none; }
  3258. .group-sync-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
  3259. .group-sync-card:hover,
  3260. .group-filter-card:hover,
  3261. .group-list-panel #groups-table-card > .card:hover { box-shadow: none; }
  3262. .group-sync-card .card-header { margin-bottom: 16px; }
  3263. .group-sync-fields { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  3264. .group-sync-fields .form-group { min-width: 0; }
  3265. .field-help { margin-top: -2px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
  3266. .advanced-settings { margin: 14px 0; border: 1px solid #dfe6e9; border-radius: 10px; background: #fff; }
  3267. .advanced-settings summary { padding: 10px 12px; color: #4c5c64; font-size: 11px; font-weight: 650; cursor: pointer; }
  3268. .advanced-settings summary::marker { color: #6c8793; }
  3269. .advanced-settings-body { display: grid; gap: 12px; padding: 0 12px 12px; }
  3270. .advanced-settings textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
  3271. .group-auto-classify { margin: 0 0 14px; }
  3272. .group-primary-action { width: 100%; }
  3273. .group-sync-card .progress-wrap { margin-bottom: 0; }
  3274. .operation-note {
  3275. display: flex;
  3276. align-items: flex-start;
  3277. gap: 10px;
  3278. margin-bottom: 12px;
  3279. padding: 11px 13px;
  3280. border: 1px solid #cfe4dc;
  3281. border-radius: 11px;
  3282. color: #315f50;
  3283. background: #f2faf6;
  3284. }
  3285. .operation-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; fill: #2f8565; }
  3286. .operation-note div { display: grid; gap: 2px; }
  3287. .operation-note strong { font-size: 11px; }
  3288. .operation-note span { color: #6e8078; font-size: 10px; line-height: 1.5; }
  3289. .group-filter-card { padding: 14px 15px; border-radius: 12px 12px 0 0; border-bottom-color: transparent; }
  3290. .group-filter-card .card-header { align-items: flex-end; margin: 0; }
  3291. .group-filter-card .filter-bar { justify-content: flex-end; }
  3292. .group-filter-card .filter-bar input { width: 170px; }
  3293. .group-list-panel #groups-table-card > .card { border-radius: 0 0 12px 12px; }
  3294. .group-list-panel #groups-table-card table { min-width: 920px; }
  3295. .group-list-panel #groups-table-card th,
  3296. .group-list-panel #groups-table-card td { padding: 11px 12px; }
  3297. /* Shared dashboard composition */
  3298. .dashboard-grid {
  3299. min-width: 0;
  3300. display: grid;
  3301. grid-template-columns: repeat(6, minmax(0, 1fr));
  3302. gap: 14px;
  3303. }
  3304. .kpi-row {
  3305. grid-column: 1 / -1;
  3306. display: grid;
  3307. grid-template-columns: repeat(6, minmax(0, 1fr));
  3308. gap: 10px;
  3309. }
  3310. .kpi-card {
  3311. min-width: 0;
  3312. min-height: 104px;
  3313. display: flex;
  3314. flex-direction: column;
  3315. justify-content: center;
  3316. padding: 15px 16px;
  3317. overflow: hidden;
  3318. border: 1px solid #e2e7ea;
  3319. border-radius: 13px;
  3320. background: #fff;
  3321. box-shadow: 0 7px 22px rgba(28,45,59,.045);
  3322. }
  3323. .kpi-label { overflow: hidden; color: #748089; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  3324. .kpi-value { margin-top: 6px; color: #1e3139; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
  3325. .kpi-sub { margin-top: 6px; overflow: hidden; color: #98a1a6; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  3326. .kpi-trend.up { color: #25845e; }
  3327. .kpi-trend.down { color: #ca5b52; }
  3328. .chart-card {
  3329. grid-column: span 3;
  3330. min-width: 0;
  3331. overflow: hidden;
  3332. border: 1px solid #e2e7ea;
  3333. border-radius: 14px;
  3334. background: #fff;
  3335. box-shadow: 0 7px 22px rgba(28,45,59,.04);
  3336. }
  3337. .chart-card.third { grid-column: span 2; }
  3338. .chart-card.full { grid-column: 1 / -1; }
  3339. .chart-title { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0 17px; border-bottom: 1px solid #edf0f2; color: #2b3b43; font-size: 12px; }
  3340. .chart-subtitle { color: #919aa0; font-size: 9px; font-weight: 400; }
  3341. .chart-container { width: 100%; height: 238px; padding: 4px; }
  3342. .chart-container.small { height: 220px; }
  3343. .empty-chart { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9aa3a8; font-size: 10px; }
  3344. .operation-toolbar {
  3345. grid-column: 1 / -1;
  3346. display: flex;
  3347. align-items: center;
  3348. justify-content: space-between;
  3349. gap: 12px;
  3350. padding: 13px 15px;
  3351. border: 1px solid #e1e7ea;
  3352. border-radius: 13px;
  3353. background: #fff;
  3354. box-shadow: 0 6px 18px rgba(28,45,59,.035);
  3355. }
  3356. .toolbar-left,
  3357. .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  3358. .data-table-card {
  3359. grid-column: 1 / -1;
  3360. min-width: 0;
  3361. padding: 17px;
  3362. overflow: hidden;
  3363. border: 1px solid #e1e7ea;
  3364. border-radius: 14px;
  3365. background: #fff;
  3366. box-shadow: 0 8px 24px rgba(28,45,59,.04);
  3367. }
  3368. .data-table-card > .card-header { margin-bottom: 13px; }
  3369. .data-table-card .filter-bar { margin-bottom: 13px !important; }
  3370. .data-table-card .table-wrap { max-width: 100%; border-radius: 10px; }
  3371. .data-table-card table { min-width: 820px; }
  3372. .data-table-card th,
  3373. .data-table-card td { padding: 11px 12px; }
  3374. .data-table-card .tag { margin: 2px; }
  3375. .pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 13px; color: #7d888e; font-size: 10px; }
  3376. .pagination span { margin-right: auto; }
  3377. .pagination button { min-height: 32px; padding: 0 12px; border: 1px solid #dfe5e8; border-radius: 8px; color: #58666d; background: #fff; cursor: pointer; }
  3378. .pagination button:hover:not(:disabled) { color: var(--brand-dark); border-color: #f0b879; background: #fff9f1; }
  3379. .pagination button:disabled { opacity: .45; cursor: not-allowed; }
  3380. .loading-overlay { position: relative; min-height: 120px; }
  3381. .loading-spinner { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border: 3px solid #e7ecef; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
  3382. .table-skeleton,
  3383. .skeleton-list { display: grid; gap: 12px; padding: 18px 4px; }
  3384. .skeleton { position: relative; overflow: hidden; border-radius: 6px; background: #edf1f3; }
  3385. .skeleton::after { position: absolute; inset: 0; content: ''; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: dashboardShimmer 1.35s infinite; }
  3386. .skeleton-line { height: 30px; }
  3387. @keyframes dashboardShimmer { to { transform: translateX(100%); } }
  3388. .error-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; text-align: center; }
  3389. .error-state svg { width: 36px; height: 36px; fill: #e08865; }
  3390. .error-state-title { color: #784733; font-size: 13px; font-weight: 700; }
  3391. .error-state-desc { max-width: 420px; color: #8a7770; font-size: 10px; line-height: 1.55; }
  3392. /* Transfer stage conversion card */
  3393. .transfer-stage-board {
  3394. min-height: 238px;
  3395. display: flex;
  3396. flex-direction: column;
  3397. justify-content: center;
  3398. gap: 16px;
  3399. padding: 17px;
  3400. }
  3401. .transfer-stage-track {
  3402. display: grid;
  3403. grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  3404. align-items: center;
  3405. gap: 7px;
  3406. }
  3407. .transfer-stage {
  3408. min-width: 0;
  3409. display: grid;
  3410. justify-items: center;
  3411. gap: 8px;
  3412. padding: 12px 7px;
  3413. border: 1px solid #e2e8ec;
  3414. border-radius: 12px;
  3415. text-align: center;
  3416. background: #f9fbfc;
  3417. }
  3418. .transfer-stage.preview { border-color: #dce6f0; background: #f5f8fc; }
  3419. .transfer-stage.execution { border-color: #f1dfcb; background: #fff9f2; }
  3420. .transfer-stage.success { border-color: #cfe7dc; background: #f2faf6; }
  3421. .transfer-stage-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #527494; background: #e7eef5; }
  3422. .transfer-stage.execution .transfer-stage-icon { color: #b46b25; background: #fbeddd; }
  3423. .transfer-stage.success .transfer-stage-icon { color: #27805d; background: #dff1e8; }
  3424. .transfer-stage-icon svg { width: 18px; height: 18px; fill: currentColor; }
  3425. .transfer-stage > div:last-child { min-width: 0; }
  3426. .transfer-stage span,
  3427. .transfer-stage strong,
  3428. .transfer-stage small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  3429. .transfer-stage span { color: #77858d; font-size: 8px; font-weight: 650; }
  3430. .transfer-stage strong { margin-top: 4px; color: #21343d; font-size: 22px; line-height: 1; }
  3431. .transfer-stage small { margin-top: 4px; color: #929ca2; font-size: 8px; }
  3432. .transfer-stage-connector { min-width: 0; display: grid; justify-items: center; gap: 3px; text-align: center; }
  3433. .transfer-stage-connector strong { color: #52636c; font-size: 11px; }
  3434. .transfer-stage-connector span { color: #9aa3a8; font-size: 7px; white-space: nowrap; }
  3435. .transfer-stage-connector i,
  3436. .transfer-overall-progress > i { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: #e7ecef; }
  3437. .transfer-stage-connector b,
  3438. .transfer-overall-progress > i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5d86b1, #51a480); transition: width .3s ease; }
  3439. .transfer-overall-progress { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f6f8fa; }
  3440. .transfer-overall-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  3441. .transfer-overall-progress span { color: #5f6f77; font-size: 9px; font-weight: 650; }
  3442. .transfer-overall-progress strong { color: #274f67; font-size: 13px; }
  3443. .transfer-overall-progress small { overflow: hidden; color: #8b979d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  3444. @media (max-width: 1180px) {
  3445. .group-workspace { grid-template-columns: 260px minmax(0, 1fr); }
  3446. .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  3447. .chart-card.third { grid-column: span 3; }
  3448. .handover-flow { max-width: 380px; flex-wrap: wrap; }
  3449. }
  3450. @media (max-width: 900px) {
  3451. .customer-workspace-hero { align-items: flex-start; flex-direction: column; }
  3452. .hero-feature-list { justify-content: flex-start; }
  3453. .group-workspace { display: block; }
  3454. .group-sync-panel { border-right: 0; border-bottom: 1px solid #e6ebee; }
  3455. .group-sync-fields { grid-template-columns: minmax(0, 1fr) 110px; }
  3456. .chart-card,
  3457. .chart-card.third { grid-column: 1 / -1; }
  3458. }
  3459. @media (max-width: 620px) {
  3460. .customer-workspace-hero { min-height: 0; padding: 22px; }
  3461. .customer-workspace-hero h2 { font-size: 25px; }
  3462. .group-stat-row { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  3463. .group-stat-row > div { min-width: 0; padding: 10px; }
  3464. .group-list-panel,
  3465. .group-sync-panel { padding: 13px; }
  3466. .group-sync-fields,
  3467. .kpi-row { grid-template-columns: 1fr 1fr; }
  3468. .operation-toolbar { align-items: stretch; flex-direction: column; }
  3469. .toolbar-left,
  3470. .toolbar-right { width: 100%; }
  3471. .toolbar-left .btn { flex: 1 1 auto; }
  3472. .handover-flow i { display: none; }
  3473. .data-table-card { padding: 13px; }
  3474. .data-table-card .filter-bar input,
  3475. .data-table-card .filter-bar select,
  3476. .group-filter-card .filter-bar input,
  3477. .group-filter-card .filter-bar select { width: 100% !important; }
  3478. .transfer-stage-board { padding: 14px; }
  3479. .transfer-stage-track { grid-template-columns: 1fr; gap: 7px; }
  3480. .transfer-stage { grid-template-columns: 34px minmax(0, 1fr); justify-items: stretch; align-items: center; padding: 10px 12px; text-align: left; }
  3481. .transfer-stage-connector { grid-template-columns: 42px 1fr; justify-items: stretch; align-items: center; padding: 0 12px; text-align: left; }
  3482. .transfer-stage-connector span { display: none; }
  3483. .transfer-stage-connector i { height: 3px; }
  3484. .voice-composer-toolbar { grid-template-columns: 1fr 1fr; }
  3485. .voice-profile-button, .voice-tone-select { min-height: 44px; }
  3486. .voice-composer-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  3487. .agent-composer .voice-action-button { min-height: 44px; }
  3488. .voice-capture-row { grid-template-columns: 1fr; }
  3489. .voice-profile-modal > .modal-actions { flex-wrap: wrap; }
  3490. .voice-profile-modal > .modal-actions .btn { min-height: 44px; flex: 1 1 120px; }
  3491. }