/* Reference-sized desktop rhythm, layered over the base responsive styles. */
@media (min-width: 801px) {
  body{font-size:14px}
  .app-shell{padding:16px;gap:13px}
  .sidebar{width:264px;min-height:calc(100vh - 32px);padding:17px 13px 14px}
  .brand{font-size:22px;margin:0 6px 34px}
  .brand-mark{width:35px;height:35px;border-radius:9px}
  .brand-mark svg{width:21px;height:21px}
  .nav{gap:5px}
  .nav-item{min-height:47px;font-size:13px;padding:9px 12px}
  .nav-item svg{width:18px;height:18px}
  .nav-subitem{min-height:34px;font-size:12px}
  .sidebar-help{padding:12px 9px}
  .sidebar-help strong{font-size:11px}
  .sidebar-help small{font-size:10px}
  .topbar{height:72px;padding:0 25px}
  .search-shell{height:38px}
  .search-shell input{font-size:12px}
  .page{padding:24px 25px 32px}
  .page-head{margin-bottom:19px}
  .page-title{font-size:26px}
  .page-subtitle{font-size:12px}
  .btn,.select,.field{min-height:36px;font-size:12px}
  .tabs{margin-bottom:13px}
  .tab{min-height:33px;font-size:11px}
  .kpis{gap:12px;margin:19px 0}
  .kpi{min-height:87px;gap:13px;padding:14px}
  .kpi-icon{width:42px;height:42px}
  .kpi-icon svg{width:23px;height:23px}
  .kpi-label{font-size:11px}
  .kpi-value{font-size:26px}
  .kpi-trend{font-size:11px}
  .two-col,.analytics-grid{gap:13px}
  .panel{padding:15px}
  .panel-head{min-height:25px;margin-bottom:9px}
  .panel-title{font-size:15px}
  .list-row{min-height:49px;font-size:12px}
  .list-row .muted{font-size:10px}
  .app-icon,.event-icon{width:27px;height:27px}
  .app-icon svg,.event-icon svg{width:16px;height:16px}
  .status{min-height:22px;font-size:10px;padding:3px 9px}
  .data-shell{padding:0}
  .data-table th{height:40px;font-size:11px}
  .data-table td{height:47px;font-size:11px}
  .name-cell strong{font-size:11px}
  .name-cell small{font-size:10px}
  .table-footer{padding:12px;font-size:11px}
  .kanban{min-width:1030px;gap:8px}
  .kanban-title{font-size:11px;padding:9px}
  .kanban-title b{font-size:11px}
  .kanban-stack{min-height:450px;padding:5px}
  .kanban-card{padding:9px;margin-bottom:7px}
  .kanban-person strong{font-size:10px}
  .kanban-card small,.tag{font-size:9px}
  .kanban-add{padding:10px;font-size:10px}
  .account-row{min-height:51px}
  .account-name strong{font-size:11px}
  .account-name small,.account-type,.account-seen{font-size:10px}
  .chart-container{height:270px}
  .donut-layout{min-height:255px}
  .donut{width:175px;height:175px}
  .donut-hole{width:108px;height:108px}
  .donut-hole strong{font-size:22px}
  .donut-item{font-size:10px}
  .bar-row{min-height:36px;font-size:11px}
  .form-line{font-size:11px}
}
@media (min-width:801px) and (max-width:1180px){
  .sidebar{width:222px}
  .page{padding:20px}
  .kanban{min-width:930px}
  .kpi{min-height:75px;padding:10px}
  .kpi-value{font-size:21px}
  .kpi-icon{width:35px;height:35px}
  .donut{width:135px;height:135px}
  .donut-hole{width:85px;height:85px}
}
.account-photo{object-fit:cover;object-position:center;background:#e9f2ff}.account-modal{max-width:460px;width:min(460px,calc(100vw - 28px))}.account-modal .tabs{margin:10px 0 16px}.account-modal .form-line{margin:11px 0}.account-modal .modal-footer{margin-top:18px}.account-modal .note{line-height:1.5}.account-modal #connectStatus:not(:empty){margin-top:12px;padding:9px 11px;border-radius:8px;background:#eef6ff;color:#315e9a;overflow-wrap:anywhere}
.account-delete{color:#d74650}.account-delete:hover{background:#fff0f1}.btn.danger{background:#dc4651;color:white}.btn.danger:disabled{opacity:.45;cursor:not-allowed}.campaign-modal{width:min(700px,calc(100vw - 24px));max-width:700px;max-height:calc(100vh - 36px);overflow:auto}.campaign-modal .form-line{margin:12px 0}.campaign-modal .form-line>span{display:block;margin-bottom:6px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:5px;border:1px solid #dae7f8;border-bottom:0;border-radius:8px 8px 0 0;background:#f7faff}.editor-toolbar button{min-width:32px;height:28px;padding:0 7px;border:0;border-radius:5px;background:#fff;color:#294677;cursor:pointer}.editor-toolbar button:hover,.editor-toolbar button:focus-visible{background:#deedff;outline:2px solid #b0d2ff}.rich-editor{min-height:125px;max-height:320px;overflow:auto;padding:11px;border:1px solid #dae7f8;border-radius:0 0 8px 8px;background:#fff;white-space:pre-wrap;line-height:1.5;font-size:13px}.rich-editor:empty:before{content:attr(data-placeholder);color:#9aacbf}.rich-editor:focus{outline:2px solid #a6ceff}.rich-editor blockquote,.telegram-text blockquote{margin:7px 0;padding:4px 10px;border-left:3px solid #7da9e8;background:#f3f8ff}.rich-editor pre,.telegram-text pre{padding:6px 8px;border-radius:6px;background:#edf2f8;white-space:pre-wrap;font-family:monospace}.length-count{display:block;margin-top:5px;color:#5d7395;text-align:right}.length-count.over-limit{color:#da3240;font-weight:700}.campaign-groups-head{display:flex;align-items:center;gap:10px;margin:14px 0 6px}.campaign-groups-head strong{margin-right:auto;font-size:12px}.campaign-groups{max-height:140px;overflow:auto;border:1px solid #e3ecf8;border-radius:8px}.campaign-group{display:flex;align-items:center;gap:8px;padding:7px 9px;border-bottom:1px solid #eef3fa;cursor:pointer}.campaign-group:last-child{border:0}.campaign-group span{display:flex;flex-direction:column;gap:2px}.campaign-group strong{font-size:11px}.campaign-group small{color:#8797b3;font-size:10px}.campaign-remove-media{display:flex;gap:7px;align-items:center;color:#b54852;font-size:11px}.campaign-error{color:#c82f3d;font-size:11px}.campaign-preview{padding:12px;background:#edf5ff;border:1px solid #d7e8fd;border-radius:9px}.campaign-preview>strong{font-size:12px}.telegram-bubble{max-width:340px;margin:10px auto;padding:8px 9px;border-radius:11px 11px 3px 11px;background:#fff;box-shadow:0 3px 12px #365e8b1b}.telegram-bubble img,.telegram-bubble video{display:block;width:100%;max-height:250px;object-fit:contain;border-radius:7px}.telegram-text{padding:6px 2px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.45}.telegram-bubble>small{display:block;text-align:right;color:#86a0be;font-size:9px}.campaign-table tbody tr{cursor:pointer}.campaign-table tbody tr:hover{background:#f4f9ff}@media(max-width:640px){.campaign-modal{max-height:calc(100vh - 12px)}.campaign-groups-head{flex-wrap:wrap}.campaign-groups-head strong{width:100%}}
