:root{--bg0:#070A12;--bg1:#0B1020;--bg2:#111A33;--glass: rgba(255,255,255,.08);--glass2: rgba(255,255,255,.12);--stroke: rgba(255,255,255,.14);--text: rgba(255,255,255,.92);--muted: rgba(255,255,255,.62);--shadow: 0 20px 60px rgba(0,0,0,.45);--r: 18px}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(1200px 700px at 10% 0%,rgba(78,116,255,.22),transparent 60%),radial-gradient(900px 500px at 90% 10%,rgba(141,87,255,.18),transparent 55%),linear-gradient(180deg,var(--bg0),var(--bg1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app{padding:14px;padding-bottom:calc(14px + env(safe-area-inset-bottom));max-width:1200px;margin:0 auto}.top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.brand{font-weight:800;letter-spacing:.2px;font-size:18px}.sub{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}.top__right{flex:0 0 auto}.card{background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--stroke);border-radius:var(--r);box-shadow:var(--shadow);padding:12px;margin-bottom:12px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.card__row{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.card__title{font-size:12px;color:var(--muted)}.card__value{font-size:13px;font-weight:700}.stagebar{margin-top:10px;display:flex;gap:8px;overflow:auto;padding-bottom:2px}.stagebar::-webkit-scrollbar{height:6px}.stagebar__chip{flex:0 0 auto;display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:999px;border:1px solid var(--stroke);background:#00000026;color:var(--text);cursor:pointer;text-align:left}.stagebar__chip--active{background:#ffffff24;border-color:#ffffff3d}.stagebar__num{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;font-weight:800;background:#ffffff1f;border:1px solid rgba(255,255,255,.16);font-size:12px}.stagebar__title{font-size:12px;white-space:nowrap;color:#ffffffd9}.grid{display:grid;grid-template-columns:1fr;gap:12px}@media (min-width: 980px){.grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1200px){.grid{grid-template-columns:repeat(4,1fr)}}.panel{background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--stroke);border-radius:var(--r);box-shadow:var(--shadow);padding:12px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);min-height:280px}.panel__head{margin-bottom:10px}.panel__title{font-weight:900;font-size:14px}.panel__desc{margin-top:4px;font-size:12px;color:var(--muted);line-height:1.35}.panel__sub{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:#fffc;font-weight:800}.field{display:block;margin-top:10px}.field__top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.field__label{font-size:12px;color:#ffffffd9;font-weight:700}.field__hint{font-size:11px;color:var(--muted)}.field__wrap{position:relative;margin-top:6px}.field__input{width:100%;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0000002e;color:var(--text);outline:none}.field__input--withclear{padding-right:40px}.field__clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0000002e;color:#ffffffc7;cursor:pointer}.field__clear:hover{background:#0000003d}.field__input:focus{border-color:#ffffff47;background:#0000003d}.field__textarea{resize:vertical;min-height:90px}.check{margin-top:6px;width:100%;display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:#0000002e;cursor:pointer;-webkit-user-select:none;user-select:none}.check:hover{background:#0000003d}.check__box{width:18px;height:18px}.check__text{font-size:12px;color:#ffffffe6;font-weight:700}.dtrow{margin-top:6px;display:flex;gap:10px}.dtrow .field__input{margin-top:0}@media (max-width: 520px){.dtrow{flex-direction:column}}.clientbox{margin-top:10px}.clientbox__open{padding:6px 10px;border-radius:12px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;padding:14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}.modal__card{width:min(720px,100%);max-height:calc(100vh - 28px);overflow:auto;background:linear-gradient(180deg,#ffffff24,#ffffff14);border:1px solid rgba(255,255,255,.18);border-radius:18px;box-shadow:0 30px 90px #0000008c;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.modal__head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;border-bottom:1px solid rgba(255,255,255,.12);position:sticky;top:0;background:#0a0e1c8c;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.modal__title{font-weight:900;font-size:13px;letter-spacing:.2px}.modal__close{padding:7px 10px}.modal__body{padding:12px}.modal__actions{padding:12px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:flex-end}.modal__loading{padding:12px;color:var(--muted);font-size:12px}.modal__error{margin-top:10px;padding:10px 12px;border-radius:14px;background:#dc26261f;border:1px solid rgba(220,38,38,.22);color:#ffe2e2f5;font-size:12px;line-height:1.35}.picklist{margin-top:10px;display:flex;flex-direction:column;gap:8px}.picklist__item{text-align:left;padding:10px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:#0000001f;color:inherit;cursor:pointer}.picklist__item:hover{background:#0000002e}.picklist__item--selected{border-color:#ffffff47;background:#ffffff1a}.picklist__item--static{display:flex;align-items:stretch;gap:8px;padding:0;cursor:default}.picklist__item--static:hover{background:#0000001f}.picklist__main{flex:1;text-align:left;background:transparent;border:0;color:inherit;padding:10px;cursor:pointer}.picklist__main:focus{outline:none}.picklist__remove{width:36px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:#0000001a;color:inherit;cursor:pointer}.picklist__remove:hover{background:#0000002e}.picklist__title{font-weight:800;font-size:12px;line-height:1.25}.picklist__meta{margin-top:4px;font-size:11px;color:var(--muted)}.picklist__check{display:inline-block;width:14px;margin-right:8px}.filebox{margin-top:10px;border:1px dashed rgba(255,255,255,.18);border-radius:14px;padding:10px;background:#0000001f}.filebox__head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.filebox__label{font-size:12px;font-weight:800}.filebox__meta{font-size:11px;color:var(--muted)}.filebox__actions{margin-top:8px}.filebox__input{width:100%}.filebox__note{margin-top:6px;font-size:11px;color:var(--muted);line-height:1.25}.filebox__list{margin-top:8px;display:flex;flex-direction:column;gap:6px}.filebox__item{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#ffffff0f}.filebox__name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filebox__open{flex:0 0 auto}.videothumbs{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.videothumbs__tile{border:1px solid rgba(255,255,255,.14);background:#0000002e;border-radius:14px;overflow:hidden;padding:0;cursor:pointer;aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center}.videothumbs__video{width:100%;height:100%;object-fit:cover;display:block}.videothumbs__fallback{font-size:12px;color:var(--muted)}.videomodal__wrap{width:100%}.videomodal__video{width:100%;border-radius:14px;background:#00000059}.imagethumbs{margin-top:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.imagethumbs__tile{border:1px solid rgba(255,255,255,.14);background:#0000002e;border-radius:14px;overflow:hidden;padding:0;cursor:pointer;aspect-ratio:1 / 1;display:flex;align-items:center;justify-content:center}.imagethumbs__img{width:100%;height:100%;object-fit:cover;display:block}.imagethumbs__fallback{font-size:12px;color:var(--muted)}.imagemodal__wrap{width:100%}.imagemodal__img{width:100%;height:auto;border-radius:14px;display:block;background:#00000059}.btn{border:1px solid rgba(255,255,255,.18);background:#ffffff1a;color:var(--text);padding:10px 12px;border-radius:14px;cursor:pointer;font-weight:800;font-size:12px}.btn--ghost{background:#0000001f;border-color:#ffffff24;padding:7px 10px;border-radius:12px}.footer{margin-top:12px;color:var(--muted);font-size:12px;padding:10px 2px}html,body{touch-action:manipulation}.board{display:flex;gap:12px;overflow:auto;padding-bottom:6px}.col{flex:0 0 320px;background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--stroke);border-radius:var(--r);box-shadow:var(--shadow);padding:12px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);max-height:calc(100vh - 140px);overflow:auto}.col__head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:10px}.col__title{display:flex;gap:8px;align-items:center;font-weight:900;font-size:13px}.col__num{width:22px;height:22px;display:grid;place-items:center;border-radius:999px;background:#ffffff1f;border:1px solid rgba(255,255,255,.16);font-size:12px}.col__meta{font-size:11px;color:var(--muted)}.col__add{width:100%;margin-bottom:10px}.col__list{display:flex;flex-direction:column;gap:8px}.dealcard{border:1px solid rgba(255,255,255,.14);background:#0000002e;color:var(--text);padding:10px;border-radius:14px;text-align:left;cursor:pointer}.dealcard:active{transform:translateY(1px)}.dealcard__title{font-weight:900;font-size:13px}.dealcard__sub{margin-top:6px;font-size:12px;color:#fffc}.dealcard__sub2{margin-top:4px;font-size:11px;color:var(--muted);line-height:1.25}.empty{font-size:12px;color:var(--muted);padding:10px;border:1px dashed rgba(255,255,255,.16);border-radius:14px;text-align:center}.dealhead{margin-top:10px;display:flex;gap:10px;align-items:center}.dealhead__meta{display:flex;flex-direction:column;gap:2px}.dealhead__title{font-weight:900;font-size:13px}.dealhead__stage{font-size:11px;color:var(--muted)}.btn--danger{background:#ff50502e;border-color:#ff505047}.searchbox{margin-bottom:12px}.searchbox__input{width:100%;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:#00000040;color:var(--text);font-size:14px}.searchbox__input:focus{outline:none;border-color:#ffffff47;background:#00000052}.searchbox__row{display:flex;gap:8px;align-items:center}.searchbox__clear{margin-top:8px;width:100%;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:var(--text);font-weight:800}.hl{background:#ffff0059;color:#000;padding:0 3px;border-radius:4px}.chat-actions{display:flex;gap:10px;align-items:center}.icon-btn{width:46px;height:46px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:#ffffff1a;display:flex;align-items:center;justify-content:center;padding:6px}.icon-btn img{width:100%;height:100%;object-fit:contain}.icon-btn:active{transform:translateY(1px)}.chat{display:flex;flex-direction:column;height:calc(100vh - 140px);min-height:420px}.chat__list{flex:1 1 auto;overflow:auto;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:var(--r);background:#0000002e}.chat__empty{color:var(--muted);font-size:13px;padding:12px;text-align:center;border:1px dashed rgba(255,255,255,.16);border-radius:14px}.chat__msg{display:flex;margin:8px 0}.chat__msg--me{justify-content:flex-end}.chat__msg--them{justify-content:flex-start}.chat__bubble{max-width:82%;padding:10px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:#ffffff1a;color:var(--text);font-size:14px;line-height:1.25;white-space:pre-wrap}.chat__msg--me .chat__bubble{background:#4e74ff38;border-color:#4e74ff52}.chat__composer{display:flex;gap:8px;align-items:center;margin-top:10px}.chat__input{flex:1 1 auto;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:#00000040;color:var(--text);font-size:14px}.chat__input:focus{outline:none;border-color:#ffffff47;background:#00000052}.chat__send{flex:0 0 auto;white-space:nowrap}
