:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#172a2c;background:#f3f6f5;font-synthesis:none;text-rendering:optimizeLegibility;--green:#0d5b50;--green2:#13786a;--mint:#e0f2ed;--ink:#172a2c;--muted:#74817f;--border:#e4ebe8;--surface:#fff;--shadow:0 8px 28px rgba(19,48,43,.09)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f3f6f5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.65}.hidden{display:none!important}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,42px);background:#fff;border-bottom:1px solid var(--border);gap:18px;position:relative;z-index:500}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);min-width:190px}.brand-mark,.auth-mark{display:grid;place-items:center;color:#fff;background:var(--green);font-weight:850;letter-spacing:-1px;border-radius:13px;width:43px;height:43px;font-size:14px}.brand strong{display:block;font-size:17px;letter-spacing:-.4px}.brand small{display:block;color:#81908c;font-size:9px;letter-spacing:1.1px;margin-top:2px}.top-actions{display:flex;align-items:center;gap:9px}.city-select-label{font-size:12px;color:var(--muted)}select,input,textarea{border:1px solid #dfe8e4;border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);outline:none;min-width:0}select:focus,input:focus,textarea:focus{border-color:#63a99c;box-shadow:0 0 0 3px rgba(19,120,106,.1)}#citySelect{padding:9px 30px 9px 10px;max-width:115px}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:700;font-size:12px;white-space:nowrap;transition:transform .15s,background .15s}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--green);color:white}.btn-primary:hover{background:#09483f}.btn-quiet{background:#f0f5f3;color:#52635e}.btn-quiet:hover{background:#e4efeb}.user-badge{display:inline-flex;align-items:center;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px;border-radius:9px;background:#ecf6f2;color:#0b6859;font-size:12px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;padding:18px;max-width:1900px;margin:0 auto;height:calc(100vh - 72px);min-height:660px}.map-section{min-width:0;min-height:500px;position:relative;border:1px solid #d9e4df;border-radius:18px;overflow:hidden;background:#e2eae6;box-shadow:0 5px 20px rgba(18,42,36,.04)}#map{position:absolute;inset:0;z-index:1;background:#e8efec}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}.map-top-note{position:absolute;left:15px;top:15px;z-index:400;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 4px 16px rgba(25,45,40,.1);font-size:11px;font-weight:700;color:#29413c;pointer-events:none}.live-dot,.status-pill i{width:7px;height:7px;border-radius:50%;background:#20b489;display:inline-block}.note-sep{color:#a7b7b1}.map-tools{position:absolute;right:15px;top:15px;z-index:400;display:flex;flex-direction:column;gap:8px}.map-tool{height:42px;width:42px;background:#fff;border:0;border-radius:12px;box-shadow:0 4px 15px rgba(25,45,40,.12);color:var(--green);font-size:24px}.map-tool:hover{background:#f0faf6}.map-footer{position:absolute;z-index:400;bottom:9px;left:12px;padding:4px 7px;background:rgba(255,255,255,.85);font-size:9px;color:#62756f;border-radius:6px;pointer-events:none}.map-fallback{position:absolute;inset:0;display:grid;place-items:center;z-index:10;color:#5b7069}.side-panel{min-width:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:2px 2px 8px;scrollbar-width:thin}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:6px 5px 2px;gap:8px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.4px;color:#218774;margin:0 0 6px}.panel-heading h1{font-size:23px;letter-spacing:-.8px;line-height:1.15;margin:0 0 7px}.muted{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.status-pill{display:inline-flex;align-items:center;gap:6px;background:#e7f7ee;color:#247653;white-space:nowrap;padding:7px 9px;border-radius:20px;font-size:10px;margin-top:14px}.panel-card{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:16px;box-shadow:0 3px 14px rgba(24,46,39,.025)}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title-row h2{font-size:14px;margin:0;font-weight:800;letter-spacing:-.2px}.subtle{color:#96a39f;font-size:10px}.helper{font-size:10px;color:#87938f;line-height:1.45;margin:7px 0 12px}.event-type-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.event-type{padding:10px 2px 9px;display:flex;align-items:center;flex-direction:column;gap:7px;border:1px solid #e7eeeb;background:#fbfdfc;border-radius:11px;color:#697771;font-size:10px}.event-type .type-icon{display:grid;place-items:center;border-radius:10px;width:31px;height:31px;font-size:18px;font-weight:800}.congestion-icon{background:#fff1d8;color:#bb7b10}.accident-icon{background:#ffe8e5;color:#c64c41}.construction-icon{background:#fdf1da;color:#aa7d25}.police-icon{background:#e6edff;color:#4e6bc5}.flood-icon{background:#e3f4ff;color:#288ac1}.event-type.selected{border-color:#45a995;background:#ecf8f3;box-shadow:0 0 0 1px #45a995 inset;color:#0c6658}.selected-point-row{display:flex;align-items:center;gap:7px;padding:10px 0 9px;font-size:10px;color:#677873}.pin-mini{color:#138b78;font-size:16px}.selected-point-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.text-button{padding:3px 0;border:0;background:none;color:#168571;font-weight:700;font-size:10px;white-space:nowrap}.text-button:hover{text-decoration:underline}.report-card textarea{width:100%;resize:vertical;min-height:53px;max-height:125px;font-size:11px;padding:10px 11px}.report-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.report-bottom .helper{margin:0}.feedback{font-size:11px;line-height:1.5;margin:6px 0 0;color:#ba5149;min-height:0}.feedback:empty{display:none}.feedback.success{color:#188266}.icon-button{width:30px;height:30px;border:0;border-radius:8px;background:#f0f5f3;color:#52665f;font-size:19px}.traffic-road{font-size:12px;font-weight:700;margin:10px 0 12px;color:#3a5149}.traffic-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:10px;background:#f5f9f7;padding:12px 4px}.traffic-stats div{display:flex;align-items:center;flex-direction:column;gap:5px;border-right:1px solid #e4ece8}.traffic-stats div:last-child{border:0}.traffic-stats strong{font-size:21px;letter-spacing:-.8px;color:#1a5247}.traffic-stats span{font-size:9px;color:#7f8f88;text-align:center}.microcopy{font-size:9px;line-height:1.5;color:#9aa6a2;margin:9px 0 0}.recent-events{display:flex;flex-direction:column;gap:0;margin-top:8px}.recent-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #eff3f1;cursor:pointer}.recent-item:last-child{border-bottom:0;padding-bottom:0}.recent-dot{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;flex:0 0 auto;font-size:13px;font-weight:800}.recent-content{min-width:0;flex:1}.recent-content strong{display:block;font-size:11px;margin:0 0 3px}.recent-content p{font-size:10px;color:#788782;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.recent-content small{display:block;font-size:9px;color:#a0aca7;margin-top:5px}.empty-state{padding:16px 6px;color:#a0aaa6;font-size:11px;text-align:center}.panel-footer{color:#a4aeaa;font-size:9px;text-align:center;padding:7px}.panel-footer span{margin:0 4px}.chat-panel{position:fixed;z-index:700;right:28px;top:83px;bottom:24px;width:min(370px,calc(100vw - 24px));background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:0 20px 65px rgba(15,39,32,.19);display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:16px 17px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1ef}.chat-header strong{font-size:14px}.chat-header p{font-size:10px;color:#8c9994;margin:4px 0 0}.chat-messages{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:12px}.chat-message{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:95%}.chat-message.own{align-self:flex-end;align-items:flex-end}.chat-meta{font-size:9px;color:#91a09a;display:flex;gap:7px}.chat-bubble{background:#f1f6f3;border-radius:4px 12px 12px 12px;padding:9px 11px;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.own .chat-bubble{background:#e0f5ed;border-radius:12px 4px 12px 12px}.chat-form{padding:12px;border-top:1px solid #edf1ef}.anonymous-option{display:flex;align-items:center;gap:6px;font-size:10px;color:#687873;margin-bottom:9px}.anonymous-option input{accent-color:var(--green)}.chat-compose{display:flex;gap:7px}.chat-compose input{flex:1;font-size:11px}.chat-compose button{border:0;border-radius:9px;background:var(--green);color:#fff;padding:0 14px;font-size:11px;font-weight:700}.modal-backdrop{position:fixed;inset:0;background:rgba(13,36,30,.48);backdrop-filter:blur(5px);z-index:1000;display:grid;place-items:center;padding:18px}.auth-modal{position:relative;width:min(410px,100%);background:#fff;border-radius:21px;padding:28px;box-shadow:0 22px 70px rgba(10,35,27,.25)}.modal-close{position:absolute;right:15px;top:14px;border:0;background:#f0f5f2;color:#6f8179;border-radius:9px;width:30px;height:30px;font-size:20px}.auth-mark{width:48px;height:48px;border-radius:15px;margin:0 auto 14px;font-size:15px}.auth-modal h2{text-align:center;font-size:21px;letter-spacing:-.6px;margin:0 0 7px}.auth-subtitle{text-align:center}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f1f5f3;padding:4px;border-radius:10px;margin:22px 0 18px}.auth-tabs button{border:0;border-radius:7px;padding:9px;background:transparent;color:#7a8a84;font-size:12px;font-weight:700}.auth-tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 6px rgba(0,0,0,.07)}.auth-modal form>label,#registerOnly label{display:block;font-size:11px;font-weight:700;color:#52645d;margin:12px 0 6px}.auth-modal form input,.auth-modal form select{width:100%;font-size:12px}.auth-submit{width:100%;margin-top:18px;padding:12px}.auth-privacy{margin-top:17px;text-align:center}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:1100;background:#143e35;color:#fff;padding:11px 16px;border-radius:10px;box-shadow:var(--shadow);font-size:12px;max-width:calc(100vw - 32px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.leaflet-popup-content-wrapper{border-radius:12px!important}.event-popup{min-width:140px}.event-popup strong{display:block;font-size:12px;margin-bottom:5px}.event-popup p{font-size:11px;color:#65756f;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.event-popup small{display:block;font-size:9px;color:#929f99;margin-top:8px}
@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,1fr) 350px;gap:12px;padding:12px}.panel-card{padding:13px}.panel-heading h1{font-size:21px}.topbar{padding:0 16px}.brand{min-width:160px}}
@media(max-width:850px){.topbar{height:auto;min-height:65px;padding:10px 13px;flex-wrap:wrap;gap:8px}.brand{min-width:0}.brand-mark{width:38px;height:38px}.brand strong{font-size:15px}.top-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.top-actions .btn{padding:9px 10px;font-size:11px}.city-select-label{display:none}.user-badge{max-width:86px;padding:7px;font-size:10px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0;padding:10px;gap:10px}.map-section{height:52vh;min-height:340px;max-height:620px;flex:none}.side-panel{overflow:visible}.panel-heading{padding:8px 4px}.panel-heading h1{font-size:22px}.panel-card{padding:15px}.chat-panel{right:10px;top:auto;bottom:10px;height:min(70vh,600px);width:calc(100vw - 20px)}.map-top-note{left:9px;top:9px;padding:8px 9px}.map-tools{right:9px;top:9px}.map-tool{width:38px;height:38px}.map-footer{left:7px;bottom:7px}}
@media(max-width:480px){.topbar{align-items:center}.brand{gap:7px}.brand small{font-size:8px;letter-spacing:.6px}.top-actions{flex:1;gap:5px}.top-actions #chatToggle{font-size:0;padding:9px 11px}.top-actions #chatToggle span{font-size:16px}.top-actions .btn{padding:8px 9px}.top-actions #authOpen{max-width:92px;white-space:normal;line-height:1.15}.top-actions #adminLink{font-size:10px}.top-actions #citySelect{max-width:77px;padding:8px 3px;font-size:11px}.workspace{padding:8px}.map-section{height:49vh;min-height:310px;border-radius:14px}.panel-heading h1{font-size:20px}.status-pill{font-size:9px;padding:6px 8px}.panel-card{border-radius:13px;padding:13px}.event-type-grid{gap:5px}.event-type{font-size:9px;padding:8px 1px}.event-type .type-icon{width:29px;height:29px}.auth-modal{padding:25px 20px;border-radius:18px}.auth-modal h2{font-size:19px}.traffic-stats strong{font-size:19px}.map-top-note{font-size:10px;gap:5px}}
